From 64042ed340420f8555b6be3faf9a3b3beab3dd41 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 19 Oct 2024 00:22:24 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2830) --- .../v1/accesscontextmanager-api.json | 6 +- .../v1/accesscontextmanager-gen.go | 20 +- backupdr/v1/backupdr-api.json | 13 +- backupdr/v1/backupdr-gen.go | 10 + beyondcorp/v1/beyondcorp-api.json | 194 +- beyondcorp/v1/beyondcorp-gen.go | 760 +- composer/v1/composer-api.json | 161 +- composer/v1beta1/composer-api.json | 161 +- compute/v0.alpha/compute-api.json | 1569 +- compute/v0.alpha/compute-gen.go | 1126 +- compute/v0.alpha/compute2-gen.go | 935 + compute/v0.alpha/compute3-gen.go | 1486 +- compute/v1/compute-api.json | 79 +- compute/v1/compute-gen.go | 86 +- .../v1/contactcenterinsights-api.json | 8508 +++++--- .../v1/contactcenterinsights-gen.go | 17097 ++++++++++++---- displayvideo/v2/displayvideo-api.json | 23 +- displayvideo/v2/displayvideo-gen.go | 6 + displayvideo/v3/displayvideo-api.json | 294 +- displayvideo/v3/displayvideo-gen.go | 186 +- .../v1alpha/firebaseappdistribution-api.json | 7 +- .../v1alpha/firebaseappdistribution-gen.go | 10 +- gkehub/v2/gkehub-api.json | 18 +- gkehub/v2/gkehub-gen.go | 28 +- gkehub/v2beta/gkehub-api.json | 18 +- gkehub/v2beta/gkehub-gen.go | 28 +- memcache/v1/memcache-api.json | 10 +- memcache/v1/memcache-gen.go | 17 +- memcache/v1beta2/memcache-api.json | 10 +- memcache/v1beta2/memcache-gen.go | 17 +- .../accounts_v1beta/merchantapi-api.json | 9 +- .../accounts_v1beta/merchantapi-gen.go | 20 + .../datasources_v1beta/merchantapi-api.json | 4 +- .../datasources_v1beta/merchantapi-gen.go | 6 +- .../v1/networkconnectivity-api.json | 64 +- .../v1/networkconnectivity-gen.go | 39 +- redis/v1beta1/redis-api.json | 8 +- redis/v1beta1/redis-gen.go | 3 + transcoder/v1/transcoder-api.json | 6 +- transcoder/v1/transcoder-gen.go | 5 +- vmmigration/v1/vmmigration-api.json | 76 +- vmmigration/v1/vmmigration-gen.go | 72 +- vmmigration/v1alpha1/vmmigration-api.json | 76 +- vmmigration/v1alpha1/vmmigration-gen.go | 72 +- walletobjects/v1/walletobjects-api.json | 146 +- walletobjects/v1/walletobjects-gen.go | 163 + 46 files changed, 26878 insertions(+), 6774 deletions(-) diff --git a/accesscontextmanager/v1/accesscontextmanager-api.json b/accesscontextmanager/v1/accesscontextmanager-api.json index e1b7f25075f..c9a118fd722 100644 --- a/accesscontextmanager/v1/accesscontextmanager-api.json +++ b/accesscontextmanager/v1/accesscontextmanager-api.json @@ -1205,8 +1205,8 @@ "name" ], "parameters": { - "appendScopedAccessSettings": { - "description": "Optional. This field will be used to control whether or not scoped access settings are appended to the existing list of scoped access settings. If true, the scoped access settings in the request will be appended to the existing list of scoped access settings. If false, the scoped access settings in the request replace the existing list of scoped access settings.", + "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 supports appending. Global access_levels, dry_run_access_levels, and reauth_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" }, @@ -1295,7 +1295,7 @@ } } }, - "revision": "20240923", + "revision": "20241014", "rootUrl": "https://accesscontextmanager.googleapis.com/", "schemas": { "AccessContextManagerOperationMetadata": { diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index 6db84fcddd1..b883825b92e 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -6601,15 +6601,17 @@ func (r *OrganizationsGcpUserAccessBindingsService) Patch(name string, gcpuserac return c } -// AppendScopedAccessSettings sets the optional parameter -// "appendScopedAccessSettings": This field will be used to control whether or -// not scoped access settings are appended to the existing list of scoped -// access settings. If true, the scoped access settings in the request will be -// appended to the existing list of scoped access settings. If false, the -// scoped access settings in the request replace the existing list of scoped -// access settings. -func (c *OrganizationsGcpUserAccessBindingsPatchCall) AppendScopedAccessSettings(appendScopedAccessSettings bool) *OrganizationsGcpUserAccessBindingsPatchCall { - c.urlParams_.Set("appendScopedAccessSettings", fmt.Sprint(appendScopedAccessSettings)) +// 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 supports appending. Global +// access_levels, dry_run_access_levels, and reauth_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 } diff --git a/backupdr/v1/backupdr-api.json b/backupdr/v1/backupdr-api.json index ca354cc2b13..01447031b30 100644 --- a/backupdr/v1/backupdr-api.json +++ b/backupdr/v1/backupdr-api.json @@ -555,6 +555,11 @@ "location": "query", "type": "boolean" }, + "ignoreBackupPlanReferences": { + "description": "Optional. If set to true, backupvault deletion will proceed even if there are backup plans referencing the backupvault. The default is 'false'.", + "location": "query", + "type": "boolean" + }, "name": { "description": "Required. Name of the resource.", "location": "path", @@ -1658,7 +1663,7 @@ } } }, - "revision": "20241002", + "revision": "20241009", "rootUrl": "https://backupdr.googleapis.com/", "schemas": { "AbandonBackupRequest": { @@ -2462,14 +2467,16 @@ "CREATING", "ACTIVE", "DELETING", - "INACTIVE" + "INACTIVE", + "UPDATING" ], "enumDescriptions": [ "State not set.", "The resource is being created.", "The resource has been created and is fully usable.", "The resource is being deleted.", - "The resource has been created but is not usable." + "The resource has been created but is not usable.", + "The resource is being updated." ], "readOnly": true, "type": "string" diff --git a/backupdr/v1/backupdr-gen.go b/backupdr/v1/backupdr-gen.go index 173cd6a56ec..600ea47eb1d 100644 --- a/backupdr/v1/backupdr-gen.go +++ b/backupdr/v1/backupdr-gen.go @@ -1052,6 +1052,7 @@ type BackupPlanAssociation struct { // "ACTIVE" - The resource has been created and is fully usable. // "DELETING" - The resource is being deleted. // "INACTIVE" - The resource has been created but is not usable. + // "UPDATING" - The resource is being updated. State string `json:"state,omitempty"` // UpdateTime: Output only. The time when the instance was updated. UpdateTime string `json:"updateTime,omitempty"` @@ -5742,6 +5743,15 @@ func (c *ProjectsLocationsBackupVaultsDeleteCall) Force(force bool) *ProjectsLoc return c } +// IgnoreBackupPlanReferences sets the optional parameter +// "ignoreBackupPlanReferences": If set to true, backupvault deletion will +// proceed even if there are backup plans referencing the backupvault. The +// default is 'false'. +func (c *ProjectsLocationsBackupVaultsDeleteCall) IgnoreBackupPlanReferences(ignoreBackupPlanReferences bool) *ProjectsLocationsBackupVaultsDeleteCall { + c.urlParams_.Set("ignoreBackupPlanReferences", fmt.Sprint(ignoreBackupPlanReferences)) + return c +} + // RequestId sets the optional parameter "requestId": An optional request ID to // identify requests. Specify a unique request ID so that if you must retry // your request, the server will know to ignore the request if it has already diff --git a/beyondcorp/v1/beyondcorp-api.json b/beyondcorp/v1/beyondcorp-api.json index 8baf89cfacd..8afa6f9e2ad 100644 --- a/beyondcorp/v1/beyondcorp-api.json +++ b/beyondcorp/v1/beyondcorp-api.json @@ -1795,6 +1795,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/global/securityGateways/{securityGatewaysId}/applications/{applicationsId}:testIamPermissions", + "httpMethod": "POST", + "id": "beyondcorp.projects.locations.global.securityGateways.applications.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/securityGateways/[^/]+/applications/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -2025,6 +2053,37 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:getIamPolicy", + "httpMethod": "GET", + "id": "beyondcorp.projects.locations.securityGateways.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists SecurityGateways in a given project and location.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways", @@ -2137,6 +2196,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:testIamPermissions", + "httpMethod": "POST", + "id": "beyondcorp.projects.locations.securityGateways.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -2202,6 +2289,37 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}/applications/{applicationsId}:getIamPolicy", + "httpMethod": "GET", + "id": "beyondcorp.projects.locations.securityGateways.applications.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+/applications/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists Applications in a given project and location.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}/applications", @@ -2247,6 +2365,78 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}/applications/{applicationsId}:setIamPolicy", + "httpMethod": "POST", + "id": "beyondcorp.projects.locations.securityGateways.applications.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+/applications/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + } + }, + "v": { + "resources": { + "projects": { + "resources": { + "locations": { + "resources": { + "securityGateways": { + "methods": { + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:setIamPolicy", + "httpMethod": "POST", + "id": "beyondcorp.v.projects.locations.securityGateways.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -2257,7 +2447,7 @@ } } }, - "revision": "20241004", + "revision": "20241011", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { @@ -3628,7 +3818,7 @@ }, "type": "array" }, - "targetVpcNetwork": { + "targetNetwork": { "description": "Required. The name of the Target VPC network name in the format: `projects/{project}/global/networks/{network}", "type": "string" } diff --git a/beyondcorp/v1/beyondcorp-gen.go b/beyondcorp/v1/beyondcorp-gen.go index 62271fe987f..68700c11fc9 100644 --- a/beyondcorp/v1/beyondcorp-gen.go +++ b/beyondcorp/v1/beyondcorp-gen.go @@ -137,6 +137,7 @@ func New(client *http.Client) (*Service, error) { s := &Service{client: client, BasePath: basePath} s.Organizations = NewOrganizationsService(s) s.Projects = NewProjectsService(s) + s.V = NewVService(s) return s, nil } @@ -148,6 +149,8 @@ type Service struct { Organizations *OrganizationsService Projects *ProjectsService + + V *VService } func (s *Service) userAgent() string { @@ -391,6 +394,51 @@ type ProjectsLocationsSecurityGatewaysApplicationsService struct { s *Service } +func NewVService(s *Service) *VService { + rs := &VService{s: s} + rs.Projects = NewVProjectsService(s) + return rs +} + +type VService struct { + s *Service + + Projects *VProjectsService +} + +func NewVProjectsService(s *Service) *VProjectsService { + rs := &VProjectsService{s: s} + rs.Locations = NewVProjectsLocationsService(s) + return rs +} + +type VProjectsService struct { + s *Service + + Locations *VProjectsLocationsService +} + +func NewVProjectsLocationsService(s *Service) *VProjectsLocationsService { + rs := &VProjectsLocationsService{s: s} + rs.SecurityGateways = NewVProjectsLocationsSecurityGatewaysService(s) + return rs +} + +type VProjectsLocationsService struct { + s *Service + + SecurityGateways *VProjectsLocationsSecurityGatewaysService +} + +func NewVProjectsLocationsSecurityGatewaysService(s *Service) *VProjectsLocationsSecurityGatewaysService { + rs := &VProjectsLocationsSecurityGatewaysService{s: s} + return rs +} + +type VProjectsLocationsSecurityGatewaysService struct { + s *Service +} + // AllocatedConnection: Allocated connection of the AppGateway. type AllocatedConnection struct { // IngressPort: Required. The ingress port of an allocated connection @@ -1854,9 +1902,9 @@ type GoogleCloudBeyondcorpSecuritygatewaysV1Peering struct { // DnsZones: Optional. List of DNS zones for DNS peering with the customer VPC // network. DnsZones []string `json:"dnsZones,omitempty"` - // TargetVpcNetwork: Required. The name of the Target VPC network name in the + // TargetNetwork: Required. The name of the Target VPC network name in the // format: `projects/{project}/global/networks/{network} - TargetVpcNetwork string `json:"targetVpcNetwork,omitempty"` + TargetNetwork string `json:"targetNetwork,omitempty"` // ForceSendFields is a list of field names (e.g. "DnsZones") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -8825,6 +8873,115 @@ func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsPatchCall) Do(opts . return ret, nil } +type ProjectsLocationsGlobalSecurityGatewaysApplicationsTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsGlobalSecurityGatewaysApplicationsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsGlobalSecurityGatewaysApplicationsTestIamPermissionsCall { + c := &ProjectsLocationsGlobalSecurityGatewaysApplicationsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + 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 *ProjectsLocationsGlobalSecurityGatewaysApplicationsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalSecurityGatewaysApplicationsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGlobalSecurityGatewaysApplicationsTestIamPermissionsCall { + 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 *ProjectsLocationsGlobalSecurityGatewaysApplicationsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalSecurityGatewaysApplicationsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.projects.locations.global.securityGateways.applications.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1TestIamPermissionsResponse.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 *ProjectsLocationsGlobalSecurityGatewaysApplicationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, 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 := &GoogleIamV1TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsOperationsCancelCall struct { s *Service name string @@ -9648,6 +9805,134 @@ func (c *ProjectsLocationsSecurityGatewaysGetCall) Do(opts ...googleapi.CallOpti return ret, nil } +type ProjectsLocationsSecurityGatewaysGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsSecurityGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsSecurityGatewaysGetIamPolicyCall { + c := &ProjectsLocationsSecurityGatewaysGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsSecurityGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsSecurityGatewaysGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsSecurityGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysGetIamPolicyCall { + 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 *ProjectsLocationsSecurityGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecurityGatewaysGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSecurityGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysGetIamPolicyCall { + 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 *ProjectsLocationsSecurityGatewaysGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSecurityGatewaysGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.projects.locations.securityGateways.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsSecurityGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsSecurityGatewaysListCall struct { s *Service parent string @@ -10045,17 +10330,126 @@ func (c *ProjectsLocationsSecurityGatewaysSetPeeringCall) Do(opts ...googleapi.C return ret, nil } -type ProjectsLocationsSecurityGatewaysApplicationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a single Application. -// -// - name: Name of the resource. +type ProjectsLocationsSecurityGatewaysTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsSecurityGatewaysService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsSecurityGatewaysTestIamPermissionsCall { + c := &ProjectsLocationsSecurityGatewaysTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + 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 *ProjectsLocationsSecurityGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSecurityGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysTestIamPermissionsCall { + 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 *ProjectsLocationsSecurityGatewaysTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSecurityGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.projects.locations.securityGateways.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1TestIamPermissionsResponse.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 *ProjectsLocationsSecurityGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, 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 := &GoogleIamV1TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsSecurityGatewaysApplicationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Application. +// +// - name: Name of the resource. func (r *ProjectsLocationsSecurityGatewaysApplicationsService) Delete(name string) *ProjectsLocationsSecurityGatewaysApplicationsDeleteCall { c := &ProjectsLocationsSecurityGatewaysApplicationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -10275,6 +10669,134 @@ func (c *ProjectsLocationsSecurityGatewaysApplicationsGetCall) Do(opts ...google return ret, nil } +type ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsSecurityGatewaysApplicationsService) GetIamPolicy(resource string) *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall { + c := &ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall { + 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 *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall { + 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 *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.projects.locations.securityGateways.applications.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsSecurityGatewaysApplicationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsSecurityGatewaysApplicationsListCall struct { s *Service parent string @@ -10441,3 +10963,215 @@ func (c *ProjectsLocationsSecurityGatewaysApplicationsListCall) Pages(ctx contex c.PageToken(x.NextPageToken) } } + +type ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsSecurityGatewaysApplicationsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall { + c := &ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + 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 *ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall { + 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 *ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.projects.locations.securityGateways.applications.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type VProjectsLocationsSecurityGatewaysSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *VProjectsLocationsSecurityGatewaysService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *VProjectsLocationsSecurityGatewaysSetIamPolicyCall { + c := &VProjectsLocationsSecurityGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + 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 *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *VProjectsLocationsSecurityGatewaysSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Context(ctx context.Context) *VProjectsLocationsSecurityGatewaysSetIamPolicyCall { + 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 *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.v.projects.locations.securityGateways.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} diff --git a/composer/v1/composer-api.json b/composer/v1/composer-api.json index 4ca5f590bbe..c626f9bddff 100644 --- a/composer/v1/composer-api.json +++ b/composer/v1/composer-api.json @@ -18,14 +18,109 @@ "endpoints": [ { "description": "Regional Endpoint", - "endpointUrl": "https://composer.us-south1.rep.googleapis.com/", - "location": "us-south1" + "endpointUrl": "https://composer.africa-south1.rep.googleapis.com/", + "location": "africa-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-east1.rep.googleapis.com/", + "location": "asia-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-east2.rep.googleapis.com/", + "location": "asia-east2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-northeast1.rep.googleapis.com/", + "location": "asia-northeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-northeast2.rep.googleapis.com/", + "location": "asia-northeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-northeast3.rep.googleapis.com/", + "location": "asia-northeast3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-south1.rep.googleapis.com/", + "location": "asia-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-south2.rep.googleapis.com/", + "location": "asia-south2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-southeast1.rep.googleapis.com/", + "location": "asia-southeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-southeast2.rep.googleapis.com/", + "location": "asia-southeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.australia-southeast1.rep.googleapis.com/", + "location": "australia-southeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.australia-southeast2.rep.googleapis.com/", + "location": "australia-southeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-central2.rep.googleapis.com/", + "location": "europe-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-north1.rep.googleapis.com/", + "location": "europe-north1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-north2.rep.googleapis.com/", + "location": "europe-north2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-southwest1.rep.googleapis.com/", + "location": "europe-southwest1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west1.rep.googleapis.com/", + "location": "europe-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west2.rep.googleapis.com/", + "location": "europe-west2" }, { "description": "Regional Endpoint", "endpointUrl": "https://composer.europe-west3.rep.googleapis.com/", "location": "europe-west3" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west4.rep.googleapis.com/", + "location": "europe-west4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west6.rep.googleapis.com/", + "location": "europe-west6" + }, { "description": "Regional Endpoint", "endpointUrl": "https://composer.europe-west8.rep.googleapis.com/", @@ -36,11 +131,56 @@ "endpointUrl": "https://composer.europe-west9.rep.googleapis.com/", "location": "europe-west9" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west10.rep.googleapis.com/", + "location": "europe-west10" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west12.rep.googleapis.com/", + "location": "europe-west12" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.me-central1.rep.googleapis.com/", + "location": "me-central1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://composer.me-central2.rep.googleapis.com/", "location": "me-central2" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.me-west1.rep.googleapis.com/", + "location": "me-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.northamerica-northeast1.rep.googleapis.com/", + "location": "northamerica-northeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.northamerica-northeast2.rep.googleapis.com/", + "location": "northamerica-northeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.northamerica-south1.rep.googleapis.com/", + "location": "northamerica-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.southamerica-east1.rep.googleapis.com/", + "location": "southamerica-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.southamerica-west1.rep.googleapis.com/", + "location": "southamerica-west1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://composer.us-central1.rep.googleapis.com/", @@ -61,6 +201,16 @@ "endpointUrl": "https://composer.us-east5.rep.googleapis.com/", "location": "us-east5" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.us-east7.rep.googleapis.com/", + "location": "us-east7" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.us-south1.rep.googleapis.com/", + "location": "us-south1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://composer.us-west1.rep.googleapis.com/", @@ -80,6 +230,11 @@ "description": "Regional Endpoint", "endpointUrl": "https://composer.us-west4.rep.googleapis.com/", "location": "us-west4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.us-west8.rep.googleapis.com/", + "location": "us-west8" } ], "fullyEncodeReservedExpansion": true, @@ -1033,7 +1188,7 @@ } } }, - "revision": "20241007", + "revision": "20241013", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { diff --git a/composer/v1beta1/composer-api.json b/composer/v1beta1/composer-api.json index 72f1d5b5cc6..ca87e72e33f 100644 --- a/composer/v1beta1/composer-api.json +++ b/composer/v1beta1/composer-api.json @@ -18,14 +18,109 @@ "endpoints": [ { "description": "Regional Endpoint", - "endpointUrl": "https://composer.us-south1.rep.googleapis.com/", - "location": "us-south1" + "endpointUrl": "https://composer.africa-south1.rep.googleapis.com/", + "location": "africa-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-east1.rep.googleapis.com/", + "location": "asia-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-east2.rep.googleapis.com/", + "location": "asia-east2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-northeast1.rep.googleapis.com/", + "location": "asia-northeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-northeast2.rep.googleapis.com/", + "location": "asia-northeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-northeast3.rep.googleapis.com/", + "location": "asia-northeast3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-south1.rep.googleapis.com/", + "location": "asia-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-south2.rep.googleapis.com/", + "location": "asia-south2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-southeast1.rep.googleapis.com/", + "location": "asia-southeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.asia-southeast2.rep.googleapis.com/", + "location": "asia-southeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.australia-southeast1.rep.googleapis.com/", + "location": "australia-southeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.australia-southeast2.rep.googleapis.com/", + "location": "australia-southeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-central2.rep.googleapis.com/", + "location": "europe-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-north1.rep.googleapis.com/", + "location": "europe-north1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-north2.rep.googleapis.com/", + "location": "europe-north2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-southwest1.rep.googleapis.com/", + "location": "europe-southwest1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west1.rep.googleapis.com/", + "location": "europe-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west2.rep.googleapis.com/", + "location": "europe-west2" }, { "description": "Regional Endpoint", "endpointUrl": "https://composer.europe-west3.rep.googleapis.com/", "location": "europe-west3" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west4.rep.googleapis.com/", + "location": "europe-west4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west6.rep.googleapis.com/", + "location": "europe-west6" + }, { "description": "Regional Endpoint", "endpointUrl": "https://composer.europe-west8.rep.googleapis.com/", @@ -36,11 +131,56 @@ "endpointUrl": "https://composer.europe-west9.rep.googleapis.com/", "location": "europe-west9" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west10.rep.googleapis.com/", + "location": "europe-west10" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.europe-west12.rep.googleapis.com/", + "location": "europe-west12" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.me-central1.rep.googleapis.com/", + "location": "me-central1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://composer.me-central2.rep.googleapis.com/", "location": "me-central2" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.me-west1.rep.googleapis.com/", + "location": "me-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.northamerica-northeast1.rep.googleapis.com/", + "location": "northamerica-northeast1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.northamerica-northeast2.rep.googleapis.com/", + "location": "northamerica-northeast2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.northamerica-south1.rep.googleapis.com/", + "location": "northamerica-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.southamerica-east1.rep.googleapis.com/", + "location": "southamerica-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.southamerica-west1.rep.googleapis.com/", + "location": "southamerica-west1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://composer.us-central1.rep.googleapis.com/", @@ -61,6 +201,16 @@ "endpointUrl": "https://composer.us-east5.rep.googleapis.com/", "location": "us-east5" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.us-east7.rep.googleapis.com/", + "location": "us-east7" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.us-south1.rep.googleapis.com/", + "location": "us-south1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://composer.us-west1.rep.googleapis.com/", @@ -80,6 +230,11 @@ "description": "Regional Endpoint", "endpointUrl": "https://composer.us-west4.rep.googleapis.com/", "location": "us-west4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.us-west8.rep.googleapis.com/", + "location": "us-west8" } ], "fullyEncodeReservedExpansion": true, @@ -1061,7 +1216,7 @@ } } }, - "revision": "20241007", + "revision": "20241013", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 21d92b3d450..9e14d2ce5be 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -2359,6 +2359,225 @@ } } }, + "crossSiteNetworks": { + "methods": { + "delete": { + "description": "Deletes the specified cross-site network in the given scope.", + "flatPath": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}", + "httpMethod": "DELETE", + "id": "compute.crossSiteNetworks.delete", + "parameterOrder": [ + "project", + "crossSiteNetwork" + ], + "parameters": { + "crossSiteNetwork": { + "description": "Name of the cross-site network to delete.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "get": { + "description": "Returns the specified cross-site network in the given scope.", + "flatPath": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}", + "httpMethod": "GET", + "id": "compute.crossSiteNetworks.get", + "parameterOrder": [ + "project", + "crossSiteNetwork" + ], + "parameters": { + "crossSiteNetwork": { + "description": "Name of the cross-site network to return.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}", + "response": { + "$ref": "CrossSiteNetwork" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "insert": { + "description": "Creates a cross-site network in the specified project in the given scope using the parameters that are included in the request.", + "flatPath": "projects/{project}/global/crossSiteNetworks", + "httpMethod": "POST", + "id": "compute.crossSiteNetworks.insert", + "parameterOrder": [ + "project" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "[Input Only] Validate the new configuration, but don't create it. If applicable, any configuration notices are returned in the `configurationNotices` field.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/global/crossSiteNetworks", + "request": { + "$ref": "CrossSiteNetwork" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "list": { + "description": "Lists the cross-site networks for a project in the given scope.", + "flatPath": "projects/{project}/global/crossSiteNetworks", + "httpMethod": "GET", + "id": "compute.crossSiteNetworks.list", + "parameterOrder": [ + "project" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/global/crossSiteNetworks", + "response": { + "$ref": "CrossSiteNetworkList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "patch": { + "description": "Updates the specified cross-site network with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "flatPath": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}", + "httpMethod": "PATCH", + "id": "compute.crossSiteNetworks.patch", + "parameterOrder": [ + "project", + "crossSiteNetwork" + ], + "parameters": { + "crossSiteNetwork": { + "description": "Name of the cross-site network to update.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "[Input Only] Validate the new configuration, but don't update it. If applicable, any configuration notices are returned in the `configurationNotices` field.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}", + "request": { + "$ref": "CrossSiteNetwork" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + } + } + }, "diskSettings": { "methods": { "get": { @@ -2926,6 +3145,48 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "getAsyncReplicationStatus": { + "description": "Gets the status of current async replication for a given device.", + "flatPath": "projects/{project}/zones/{zone}/disks/{disk}/getAsyncReplicationStatus", + "httpMethod": "GET", + "id": "compute.disks.getAsyncReplicationStatus", + "parameterOrder": [ + "project", + "zone", + "disk" + ], + "parameters": { + "disk": { + "description": "Name of the Disk resource whose Async replication details are requested. Name should conform to RFC1035 or be an unsigned long integer.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/disks/{disk}/getAsyncReplicationStatus", + "response": { + "$ref": "GetAsyncReplicationStatusResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, "getIamPolicy": { "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", "flatPath": "projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy", @@ -3525,6 +3786,55 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] + }, + "waitForReplicationCatchUp": { + "description": "Wait for replication to catch up on the secondary disk.", + "flatPath": "projects/{project}/zones/{zone}/disks/{disk}/waitForReplicationCatchUp", + "httpMethod": "POST", + "id": "compute.disks.waitForReplicationCatchUp", + "parameterOrder": [ + "project", + "zone", + "disk" + ], + "parameters": { + "disk": { + "description": "The name of the persistent disk. Name should conform to RFC1035 or be an unsigned long integer.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/disks/{disk}/waitForReplicationCatchUp", + "request": { + "$ref": "WaitForReplicationCatchUpRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] } } }, @@ -26016,6 +26326,48 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "getAsyncReplicationStatus": { + "description": "Gets the status of current async replication for a given device.", + "flatPath": "projects/{project}/regions/{region}/disks/{disk}/getAsyncReplicationStatus", + "httpMethod": "GET", + "id": "compute.regionDisks.getAsyncReplicationStatus", + "parameterOrder": [ + "project", + "region", + "disk" + ], + "parameters": { + "disk": { + "description": "Name of the Disk resource whose Async replication details are requested. Name should conform to RFC1035 or be an unsigned long integer.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/disks/{disk}/getAsyncReplicationStatus", + "response": { + "$ref": "GetAsyncReplicationStatusResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, "getIamPolicy": { "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", "flatPath": "projects/{project}/regions/{region}/disks/{resource}/getIamPolicy", @@ -26615,6 +26967,55 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] + }, + "waitForReplicationCatchUp": { + "description": "Wait for replication to catch up on the secondary disk.", + "flatPath": "projects/{project}/regions/{region}/disks/{disk}/waitForReplicationCatchUp", + "httpMethod": "POST", + "id": "compute.regionDisks.waitForReplicationCatchUp", + "parameterOrder": [ + "project", + "region", + "disk" + ], + "parameters": { + "disk": { + "description": "The name of the persistent disk. Name should conform to RFC1035 or be an unsigned long integer.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/disks/{disk}/waitForReplicationCatchUp", + "request": { + "$ref": "RegionWaitForReplicationCatchUpRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] } } }, @@ -30279,7 +30680,7 @@ ] }, "get": { - "description": "Returns the specified multi-MIG resource.", + "description": "Returns all the details of a specific multi-MIG.", "flatPath": "projects/{project}/regions/{region}/multiMigs/{multiMig}", "httpMethod": "GET", "id": "compute.regionMultiMigs.get", @@ -30346,7 +30747,7 @@ "type": "string" }, "requestId": { - "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents you from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" } @@ -45871,21 +46272,20 @@ } } }, - "zoneOperations": { + "wireGroups": { "methods": { "delete": { - "description": "Deletes the specified zone-specific Operations resource.", - "flatPath": "projects/{project}/zones/{zone}/operations/{operation}", + "description": "Deletes the specified wire group in the given scope.", + "flatPath": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}", "httpMethod": "DELETE", - "id": "compute.zoneOperations.delete", + "id": "compute.wireGroups.delete", "parameterOrder": [ "project", - "zone", - "operation" + "crossSiteNetwork", + "wireGroup" ], "parameters": { - "operation": { - "description": "Name of the Operations resource to delete, or its unique numeric identifier.", + "crossSiteNetwork": { "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, @@ -45898,33 +46298,40 @@ "required": true, "type": "string" }, - "zone": { - "description": "Name of the zone for this request.", + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder", + "location": "query", + "type": "string" + }, + "wireGroup": { + "description": "Name of the wire group resource to delete.", "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" } }, - "path": "projects/{project}/zones/{zone}/operations/{operation}", + "path": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}", + "response": { + "$ref": "Operation" + }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] }, "get": { - "description": "Retrieves the specified zone-specific Operations resource.", - "flatPath": "projects/{project}/zones/{zone}/operations/{operation}", + "description": "Gets the specified wire group resource in the given scope.", + "flatPath": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}", "httpMethod": "GET", - "id": "compute.zoneOperations.get", + "id": "compute.wireGroups.get", "parameterOrder": [ "project", - "zone", - "operation" + "crossSiteNetwork", + "wireGroup" ], "parameters": { - "operation": { - "description": "Name of the Operations resource to return, or its unique numeric identifier.", + "crossSiteNetwork": { "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, @@ -45937,17 +46344,17 @@ "required": true, "type": "string" }, - "zone": { - "description": "Name of the zone for this request.", + "wireGroup": { + "description": "Name of the wire group resource to return.", "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" } }, - "path": "projects/{project}/zones/{zone}/operations/{operation}", + "path": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}", "response": { - "$ref": "Operation" + "$ref": "WireGroup" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", @@ -45955,16 +46362,68 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "insert": { + "description": "Creates a wire group in the specified project in the given scope using the parameters that are included in the request.", + "flatPath": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups", + "httpMethod": "POST", + "id": "compute.wireGroups.insert", + "parameterOrder": [ + "project", + "crossSiteNetwork" + ], + "parameters": { + "crossSiteNetwork": { + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "[Input Only] Validate the new configuration, but don't create it. If applicable, any configuration notices are returned in the `configurationNotices` field.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups", + "request": { + "$ref": "WireGroup" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "list": { - "description": "Retrieves a list of Operation resources contained within the specified zone.", - "flatPath": "projects/{project}/zones/{zone}/operations", + "description": "Lists the wire groups for a project in the given scope.", + "flatPath": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups", "httpMethod": "GET", - "id": "compute.zoneOperations.list", + "id": "compute.wireGroups.list", "parameterOrder": [ "project", - "zone" + "crossSiteNetwork" ], "parameters": { + "crossSiteNetwork": { + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, "filter": { "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", "location": "query", @@ -45999,30 +46458,232 @@ "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", "location": "query", "type": "boolean" + } + }, + "path": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups", + "response": { + "$ref": "WireGroupList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "patch": { + "description": "Updates the specified wire group resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "flatPath": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}", + "httpMethod": "PATCH", + "id": "compute.wireGroups.patch", + "parameterOrder": [ + "project", + "crossSiteNetwork", + "wireGroup" + ], + "parameters": { + "crossSiteNetwork": { + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" }, - "zone": { - "description": "Name of the zone for request.", + "project": { + "description": "Project ID for this request.", "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "update_mask indicates fields to be updated as part of this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "[Input Only] Validate the new configuration, but don't update it. If applicable, any configuration notices are returned in the `configurationNotices` field.", + "location": "query", + "type": "boolean" + }, + "wireGroup": { + "description": "Name of the WireGroups resource to patch.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" } }, - "path": "projects/{project}/zones/{zone}/operations", + "path": "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}", + "request": { + "$ref": "WireGroup" + }, "response": { - "$ref": "OperationList" + "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" + "https://www.googleapis.com/auth/compute" + ] + } + } + }, + "zoneOperations": { + "methods": { + "delete": { + "description": "Deletes the specified zone-specific Operations resource.", + "flatPath": "projects/{project}/zones/{zone}/operations/{operation}", + "httpMethod": "DELETE", + "id": "compute.zoneOperations.delete", + "parameterOrder": [ + "project", + "zone", + "operation" + ], + "parameters": { + "operation": { + "description": "Name of the Operations resource to delete, or its unique numeric identifier.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "zone": { + "description": "Name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/operations/{operation}", + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" ] }, - "wait": { - "description": "Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`. ", - "flatPath": "projects/{project}/zones/{zone}/operations/{operation}/wait", - "httpMethod": "POST", - "id": "compute.zoneOperations.wait", + "get": { + "description": "Retrieves the specified zone-specific Operations resource.", + "flatPath": "projects/{project}/zones/{zone}/operations/{operation}", + "httpMethod": "GET", + "id": "compute.zoneOperations.get", + "parameterOrder": [ + "project", + "zone", + "operation" + ], + "parameters": { + "operation": { + "description": "Name of the Operations resource to return, or its unique numeric identifier.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "zone": { + "description": "Name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/operations/{operation}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "list": { + "description": "Retrieves a list of Operation resources contained within the specified zone.", + "flatPath": "projects/{project}/zones/{zone}/operations", + "httpMethod": "GET", + "id": "compute.zoneOperations.list", + "parameterOrder": [ + "project", + "zone" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", + "location": "query", + "type": "boolean" + }, + "zone": { + "description": "Name of the zone for request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/operations", + "response": { + "$ref": "OperationList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "wait": { + "description": "Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`. ", + "flatPath": "projects/{project}/zones/{zone}/operations/{operation}/wait", + "httpMethod": "POST", + "id": "compute.zoneOperations.wait", "parameterOrder": [ "project", "zone", @@ -46468,7 +47129,7 @@ } } }, - "revision": "20241001", + "revision": "20241008", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -47885,13 +48546,13 @@ "id": "AllocationResourceStatus", "properties": { "reservationBlockCount": { - "description": "Indicates number of blocks for accelerator optimized family (applicable beyond A3 only).", + "description": "The number of reservation blocks associated with this reservation.", "format": "int32", "type": "integer" }, "reservationMaintenance": { "$ref": "GroupMaintenanceInfo", - "description": "Maintenance information for the group of hosts on this reservation including running VMs and unused hosts. Applicable only to accelerator optimized VM families beyond A3 only. For both DENSE or STANDARD reservation, granular maintenance information can be retried at reservation block level." + "description": "Maintenance information for this reservation" }, "specificSkuAllocation": { "$ref": "AllocationResourceStatusSpecificSKUAllocation", @@ -48026,6 +48687,18 @@ }, "type": "object" }, + "AsyncReplicationStatus": { + "id": "AsyncReplicationStatus", + "properties": { + "diskPairReplicationState": { + "$ref": "DiskPairReplicationState" + }, + "lastReplicationDetails": { + "$ref": "ReplicationDetails" + } + }, + "type": "object" + }, "AttachedDisk": { "description": "An instance-attached disk resource.", "id": "AttachedDisk", @@ -52217,6 +52890,7 @@ "ACCELERATOR_OPTIMIZED", "ACCELERATOR_OPTIMIZED_A3", "ACCELERATOR_OPTIMIZED_A3_MEGA", + "ACCELERATOR_OPTIMIZED_A3_ULTRA", "COMPUTE_OPTIMIZED", "COMPUTE_OPTIMIZED_C2D", "COMPUTE_OPTIMIZED_C3", @@ -52263,6 +52937,7 @@ "", "", "", + "", "" ], "type": "string" @@ -52969,6 +53644,206 @@ }, "type": "object" }, + "CrossSiteNetwork": { + "description": "A resource that represents a cross-site network. You can use cross-site networks to connect your on-premises networks to each other through Interconnect connections.", + "id": "CrossSiteNetwork", + "properties": { + "creationTimestamp": { + "description": "[Output Only] Creation timestamp in RFC3339 text format.", + "type": "string" + }, + "description": { + "description": "An optional description of the cross-site network.", + "type": "string" + }, + "id": { + "description": "[Output Only] The unique identifier for the resource type. The server generates this identifier.", + "format": "uint64", + "type": "string" + }, + "kind": { + "default": "compute#crossSiteNetwork", + "description": "[Output Only] Type of the resource. Always compute#crossSiteNetwork for cross-site networks.", + "type": "string" + }, + "name": { + "description": "Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for the resource.", + "type": "string" + }, + "selfLinkWithId": { + "description": "[Output Only] Server-defined URL for this resource with the resource id.", + "type": "string" + } + }, + "type": "object" + }, + "CrossSiteNetworkList": { + "description": "Response to the list request that contains a list of cross-site networks.", + "id": "CrossSiteNetworkList", + "properties": { + "etag": { + "type": "string" + }, + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "description": "A list of CrossSiteNetwork resources.", + "items": { + "$ref": "CrossSiteNetwork" + }, + "type": "array" + }, + "kind": { + "default": "compute#crossSiteNetwork", + "description": "[Output Only] Type of the resource. Always compute#crossSiteNetwork for cross-site networks.", + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for this resource.", + "type": "string" + }, + "unreachables": { + "description": "[Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder", + "items": { + "type": "string" + }, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "CustomErrorResponsePolicy": { "description": "Specifies the custom error response policy that must be applied when the backend service or backend bucket responds with an error.", "id": "CustomErrorResponsePolicy", @@ -53822,6 +54697,39 @@ }, "type": "object" }, + "DiskPairReplicationState": { + "id": "DiskPairReplicationState", + "properties": { + "dataReplicationState": { + "description": "[Output Only] The status of disk creation. - ASYNC_REPLICATION_STATE_INITIALIZING: The device is doing the initial replication after starting the replication. - ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The primary disk is healthily replicating to the secondary device i.e. last_replication_time is within RPO. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND: The replication is lagging above the SLO limit due to some internal issue. - ASYNC_REPLICATION_STATE_REPLICATING_UNHEALTHY: The replication is lagging, and the RPO is not being met due to some internal issue. . - ASYNC_REPLICATION_STATE_REPLICATION_STUCK: The replication is completely stuck due to some internal error. - ASYNC_REPLICATION_STATE_STOPPING: The replication is under the process of being stopped. This is a transient state. - ASYNC_REPLICATION_STATE_STOPPED: The replication between the disk-pairs have stopped. ", + "enum": [ + "ASYNC_REPLICATION_STATE_INITIALIZING", + "ASYNC_REPLICATION_STATE_REPLICATING_BEHIND", + "ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY", + "ASYNC_REPLICATION_STATE_REPLICATING_UNHEALTHY", + "ASYNC_REPLICATION_STATE_REPLICATION_STUCK", + "ASYNC_REPLICATION_STATE_STOPPED", + "ASYNC_REPLICATION_STATE_STOPPING", + "ASYNC_REPLICATION_STATE_UNSPECIFIED" + ], + "enumDescriptions": [ + "The device is doing the initial replication after starting the replication.", + "The replication is lagging behind (last_replication_time \u003e RPO), because the disk's change rate is above the supported limit.", + "The primary disk is healthily replicating to the secondary device i.e. last_replication_time is within RPO.", + "The replication is lagging, and the RPO is not being met due to some internal issue.", + "The replication is completely stuck due to some internal error.", + "The replication between the disk-pairs have stopped.", + "The replication is under the process of being stopped. This is a transient sate.", + "" + ], + "type": "string" + }, + "replicationDiskPair": { + "$ref": "ReplicationDiskPair" + } + }, + "type": "object" + }, "DiskParams": { "description": "Additional disk params.", "id": "DiskParams", @@ -56905,9 +57813,9 @@ "FLEXIBLE" ], "enumDescriptions": [ - "Number of deployment blocks, size, and topology is fixed during creation and does not change over time. Deployment will be expressed in terms of blocks.", - "Deployment type is unspecified.", - "Distribution of capacity in blocks is not static and can change over time. This is expected to have more obtainability over DENSE deployment. Deployment will not be expressed in terms of blocks." + "The reserved capacity is made up of densely deployed reservation blocks.", + "", + "The reserved capacity is made up of highly flexible, logical reservation blocks." ], "type": "string" }, @@ -56976,16 +57884,16 @@ "type": "string" }, "schedulingType": { - "description": "Indicates the maintenance type for this group of VMs. This will be set on the reservation via FR, and will be inherited for reservation blocks.", + "description": "Maintenance information for this reservation", "enum": [ "GROUPED", "GROUP_MAINTENANCE_TYPE_UNSPECIFIED", "INDEPENDENT" ], "enumDescriptions": [ - "Synchronized maintenance. Common maintenance schedule/window is defined for this group of VMs. Not applicable for FLEXIBLE reservation", + "Maintenance on all reserved instances in the reservation is synchronized.", "Unknown maintenance type.", - "Unsynchronized maintenance. These group of VMs do not share a common schedule for maintenance. Instead all VMs have individual windows of their own in which maintenance is scheduled." + "Maintenance is not synchronized for this reservation. Instead, each instance has its own maintenance window." ], "type": "string" }, @@ -57805,6 +58713,19 @@ }, "type": "object" }, + "GetAsyncReplicationStatusResponse": { + "id": "GetAsyncReplicationStatusResponse", + "properties": { + "asyncReplicationStatus": { + "$ref": "AsyncReplicationStatus" + }, + "etag": { + "description": "end_interface: MixerGetResponseWithEtagBuilder", + "type": "string" + } + }, + "type": "object" + }, "GetOwnerInstanceResponse": { "id": "GetOwnerInstanceResponse", "properties": { @@ -57922,7 +58843,7 @@ "id": "GroupMaintenanceInfo", "properties": { "enableOpportunisticMaintenance": { - "description": "Indicates if this group of VMs have opportunistic maintenance enabled. This will be set on the reservation, and will be inherited for reservation blocks.", + "description": "This setting enables or disables opportunistic maintenance. If enabled, maintenance is performed on unused reservations whenever possible.", "type": "boolean" }, "maintenanceOngoingCount": { @@ -57936,16 +58857,16 @@ "type": "integer" }, "schedulingType": { - "description": "Indicates the maintenance type for this group of VMs. This will be set on the reservation, and will be inherited for reservation blocks.", + "description": "The type of maintenance for the reservation.", "enum": [ "GROUPED", "GROUP_MAINTENANCE_TYPE_UNSPECIFIED", "INDEPENDENT" ], "enumDescriptions": [ - "Synchronized maintenance. Common maintenance schedule/window is defined for this group of VMs. Not applicable for FLEXIBLE reservation", + "Maintenance on all reserved instances in the reservation is synchronized.", "Unknown maintenance type.", - "Unsynchronized maintenance. These group of VMs do not share a common schedule for maintenance. Instead all VMs have individual windows of their own in which maintenance is scheduled." + "Maintenance is not synchronized for this reservation. Instead, each instance has its own maintenance window." ], "type": "string" }, @@ -65476,7 +66397,7 @@ "id": "InstancesGetEffectiveFirewallsResponse", "properties": { "firewallPolicys": { - "description": "Effective firewalls from firewall policies.", + "description": "[Output Only] Effective firewalls from firewall policies.", "items": { "$ref": "InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy" }, @@ -65517,7 +66438,7 @@ "type": "integer" }, "rules": { - "description": "The rules that apply to the network.", + "description": "[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.", "items": { "$ref": "FirewallPolicyRule" }, @@ -66603,7 +67524,7 @@ "id": "Interconnect", "properties": { "aaiEnabled": { - "description": "Enable or disable the Application Aware Interconnect(AAI) feature on this interconnect.", + "description": "Enable or disable the application awareness feature on this Cloud Interconnect.", "type": "boolean" }, "adminEnabled": { @@ -66612,7 +67533,7 @@ }, "applicationAwareInterconnect": { "$ref": "InterconnectApplicationAwareInterconnect", - "description": "Configuration for enabling Application Aware Interconnect (AAI) on this Cloud Interconnect connection between Google and your on-premises router." + "description": "Configuration information for application awareness on this Cloud Interconnect." }, "availableFeatures": { "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - IF_MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", @@ -66820,14 +67741,14 @@ "type": "object" }, "InterconnectApplicationAwareInterconnect": { - "description": "Configuration information for enabling Application Aware Interconnect (AAI) on this Cloud Interconnect connection between Google and your on-premises router.", + "description": "Configuration information for application awareness on this Cloud Interconnect.", "id": "InterconnectApplicationAwareInterconnect", "properties": { "bandwidthPercentagePolicy": { "$ref": "InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy" }, "profileDescription": { - "description": "A description for the AAI profile on this interconnect.", + "description": "Description for the application awareness profile on this Cloud Interconnect.", "type": "string" }, "shapeAveragePercentages": { @@ -72340,11 +73261,11 @@ "type": "object" }, "MultiMigResourcePolicies": { - "description": "Resource policies message for a multi-MIG. Represents low level machine cluster behavior in several dimensions, all of which depend on the machine family and fleet.", + "description": "Resource policies message for a multi-MIG. Specifies the workload policy configuration of the multi-MIG.", "id": "MultiMigResourcePolicies", "properties": { "workloadPolicy": { - "description": "The URL of the workload policy that is specified for this multi-MIG. It can be a full or partial URL. For example, the following are all valid URLs to a workload policy: - https://www.googleapis.com/compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy ", + "description": "The URL of the workload policy for this multi-MIG. It can be a full or partial URL. For example, the following are all valid URLs to a workload policy: - https://www.googleapis.com/compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy ", "type": "string" } }, @@ -72392,7 +73313,7 @@ "type": "string" }, "items": { - "description": "A list of multi-MIG resources.", + "description": "A list of multi-MIGs in the specified project and region.", "items": { "$ref": "MultiMig" }, @@ -75741,7 +76662,7 @@ "id": "NetworksGetEffectiveFirewallsResponse", "properties": { "firewallPolicys": { - "description": "Effective firewalls from firewall policy.", + "description": "[Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall Policies and Hierarchical Firewall Policies. Use regionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional Network Firewall Policies as well.", "items": { "$ref": "NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy" }, @@ -75782,7 +76703,7 @@ "type": "integer" }, "rules": { - "description": "The rules that apply to the network.", + "description": "[Output Only] The rules that apply to the network.", "items": { "$ref": "FirewallPolicyRule" }, @@ -84486,7 +85407,7 @@ "id": "RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse", "properties": { "firewallPolicys": { - "description": "Effective firewalls from firewall policy.", + "description": "[Output only] Effective firewalls from firewall policy. It applies to Regional Network Firewall Policies in the specified region, Global Network Firewall Policies and Hierachial Firewall Policies which are associated with the network.", "items": { "$ref": "RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy" }, @@ -84519,7 +85440,7 @@ "type": "integer" }, "rules": { - "description": "The rules that apply to the network.", + "description": "[Output only] The rules that apply to the network.", "items": { "$ref": "FirewallPolicyRule" }, @@ -84611,6 +85532,46 @@ }, "type": "object" }, + "RegionWaitForReplicationCatchUpRequest": { + "id": "RegionWaitForReplicationCatchUpRequest", + "properties": { + "maxWaitDuration": { + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "ReplicationDetails": { + "id": "ReplicationDetails", + "properties": { + "lastReplicationTime": { + "description": "The last sync time of the device pair.", + "format": "google-datetime", + "type": "string" + }, + "secondsSinceLastReplication": { + "description": "Replication lag in seconds. This will only be populated if device is in replicating state. Note that the value is calculated sometime during request processing and at the instant the client receives the response, the current replication_lag may have changed.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "ReplicationDiskPair": { + "id": "ReplicationDiskPair", + "properties": { + "primaryDisk": { + "description": "URL of the primary disk.", + "type": "string" + }, + "secondaryDisk": { + "description": "URL of the secondary disk.", + "type": "string" + } + }, + "type": "object" + }, "RequestMirrorPolicy": { "description": "A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer doesn't wait for responses from the shadow service. Before sending traffic to the shadow service, the host or authority header is suffixed with -shadow.", "id": "RequestMirrorPolicy", @@ -84659,9 +85620,9 @@ "FLEXIBLE" ], "enumDescriptions": [ - "Number of deployment blocks, size, and topology is fixed during creation and does not change over time. Deployment will be expressed in terms of blocks.", - "Deployment type is unspecified.", - "Distribution of capacity in blocks is not static and can change over time. This is expected to have more obtainability over DENSE deployment. Deployment will not be expressed in terms of blocks." + "The reserved capacity is made up of densely deployed reservation blocks.", + "", + "The reserved capacity is made up of highly flexible, logical reservation blocks." ], "type": "string" }, @@ -84675,7 +85636,7 @@ "type": "string" }, "instanceTerminationAction": { - "description": "Instance termination action that will be invoked when the reservation is deleted.", + "description": "Instance termination action is invoked when the reservation is deleted. This only applies to reservations with a Deployment type.", "enum": [ "DELETE", "INSTANCE_TERMINATION_ACTION_UNSPECIFIED", @@ -84743,7 +85704,7 @@ "type": "boolean" }, "status": { - "description": "[Output Only] The status of the reservation.", + "description": "[Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress. ", "enum": [ "CREATING", "DELETING", @@ -84752,11 +85713,11 @@ "UPDATING" ], "enumDescriptions": [ - "Resources are being allocated for the reservation.", - "Reservation is currently being deleted.", + "Reservation resources are being allocated.", + "Reservation deletion is in progress.", "", - "Reservation has allocated all its resources.", - "Reservation is currently being resized." + "Reservation resources have been allocated, and the reservation is ready for use.", + "Reservation update is in progress." ], "type": "string" }, @@ -84970,7 +85931,7 @@ "id": "ReservationBlock", "properties": { "count": { - "description": "[Output Only] Specifies the number of resources that are allocated in this block. It indicates the maximum number of VMs that a user can run on this particular block.", + "description": "[Output Only] The number of resources that are allocated in this reservation block.", "format": "int32", "type": "integer" }, @@ -84984,7 +85945,7 @@ "type": "string" }, "inUseCount": { - "description": "[Output Only] Indicates how many instances are in use on this block.", + "description": "[Output Only] The number of instances that are currently in use on this reservation block.", "format": "int32", "type": "integer" }, @@ -84994,6 +85955,7 @@ "type": "string" }, "locationPrefix": { + "deprecated": true, "description": "[Output Only] Obfuscated location where this reservation block physically resides in format /CCCC/GGGG. This matches the tripod specified in the VM topology information. Example: /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003", "type": "string" }, @@ -85001,9 +85963,13 @@ "description": "[Output Only] The name of this reservation block generated by Google Compute Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, + "physicalHostTopology": { + "$ref": "ReservationBlockPhysicalTopology", + "description": "[Output Only] The physical topology of the reservation block." + }, "reservationMaintenance": { "$ref": "GroupMaintenanceInfo", - "description": "[Output Only] Maintenance information for the group of hosts on this reservation including running VMs and unused hosts. Applicable only to accelerator optimized VM families beyond A3 only. For both DENSE or STANDARD reservation, granular maintenance information can be retried at reservation block level." + "description": "[Output Only] Maintenance information for this reservation block." }, "selfLink": { "description": "[Output Only] Server-defined fully-qualified URL for this resource.", @@ -85036,6 +86002,20 @@ }, "type": "object" }, + "ReservationBlockPhysicalTopology": { + "id": "ReservationBlockPhysicalTopology", + "properties": { + "block": { + "description": "The hash of the capacity block within the cluster.", + "type": "string" + }, + "cluster": { + "description": "The cluster name of the reservation block.", + "type": "string" + } + }, + "type": "object" + }, "ReservationBlocksGetResponse": { "id": "ReservationBlocksGetResponse", "properties": { @@ -103936,6 +104916,16 @@ }, "type": "object" }, + "WaitForReplicationCatchUpRequest": { + "id": "WaitForReplicationCatchUpRequest", + "properties": { + "maxWaitDuration": { + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "WeightedBackendService": { "description": "In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple backend services. The volume of traffic for each backend service is proportional to the weight specified in each WeightedBackendService", "id": "WeightedBackendService", @@ -103956,6 +104946,425 @@ }, "type": "object" }, + "Wire": { + "description": "A pseudowire that connects two Interconnect connections.", + "id": "Wire", + "properties": { + "adminEnabled": { + "description": "[Output Only] Indicates whether the wire is enabled. When false, the wire is disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. Defaults to true.", + "type": "boolean" + }, + "endpoints": { + "description": "Wire endpoints are specific Interconnect connections.", + "items": { + "$ref": "WireEndpoint" + }, + "type": "array" + }, + "label": { + "description": "[Output Only] A label that identifies the wire. The format of this label combines the existing labels of the wire group endpoints and Interconnect connections used by this wire in alphabetical order as follows: `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: - ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the labels that you entered as map keys when you specified the wire group Interconnect objects. ", + "type": "string" + }, + "wireProperties": { + "$ref": "WireProperties", + "description": "[Output Only] Properties of the wire." + } + }, + "type": "object" + }, + "WireEndpoint": { + "description": "Wire endpoints are specific Interconnect connections.", + "id": "WireEndpoint", + "properties": { + "interconnect": { + "type": "string" + }, + "vlanTag": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "WireGroup": { + "description": "A resource that represents a group of redundant wires.", + "id": "WireGroup", + "properties": { + "adminEnabled": { + "description": "Indicates whether the wires in the wire group are enabled. When false, the wires in the wire group are disabled. When true and when there is simultaneously no wire-specific override of `adminEnabled` to false, a given wire is enabled. Defaults to true.", + "type": "boolean" + }, + "creationTimestamp": { + "description": "[Output Only] Creation timestamp in RFC3339 text format.", + "type": "string" + }, + "description": { + "description": "An optional description of the wire group.", + "type": "string" + }, + "endpoints": { + "additionalProperties": { + "$ref": "WireGroupEndpoint" + }, + "description": "A map that contains the logical endpoints of the wire group. Specify key-value pairs for the map as follows: - Key: an RFC1035 user-specified label. - Value: an Endpoint object. ", + "type": "object" + }, + "id": { + "description": "[Output Only] The unique identifier for the resource type. The server generates this identifier.", + "format": "uint64", + "type": "string" + }, + "kind": { + "default": "compute#wireGroup", + "description": "[Output Only] Type of the resource. Always compute#wireGroups for wire groups.", + "type": "string" + }, + "name": { + "description": "Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for the resource.", + "type": "string" + }, + "selfLinkWithId": { + "type": "string" + }, + "serviceLevel": { + "$ref": "WireGroupServiceLevel", + "description": "Service level details determined for the wire group configuration." + }, + "wireGroupProperties": { + "$ref": "WireGroupProperties", + "description": "Properties of the wire group." + }, + "wireInputs": { + "additionalProperties": { + "$ref": "WireGroupWireInputs" + }, + "description": "A map that contains optional settings for individual wires. Specify key-value pairs for the map as follows: - Key: the label of an existing wire. To view a wire label and its format, see the wires[].label field. - Value: a WireInputs object. ", + "type": "object" + }, + "wireProperties": { + "$ref": "WireProperties", + "description": "Properties for all wires in the wire group." + }, + "wires": { + "description": "The single/redundant wire(s) managed by the wire group.", + "items": { + "$ref": "Wire" + }, + "type": "array" + } + }, + "type": "object" + }, + "WireGroupEndpoint": { + "description": "A logical endpoint for the wire group. An endpoint represents a metro that contains redundant Interconnect connections. A wire group is created between two endpoints.", + "id": "WireGroupEndpoint", + "properties": { + "interconnects": { + "additionalProperties": { + "$ref": "WireGroupEndpointInterconnect" + }, + "description": "A map that contains the redundant Interconnect connections. Specify key-value pairs for the map as follows: - Key: an RFC1035 user-specified label. - Value: an Interconnect object. ", + "type": "object" + } + }, + "type": "object" + }, + "WireGroupEndpointInterconnect": { + "description": "The redundant Interconnect connections for this endpoint.", + "id": "WireGroupEndpointInterconnect", + "properties": { + "interconnect": { + "description": "An Interconnect connection. You can specify the connection as a partial or full URL. If the connection is in a different project from the cross-site network, use a format that specifies the project. See the following examples of partial and full URLs: global/interconnects/NAME projects/PROJECT_ID/global/interconnects/NAME - https://compute.googleapis.com/compute/projects/PROJECT_ID /global/interconnects/NAME ", + "type": "string" + }, + "vlanTags": { + "description": "To configure the wire group for VLAN mode, enter a VLAN tag, which is a number from `2` to `4093`. You can autoallocate a tag by entering `0`. To configure the wire group for port mode, enter `-1`. Review the following guidelines: - A VLAN tag must be unique for an Interconnect connection across all attachments and wire groups. - Both endpoints of a wire must use the same VLAN tag value. - Single wire and redundant type wire groups must have only one VLAN tag. - Box and cross type wire groups must have two VLAN tags. The first is for the same-zone pseudowire, and the second is for the cross-zone pseudowire. - Port mode pseudowires must configure a value of `-1` for both endpoints. ", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + } + }, + "type": "object" + }, + "WireGroupList": { + "description": "Response for the list request.", + "id": "WireGroupList", + "properties": { + "etag": { + "type": "string" + }, + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "description": "A list of wire group resources.", + "items": { + "$ref": "WireGroup" + }, + "type": "array" + }, + "kind": { + "default": "compute#wireGroup", + "description": "[Output Only] Type of the resource. Always compute#wireGroups for wire groups.", + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for this resource.", + "type": "string" + }, + "unreachables": { + "description": "[Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder", + "items": { + "type": "string" + }, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "WireGroupProperties": { + "description": "The properties of a wire group. These properties determine how a group of redundant wires are created and managed.", + "id": "WireGroupProperties", + "properties": { + "type": { + "description": "The type of the wire group, one of the following: - WIRE: a single pseudowire over two Interconnect connections with no redundancy. - REDUNDANT: two pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro. Each redundant pair of Interconnect connections spans both edge availability domains of the metro. Each pseudowire connects Interconnect connections in matching edge availability domains of the two metros. - BOX_AND_CROSS: four pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro. Each redundant pair of Interconnect connections spans both edge availability domains of the metro. Two pseudowires connect Interconnect connections in matching edge availability domains of the two metros. Two additional pseudowires connect the non-matching edge availability domains of the two metros. ", + "enum": [ + "BOX_AND_CROSS", + "REDUNDANT", + "WIRE" + ], + "enumDescriptions": [ + "Four pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro. Each redundant pair of Interconnect connections spans both edge availability domains of the metro. Two pseudowires connect Interconnect connections in matching edge availability domains of the two metros. Two additional pseudowires connect the non-matching edge availability domains of the two metros.", + "Two pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro. Each redundant pair of Interconnect connections spans both edge availability domains of the metro. Each pseudowire connects Interconnect connections in matching edge availability domains of the two metros.", + "A single pseudowire over two Interconnect connections with no redundancy." + ], + "type": "string" + } + }, + "type": "object" + }, + "WireGroupServiceLevel": { + "description": "Service level details determined for the wire group configuration.", + "id": "WireGroupServiceLevel", + "properties": { + "availabilityClass": { + "description": "[Output Only] The availability SLA that the wire group qualifies for. One of the following: `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, or `AVAILABILITY_999`.", + "enum": [ + "AVAILABILITY_99", + "AVAILABILITY_999", + "NO_AVAILABILITY_SLA" + ], + "enumDescriptions": [ + "99% availability", + "99.9% availability", + "No SLA" + ], + "type": "string" + } + }, + "type": "object" + }, + "WireGroupWireInputs": { + "description": "Optional settings for individual wires. Allows wire-level control that can be useful for migration purposes. If you use this field, you opt-out of the SLA for the wire group.", + "id": "WireGroupWireInputs", + "properties": { + "adminEnabled": { + "description": "Indicates whether the wire is enabled. When false, the wire is disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. Defaults to true.", + "type": "boolean" + }, + "wirePropertyOverrides": { + "$ref": "WireProperties", + "description": "The overridden properties for the wire. Any properties that are not overridden are omitted from the object. Review the following guidelines: - If you apply wire overrides to a wire and its wire group bandwidth configuration is set to `SHARED_WITH_WIRE_GROUP`, the `meteredBandwidth` and `unmeteredBandwidth` properties must not differ from the wire group. - Overrides generate a `configurationNotice`. Ensure that differences in wire configuration are temporary. An example use case for wire overrides is slowly rolling out configuration changes to individual wires in a wire group. " + } + }, + "type": "object" + }, + "WireProperties": { + "description": "The properties of a wire.", + "id": "WireProperties", + "properties": { + "bandwidthAllocation": { + "description": "The configuration of the bandwidth allocation, one of the following: - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group. - SHARED_WITH_WIRE_GROUP: configures one unmetered bandwidth allocation for the wire group. The unmetered bandwidth is divided equally across each wire in the group, but dynamic throttling reallocates unused unmetered bandwidth from unused or underused wires to other wires in the group. For example, with a four-wire box-and-cross group, when one Interconnect connection is down, the unmetered bandwidth of the two down wires is reallocated to the remaining up wires. ", + "enum": [ + "ALLOCATE_PER_WIRE", + "SHARED_WITH_WIRE_GROUP" + ], + "enumDescriptions": [ + "Configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group.", + "Configures one unmetered bandwidth allocation for the wire group. The unmetered bandwidth is divided equally across each wire in the group, but dynamic throttling reallocates unused unmetered bandwidth from unused or underused wires to other wires in the group. For example, with a four-wire box-and-cross group, when one Interconnect connection is down, the unmetered bandwidth of the two down wires is reallocated to the remaining up wires." + ], + "type": "string" + }, + "bandwidthMetered": { + "description": "The metered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is 100 Gbps. The default value is `0`. You can specify unlimited bandwidth by entering `-1`. However, actual data transfer is limited by the port speed.", + "format": "int64", + "type": "string" + }, + "bandwidthUnmetered": { + "description": "The unmetered bandwidth in Gigabits per second, using decimal units. `10` is 10 Gbps, `100` is 100 Gbps. Must be a multiple of 10.", + "format": "int64", + "type": "string" + }, + "faultResponse": { + "description": "Response when a fault is detected in a pseudowire: - NONE: default. - DISABLE_PORT: set the port line protocol down when inline probes detect a fault. This setting is only permitted on port mode pseudowires. ", + "enum": [ + "DISABLE_PORT", + "NONE" + ], + "enumDescriptions": [ + "Set the port line protocol down when inline probes detect a fault. This setting is only permitted on port mode pseudowires.", + "Default." + ], + "type": "string" + }, + "networkServiceClass": { + "description": "The network service class.", + "enum": [ + "BRONZE", + "GOLD" + ], + "enumDescriptions": [ + "The default service class.", + "A higher service class." + ], + "type": "string" + } + }, + "type": "object" + }, "XpnHostList": { "id": "XpnHostList", "properties": { diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index 7325cc02ccc..3c8696be279 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -167,6 +167,7 @@ func New(client *http.Client) (*Service, error) { s.Autoscalers = NewAutoscalersService(s) s.BackendBuckets = NewBackendBucketsService(s) s.BackendServices = NewBackendServicesService(s) + s.CrossSiteNetworks = NewCrossSiteNetworksService(s) s.DiskSettings = NewDiskSettingsService(s) s.DiskTypes = NewDiskTypesService(s) s.Disks = NewDisksService(s) @@ -274,6 +275,7 @@ func New(client *http.Client) (*Service, error) { s.UrlMaps = NewUrlMapsService(s) s.VpnGateways = NewVpnGatewaysService(s) s.VpnTunnels = NewVpnTunnelsService(s) + s.WireGroups = NewWireGroupsService(s) s.ZoneOperations = NewZoneOperationsService(s) s.ZoneQueuedResources = NewZoneQueuedResourcesService(s) s.Zones = NewZonesService(s) @@ -295,6 +297,8 @@ type Service struct { BackendServices *BackendServicesService + CrossSiteNetworks *CrossSiteNetworksService + DiskSettings *DiskSettingsService DiskTypes *DiskTypesService @@ -509,6 +513,8 @@ type Service struct { VpnTunnels *VpnTunnelsService + WireGroups *WireGroupsService + ZoneOperations *ZoneOperationsService ZoneQueuedResources *ZoneQueuedResourcesService @@ -568,6 +574,15 @@ type BackendServicesService struct { s *Service } +func NewCrossSiteNetworksService(s *Service) *CrossSiteNetworksService { + rs := &CrossSiteNetworksService{s: s} + return rs +} + +type CrossSiteNetworksService struct { + s *Service +} + func NewDiskSettingsService(s *Service) *DiskSettingsService { rs := &DiskSettingsService{s: s} return rs @@ -1531,6 +1546,15 @@ type VpnTunnelsService struct { s *Service } +func NewWireGroupsService(s *Service) *WireGroupsService { + rs := &WireGroupsService{s: s} + return rs +} + +type WireGroupsService struct { + s *Service +} + func NewZoneOperationsService(s *Service) *ZoneOperationsService { rs := &ZoneOperationsService{s: s} return rs @@ -3054,14 +3078,10 @@ func (s AllocationReservationSharingPolicy) MarshalJSON() ([]byte, error) { // AllocationResourceStatus: [Output Only] Contains output only fields. type AllocationResourceStatus struct { - // ReservationBlockCount: Indicates number of blocks for accelerator optimized - // family (applicable beyond A3 only). + // ReservationBlockCount: The number of reservation blocks associated with this + // reservation. ReservationBlockCount int64 `json:"reservationBlockCount,omitempty"` - // ReservationMaintenance: Maintenance information for the group of hosts on - // this reservation including running VMs and unused hosts. Applicable only to - // accelerator optimized VM families beyond A3 only. For both DENSE or STANDARD - // reservation, granular maintenance information can be retried at reservation - // block level. + // ReservationMaintenance: Maintenance information for this reservation ReservationMaintenance *GroupMaintenanceInfo `json:"reservationMaintenance,omitempty"` // SpecificSkuAllocation: Allocation Properties of this reservation. SpecificSkuAllocation *AllocationResourceStatusSpecificSKUAllocation `json:"specificSkuAllocation,omitempty"` @@ -3239,6 +3259,27 @@ func (s AllocationSpecificSKUReservation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type AsyncReplicationStatus struct { + DiskPairReplicationState *DiskPairReplicationState `json:"diskPairReplicationState,omitempty"` + LastReplicationDetails *ReplicationDetails `json:"lastReplicationDetails,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiskPairReplicationState") + // 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. "DiskPairReplicationState") 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 AsyncReplicationStatus) MarshalJSON() ([]byte, error) { + type NoMethod AsyncReplicationStatus + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AttachedDisk: An instance-attached disk resource. type AttachedDisk struct { // Architecture: [Output Only] The architecture of the attached disk. Valid @@ -8480,6 +8521,7 @@ type Commitment struct { // "ACCELERATOR_OPTIMIZED" // "ACCELERATOR_OPTIMIZED_A3" // "ACCELERATOR_OPTIMIZED_A3_MEGA" + // "ACCELERATOR_OPTIMIZED_A3_ULTRA" // "COMPUTE_OPTIMIZED" // "COMPUTE_OPTIMIZED_C2D" // "COMPUTE_OPTIMIZED_C3" @@ -9260,6 +9302,213 @@ func (s CorsPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CrossSiteNetwork: A resource that represents a cross-site network. You can +// use cross-site networks to connect your on-premises networks to each other +// through Interconnect connections. +type CrossSiteNetwork struct { + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. + CreationTimestamp string `json:"creationTimestamp,omitempty"` + // Description: An optional description of the cross-site network. + Description string `json:"description,omitempty"` + // Id: [Output Only] The unique identifier for the resource type. The server + // generates this identifier. + Id uint64 `json:"id,omitempty,string"` + // Kind: [Output Only] Type of the resource. Always compute#crossSiteNetwork + // for cross-site networks. + Kind string `json:"kind,omitempty"` + // Name: Name of the resource. Provided by the client when the resource is + // created. The name must be 1-63 characters long, and comply with RFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must + // be a lowercase letter, and all following characters must be a dash, + // lowercase letter, or digit, except the last character, which cannot be a + // dash. + Name string `json:"name,omitempty"` + // SelfLink: [Output Only] Server-defined URL for the resource. + SelfLink string `json:"selfLink,omitempty"` + // SelfLinkWithId: [Output Only] Server-defined URL for this resource with the + // resource id. + SelfLinkWithId string `json:"selfLinkWithId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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 CrossSiteNetwork) MarshalJSON() ([]byte, error) { + type NoMethod CrossSiteNetwork + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// CrossSiteNetworkList: Response to the list request that contains a list of +// cross-site networks. +type CrossSiteNetworkList struct { + Etag string `json:"etag,omitempty"` + // Id: [Output Only] Unique identifier for the resource; defined by the server. + Id string `json:"id,omitempty"` + // Items: A list of CrossSiteNetwork resources. + Items []*CrossSiteNetwork `json:"items,omitempty"` + // Kind: [Output Only] Type of the resource. Always compute#crossSiteNetwork + // for cross-site networks. + Kind string `json:"kind,omitempty"` + // NextPageToken: [Output Only] This token allows you to get the next page of + // results for list requests. If the number of results is larger than + // maxResults, use the nextPageToken as a value for the query parameter + // pageToken in the next list request. Subsequent list requests will have their + // own nextPageToken to continue paging through the results. + NextPageToken string `json:"nextPageToken,omitempty"` + // SelfLink: [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + // Unreachables: [Output Only] Unreachable resources. end_interface: + // MixerListResponseWithEtagBuilder + Unreachables []string `json:"unreachables,omitempty"` + // Warning: [Output Only] Informational warning message. + Warning *CrossSiteNetworkListWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Etag") 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. "Etag") 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 CrossSiteNetworkList) MarshalJSON() ([]byte, error) { + type NoMethod CrossSiteNetworkList + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// CrossSiteNetworkListWarning: [Output Only] Informational warning message. +type CrossSiteNetworkListWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, Compute + // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made + // by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources + // has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is + // larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected + // kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend + // service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list + // overhead quota exceed which captures the amount of resources filtered out by + // user-defined list filter. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not + // assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip + // forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance + // URL refers to an instance that does not have an ipv6 interface on the same + // network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to + // an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL + // refers to an instance that is not on the same network as the route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a + // status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue + // the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing + // due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that + // requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is + // in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete + // could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance + // group manager is valid as such, but its application does not make a lot of + // sense, because it allows only single instance in instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are + // present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + // Data: [Output Only] Metadata about this warning in key: value format. For + // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } + Data []*CrossSiteNetworkListWarningData `json:"data,omitempty"` + // Message: [Output Only] A human-readable description of the warning code. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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 CrossSiteNetworkListWarning) MarshalJSON() ([]byte, error) { + type NoMethod CrossSiteNetworkListWarning + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type CrossSiteNetworkListWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning being + // returned. For example, for warnings where there are no results in a list + // request for a particular zone, this key might be scope and the key value + // might be the zone name. Other examples might be a key indicating a + // deprecated resource and a suggested replacement, or a warning about invalid + // network settings (for example, if an instance attempts to perform IP + // forwarding but is not enabled for IP forwarding). + Key string `json:"key,omitempty"` + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 CrossSiteNetworkListWarningData) MarshalJSON() ([]byte, error) { + type NoMethod CrossSiteNetworkListWarningData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CustomErrorResponsePolicy: Specifies the custom error response policy that // must be applied when the backend service or backend bucket responds with an // error. @@ -10280,6 +10529,60 @@ func (s DiskMoveRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type DiskPairReplicationState struct { + // DataReplicationState: [Output Only] The status of disk creation. - + // ASYNC_REPLICATION_STATE_INITIALIZING: The device is doing the initial + // replication after starting the replication. - + // ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The primary disk is healthily + // replicating to the secondary device i.e. last_replication_time is within + // RPO. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND: The replication is + // lagging above the SLO limit due to some internal issue. - + // ASYNC_REPLICATION_STATE_REPLICATING_UNHEALTHY: The replication is lagging, + // and the RPO is not being met due to some internal issue. . - + // ASYNC_REPLICATION_STATE_REPLICATION_STUCK: The replication is completely + // stuck due to some internal error. - ASYNC_REPLICATION_STATE_STOPPING: The + // replication is under the process of being stopped. This is a transient + // state. - ASYNC_REPLICATION_STATE_STOPPED: The replication between the + // disk-pairs have stopped. + // + // Possible values: + // "ASYNC_REPLICATION_STATE_INITIALIZING" - The device is doing the initial + // replication after starting the replication. + // "ASYNC_REPLICATION_STATE_REPLICATING_BEHIND" - The replication is lagging + // behind (last_replication_time > RPO), because the disk's change rate is + // above the supported limit. + // "ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY" - The primary disk is + // healthily replicating to the secondary device i.e. last_replication_time is + // within RPO. + // "ASYNC_REPLICATION_STATE_REPLICATING_UNHEALTHY" - The replication is + // lagging, and the RPO is not being met due to some internal issue. + // "ASYNC_REPLICATION_STATE_REPLICATION_STUCK" - The replication is + // completely stuck due to some internal error. + // "ASYNC_REPLICATION_STATE_STOPPED" - The replication between the disk-pairs + // have stopped. + // "ASYNC_REPLICATION_STATE_STOPPING" - The replication is under the process + // of being stopped. This is a transient sate. + // "ASYNC_REPLICATION_STATE_UNSPECIFIED" + DataReplicationState string `json:"dataReplicationState,omitempty"` + ReplicationDiskPair *ReplicationDiskPair `json:"replicationDiskPair,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataReplicationState") 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. "DataReplicationState") 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 DiskPairReplicationState) MarshalJSON() ([]byte, error) { + type NoMethod DiskPairReplicationState + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DiskParams: Additional disk params. type DiskParams struct { // ResourceManagerTags: Resource manager tags to be bound to the disk. Tag keys @@ -13858,13 +14161,11 @@ type FutureReservation struct { // reservation. // // Possible values: - // "DENSE" - Number of deployment blocks, size, and topology is fixed during - // creation and does not change over time. Deployment will be expressed in - // terms of blocks. - // "DEPLOYMENT_TYPE_UNSPECIFIED" - Deployment type is unspecified. - // "FLEXIBLE" - Distribution of capacity in blocks is not static and can - // change over time. This is expected to have more obtainability over DENSE - // deployment. Deployment will not be expressed in terms of blocks. + // "DENSE" - The reserved capacity is made up of densely deployed reservation + // blocks. + // "DEPLOYMENT_TYPE_UNSPECIFIED" + // "FLEXIBLE" - The reserved capacity is made up of highly flexible, logical + // reservation blocks. DeploymentType string `json:"deploymentType,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the future reservation. @@ -13913,17 +14214,14 @@ type FutureReservation struct { // of Approval with INACTIVE state till specified start-time. Either provide // the reservation_name or a name_prefix. ReservationName string `json:"reservationName,omitempty"` - // SchedulingType: Indicates the maintenance type for this group of VMs. This - // will be set on the reservation via FR, and will be inherited for reservation - // blocks. + // SchedulingType: Maintenance information for this reservation // // Possible values: - // "GROUPED" - Synchronized maintenance. Common maintenance schedule/window - // is defined for this group of VMs. Not applicable for FLEXIBLE reservation + // "GROUPED" - Maintenance on all reserved instances in the reservation is + // synchronized. // "GROUP_MAINTENANCE_TYPE_UNSPECIFIED" - Unknown maintenance type. - // "INDEPENDENT" - Unsynchronized maintenance. These group of VMs do not - // share a common schedule for maintenance. Instead all VMs have individual - // windows of their own in which maintenance is scheduled. + // "INDEPENDENT" - Maintenance is not synchronized for this reservation. + // Instead, each instance has its own maintenance window. SchedulingType string `json:"schedulingType,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. @@ -14868,6 +15166,31 @@ func (s GRPCTLSHealthCheck) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type GetAsyncReplicationStatusResponse struct { + AsyncReplicationStatus *AsyncReplicationStatus `json:"asyncReplicationStatus,omitempty"` + // Etag: end_interface: MixerGetResponseWithEtagBuilder + Etag string `json:"etag,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AsyncReplicationStatus") 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. "AsyncReplicationStatus") 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 GetAsyncReplicationStatusResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetAsyncReplicationStatusResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type GetOwnerInstanceResponse struct { // Instance: Full instance resource URL. Instance string `json:"instance,omitempty"` @@ -15056,9 +15379,9 @@ func (s GlobalSetPolicyRequest) MarshalJSON() ([]byte, error) { // GroupMaintenanceInfo: Maintenance Info for ReservationBlocks. type GroupMaintenanceInfo struct { - // EnableOpportunisticMaintenance: Indicates if this group of VMs have - // opportunistic maintenance enabled. This will be set on the reservation, and - // will be inherited for reservation blocks. + // EnableOpportunisticMaintenance: This setting enables or disables + // opportunistic maintenance. If enabled, maintenance is performed on unused + // reservations whenever possible. EnableOpportunisticMaintenance bool `json:"enableOpportunisticMaintenance,omitempty"` // MaintenanceOngoingCount: Progress for ongoing maintenance for this group of // VMs/hosts. Describes number of hosts in the block that have ongoing @@ -15068,17 +15391,14 @@ type GroupMaintenanceInfo struct { // VMs/hosts. Describes number of hosts in the block that have pending // maintenance. MaintenancePendingCount int64 `json:"maintenancePendingCount,omitempty"` - // SchedulingType: Indicates the maintenance type for this group of VMs. This - // will be set on the reservation, and will be inherited for reservation - // blocks. + // SchedulingType: The type of maintenance for the reservation. // // Possible values: - // "GROUPED" - Synchronized maintenance. Common maintenance schedule/window - // is defined for this group of VMs. Not applicable for FLEXIBLE reservation + // "GROUPED" - Maintenance on all reserved instances in the reservation is + // synchronized. // "GROUP_MAINTENANCE_TYPE_UNSPECIFIED" - Unknown maintenance type. - // "INDEPENDENT" - Unsynchronized maintenance. These group of VMs do not - // share a common schedule for maintenance. Instead all VMs have individual - // windows of their own in which maintenance is scheduled. + // "INDEPENDENT" - Maintenance is not synchronized for this reservation. + // Instead, each instance has its own maintenance window. SchedulingType string `json:"schedulingType,omitempty"` // UpcomingGroupMaintenance: Maintenance information on this group of VMs. UpcomingGroupMaintenance *UpcomingMaintenance `json:"upcomingGroupMaintenance,omitempty"` @@ -23832,7 +24152,7 @@ func (s InstancesBulkInsertOperationMetadata) MarshalJSON() ([]byte, error) { } type InstancesGetEffectiveFirewallsResponse struct { - // FirewallPolicys: Effective firewalls from firewall policies. + // FirewallPolicys: [Output Only] Effective firewalls from firewall policies. FirewallPolicys []*InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy `json:"firewallPolicys,omitempty"` // Firewalls: Effective firewalls on the instance. Firewalls []*Firewall `json:"firewalls,omitempty"` @@ -23868,7 +24188,9 @@ type InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy struct { // Priority: [Output only] Priority of firewall policy association. Not // applicable for type=HIERARCHY. Priority int64 `json:"priority,omitempty"` - // Rules: The rules that apply to the network. + // Rules: [Output Only] The rules that apply to the instance. Only rules that + // target the specific VM instance are returned if target service accounts or + // target secure tags are specified in the rules. Rules []*FirewallPolicyRule `json:"rules,omitempty"` // ShortName: [Output Only] The short name of the firewall policy. ShortName string `json:"shortName,omitempty"` @@ -25108,17 +25430,16 @@ func (s Int64RangeMatch) MarshalJSON() ([]byte, error) { // on-premises network. For more information, read the Dedicated Interconnect // Overview. type Interconnect struct { - // AaiEnabled: Enable or disable the Application Aware Interconnect(AAI) - // feature on this interconnect. + // AaiEnabled: Enable or disable the application awareness feature on this + // Cloud Interconnect. AaiEnabled bool `json:"aaiEnabled,omitempty"` // AdminEnabled: Administrative status of the interconnect. When this is set to // true, the Interconnect is functional and can carry traffic. When set to // false, no packets can be carried over the interconnect and no BGP routes are // exchanged over it. By default, the status is set to true. AdminEnabled bool `json:"adminEnabled,omitempty"` - // ApplicationAwareInterconnect: Configuration for enabling Application Aware - // Interconnect (AAI) on this Cloud Interconnect connection between Google and - // your on-premises router. + // ApplicationAwareInterconnect: Configuration information for application + // awareness on this Cloud Interconnect. ApplicationAwareInterconnect *InterconnectApplicationAwareInterconnect `json:"applicationAwareInterconnect,omitempty"` // AvailableFeatures: [Output only] List of features available for this // Interconnect connection, which can take one of the following values: - @@ -25307,11 +25628,11 @@ func (s Interconnect) MarshalJSON() ([]byte, error) { } // InterconnectApplicationAwareInterconnect: Configuration information for -// enabling Application Aware Interconnect (AAI) on this Cloud Interconnect -// connection between Google and your on-premises router. +// application awareness on this Cloud Interconnect. type InterconnectApplicationAwareInterconnect struct { BandwidthPercentagePolicy *InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy `json:"bandwidthPercentagePolicy,omitempty"` - // ProfileDescription: A description for the AAI profile on this interconnect. + // ProfileDescription: Description for the application awareness profile on + // this Cloud Interconnect. ProfileDescription string `json:"profileDescription,omitempty"` // ShapeAveragePercentages: Optional field to specify a list of shape average // percentages to be applied in conjunction with StrictPriorityPolicy or @@ -31503,12 +31824,11 @@ func (s MultiMigPart) MarshalJSON() ([]byte, error) { } // MultiMigResourcePolicies: Resource policies message for a multi-MIG. -// Represents low level machine cluster behavior in several dimensions, all of -// which depend on the machine family and fleet. +// Specifies the workload policy configuration of the multi-MIG. type MultiMigResourcePolicies struct { - // WorkloadPolicy: The URL of the workload policy that is specified for this - // multi-MIG. It can be a full or partial URL. For example, the following are - // all valid URLs to a workload policy: - + // WorkloadPolicy: The URL of the workload policy for this multi-MIG. It can be + // a full or partial URL. For example, the following are all valid URLs to a + // workload policy: - // https://www.googleapis.com/compute/v1/projects/project/regions/region // /resourcePolicies/resourcePolicy - // projects/project/regions/region/resourcePolicies/resourcePolicy - @@ -31584,7 +31904,7 @@ type MultiMigsList struct { Etag string `json:"etag,omitempty"` // Id: Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` - // Items: A list of multi-MIG resources. + // Items: A list of multi-MIGs in the specified project and region. Items []*MultiMig `json:"items,omitempty"` // Kind: Type of resource. Kind string `json:"kind,omitempty"` @@ -35042,7 +35362,10 @@ func (s NetworksAddPeeringRequest) MarshalJSON() ([]byte, error) { } type NetworksGetEffectiveFirewallsResponse struct { - // FirewallPolicys: Effective firewalls from firewall policy. + // FirewallPolicys: [Output Only] Effective firewalls from firewall policy. It + // returns Global Network Firewall Policies and Hierarchical Firewall Policies. + // Use regionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional + // Network Firewall Policies as well. FirewallPolicys []*NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy `json:"firewallPolicys,omitempty"` // Firewalls: Effective firewalls on the network. Firewalls []*Firewall `json:"firewalls,omitempty"` @@ -35078,7 +35401,7 @@ type NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy struct { // Priority: [Output only] Priority of firewall policy association. Not // applicable for type=HIERARCHY. Priority int64 `json:"priority,omitempty"` - // Rules: The rules that apply to the network. + // Rules: [Output Only] The rules that apply to the network. Rules []*FirewallPolicyRule `json:"rules,omitempty"` // ShortName: [Output Only] The short name of the firewall policy. ShortName string `json:"shortName,omitempty"` @@ -44419,7 +44742,10 @@ func (s RegionNetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON() ([]byte } type RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse struct { - // FirewallPolicys: Effective firewalls from firewall policy. + // FirewallPolicys: [Output only] Effective firewalls from firewall policy. It + // applies to Regional Network Firewall Policies in the specified region, + // Global Network Firewall Policies and Hierachial Firewall Policies which are + // associated with the network. FirewallPolicys []*RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy `json:"firewallPolicys,omitempty"` // Firewalls: Effective firewalls on the network. Firewalls []*Firewall `json:"firewalls,omitempty"` @@ -44452,7 +44778,7 @@ type RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewall // Priority: [Output only] Priority of firewall policy association. Not // applicable for type=HIERARCHY. Priority int64 `json:"priority,omitempty"` - // Rules: The rules that apply to the network. + // Rules: [Output only] The rules that apply to the network. Rules []*FirewallPolicyRule `json:"rules,omitempty"` // Type: [Output Only] The type of the firewall policy. Can be one of // HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. @@ -44584,6 +44910,75 @@ func (s RegionUrlMapsValidateRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type RegionWaitForReplicationCatchUpRequest struct { + MaxWaitDuration string `json:"maxWaitDuration,omitempty"` + // ForceSendFields is a list of field names (e.g. "MaxWaitDuration") 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. "MaxWaitDuration") 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 RegionWaitForReplicationCatchUpRequest) MarshalJSON() ([]byte, error) { + type NoMethod RegionWaitForReplicationCatchUpRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type ReplicationDetails struct { + // LastReplicationTime: The last sync time of the device pair. + LastReplicationTime string `json:"lastReplicationTime,omitempty"` + // SecondsSinceLastReplication: Replication lag in seconds. This will only be + // populated if device is in replicating state. Note that the value is + // calculated sometime during request processing and at the instant the client + // receives the response, the current replication_lag may have changed. + SecondsSinceLastReplication int64 `json:"secondsSinceLastReplication,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "LastReplicationTime") 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. "LastReplicationTime") 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 ReplicationDetails) MarshalJSON() ([]byte, error) { + type NoMethod ReplicationDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type ReplicationDiskPair struct { + // PrimaryDisk: URL of the primary disk. + PrimaryDisk string `json:"primaryDisk,omitempty"` + // SecondaryDisk: URL of the secondary disk. + SecondaryDisk string `json:"secondaryDisk,omitempty"` + // ForceSendFields is a list of field names (e.g. "PrimaryDisk") 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. "PrimaryDisk") 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 ReplicationDiskPair) MarshalJSON() ([]byte, error) { + type NoMethod ReplicationDiskPair + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RequestMirrorPolicy: A policy that specifies how requests intended for the // route's backends are shadowed to a separate mirrored backend service. The // load balancer doesn't wait for responses from the shadow service. Before @@ -44653,13 +45048,11 @@ type Reservation struct { // DeploymentType: Specifies the deployment strategy for this reservation. // // Possible values: - // "DENSE" - Number of deployment blocks, size, and topology is fixed during - // creation and does not change over time. Deployment will be expressed in - // terms of blocks. - // "DEPLOYMENT_TYPE_UNSPECIFIED" - Deployment type is unspecified. - // "FLEXIBLE" - Distribution of capacity in blocks is not static and can - // change over time. This is expected to have more obtainability over DENSE - // deployment. Deployment will not be expressed in terms of blocks. + // "DENSE" - The reserved capacity is made up of densely deployed reservation + // blocks. + // "DEPLOYMENT_TYPE_UNSPECIFIED" + // "FLEXIBLE" - The reserved capacity is made up of highly flexible, logical + // reservation blocks. DeploymentType string `json:"deploymentType,omitempty"` // Description: An optional description of this resource. Provide this property // when you create the resource. @@ -44667,8 +45060,9 @@ type Reservation struct { // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` - // InstanceTerminationAction: Instance termination action that will be invoked - // when the reservation is deleted. + // InstanceTerminationAction: Instance termination action is invoked when the + // reservation is deleted. This only applies to reservations with a Deployment + // type. // // Possible values: // "DELETE" - Delete the VM. @@ -44717,14 +45111,18 @@ type Reservation struct { // then only VMs that target the reservation by name can consume from this // reservation. SpecificReservationRequired bool `json:"specificReservationRequired,omitempty"` - // Status: [Output Only] The status of the reservation. + // Status: [Output Only] The status of the reservation. - CREATING: Reservation + // resources are being allocated. - READY: Reservation resources have been + // allocated, and the reservation is ready for use. - DELETING: Reservation + // deletion is in progress. - UPDATING: Reservation update is in progress. // // Possible values: - // "CREATING" - Resources are being allocated for the reservation. - // "DELETING" - Reservation is currently being deleted. + // "CREATING" - Reservation resources are being allocated. + // "DELETING" - Reservation deletion is in progress. // "INVALID" - // "READY" - Reservation has allocated all its resources. - // "UPDATING" - Reservation is currently being resized. + // "READY" - Reservation resources have been allocated, and the reservation + // is ready for use. + // "UPDATING" - Reservation update is in progress. Status string `json:"status,omitempty"` // Zone: Zone in which the reservation resides. A zone must be provided if the // reservation is created within a commitment. @@ -44958,17 +45356,16 @@ func (s ReservationAggregatedListWarningData) MarshalJSON() ([]byte, error) { // ReservationBlock: Represents a reservation block resource. type ReservationBlock struct { - // Count: [Output Only] Specifies the number of resources that are allocated in - // this block. It indicates the maximum number of VMs that a user can run on - // this particular block. + // Count: [Output Only] The number of resources that are allocated in this + // reservation block. Count int64 `json:"count,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` - // InUseCount: [Output Only] Indicates how many instances are in use on this - // block. + // InUseCount: [Output Only] The number of instances that are currently in use + // on this reservation block. InUseCount int64 `json:"inUseCount,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#reservationBlock // for reservation blocks. @@ -44982,11 +45379,11 @@ type ReservationBlock struct { // Compute Engine. The name must be 1-63 characters long, and comply with // RFC1035 @pattern a-z (?:[-a-z0-9]{0,61}[a-z0-9])? Name string `json:"name,omitempty"` - // ReservationMaintenance: [Output Only] Maintenance information for the group - // of hosts on this reservation including running VMs and unused hosts. - // Applicable only to accelerator optimized VM families beyond A3 only. For - // both DENSE or STANDARD reservation, granular maintenance information can be - // retried at reservation block level. + // PhysicalHostTopology: [Output Only] The physical topology of the reservation + // block. + PhysicalHostTopology *ReservationBlockPhysicalTopology `json:"physicalHostTopology,omitempty"` + // ReservationMaintenance: [Output Only] Maintenance information for this + // reservation block. ReservationMaintenance *GroupMaintenanceInfo `json:"reservationMaintenance,omitempty"` // SelfLink: [Output Only] Server-defined fully-qualified URL for this // resource. @@ -45022,6 +45419,29 @@ func (s ReservationBlock) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type ReservationBlockPhysicalTopology struct { + // Block: The hash of the capacity block within the cluster. + Block string `json:"block,omitempty"` + // Cluster: The cluster name of the reservation block. + Cluster string `json:"cluster,omitempty"` + // ForceSendFields is a list of field names (e.g. "Block") 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. "Block") 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 ReservationBlockPhysicalTopology) MarshalJSON() ([]byte, error) { + type NoMethod ReservationBlockPhysicalTopology + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type ReservationBlocksGetResponse struct { Resource *ReservationBlock `json:"resource,omitempty"` @@ -65581,6 +66001,26 @@ func (s WafExpressionSetExpression) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type WaitForReplicationCatchUpRequest struct { + MaxWaitDuration string `json:"maxWaitDuration,omitempty"` + // ForceSendFields is a list of field names (e.g. "MaxWaitDuration") 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. "MaxWaitDuration") 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 WaitForReplicationCatchUpRequest) MarshalJSON() ([]byte, error) { + type NoMethod WaitForReplicationCatchUpRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // WeightedBackendService: In contrast to a single BackendService in // HttpRouteAction to which all matching traffic is directed to, // WeightedBackendService allows traffic to be split across multiple backend @@ -65627,6 +66067,538 @@ func (s WeightedBackendService) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Wire: A pseudowire that connects two Interconnect connections. +type Wire struct { + // AdminEnabled: [Output Only] Indicates whether the wire is enabled. When + // false, the wire is disabled. When true and when the wire group of the wire + // is also enabled, the wire is enabled. Defaults to true. + AdminEnabled bool `json:"adminEnabled,omitempty"` + // Endpoints: Wire endpoints are specific Interconnect connections. + Endpoints []*WireEndpoint `json:"endpoints,omitempty"` + // Label: [Output Only] A label that identifies the wire. The format of this + // label combines the existing labels of the wire group endpoints and + // Interconnect connections used by this wire in alphabetical order as follows: + // `ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1`, where: - ENDPOINT_A and + // ENDPOINT_B: are the labels that you entered as map keys when you specified + // the wire group endpoint objects. - CONNECTION_A1 and CONNECTION_B1: are the + // labels that you entered as map keys when you specified the wire group + // Interconnect objects. + Label string `json:"label,omitempty"` + // WireProperties: [Output Only] Properties of the wire. + WireProperties *WireProperties `json:"wireProperties,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdminEnabled") 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. "AdminEnabled") 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 Wire) MarshalJSON() ([]byte, error) { + type NoMethod Wire + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WireEndpoint: Wire endpoints are specific Interconnect connections. +type WireEndpoint struct { + Interconnect string `json:"interconnect,omitempty"` + VlanTag int64 `json:"vlanTag,omitempty"` + // ForceSendFields is a list of field names (e.g. "Interconnect") 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. "Interconnect") 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 WireEndpoint) MarshalJSON() ([]byte, error) { + type NoMethod WireEndpoint + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WireGroup: A resource that represents a group of redundant wires. +type WireGroup struct { + // AdminEnabled: Indicates whether the wires in the wire group are enabled. + // When false, the wires in the wire group are disabled. When true and when + // there is simultaneously no wire-specific override of `adminEnabled` to + // false, a given wire is enabled. Defaults to true. + AdminEnabled bool `json:"adminEnabled,omitempty"` + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. + CreationTimestamp string `json:"creationTimestamp,omitempty"` + // Description: An optional description of the wire group. + Description string `json:"description,omitempty"` + // Endpoints: A map that contains the logical endpoints of the wire group. + // Specify key-value pairs for the map as follows: - Key: an RFC1035 + // user-specified label. - Value: an Endpoint object. + Endpoints map[string]WireGroupEndpoint `json:"endpoints,omitempty"` + // Id: [Output Only] The unique identifier for the resource type. The server + // generates this identifier. + Id uint64 `json:"id,omitempty,string"` + // Kind: [Output Only] Type of the resource. Always compute#wireGroups for wire + // groups. + Kind string `json:"kind,omitempty"` + // Name: Name of the resource. Provided by the client when the resource is + // created. The name must be 1-63 characters long, and comply with RFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must + // be a lowercase letter, and all following characters must be a dash, + // lowercase letter, or digit, except the last character, which cannot be a + // dash. + Name string `json:"name,omitempty"` + // SelfLink: [Output Only] Server-defined URL for the resource. + SelfLink string `json:"selfLink,omitempty"` + SelfLinkWithId string `json:"selfLinkWithId,omitempty"` + // ServiceLevel: Service level details determined for the wire group + // configuration. + ServiceLevel *WireGroupServiceLevel `json:"serviceLevel,omitempty"` + // WireGroupProperties: Properties of the wire group. + WireGroupProperties *WireGroupProperties `json:"wireGroupProperties,omitempty"` + // WireInputs: A map that contains optional settings for individual wires. + // Specify key-value pairs for the map as follows: - Key: the label of an + // existing wire. To view a wire label and its format, see the wires[].label + // field. - Value: a WireInputs object. + WireInputs map[string]WireGroupWireInputs `json:"wireInputs,omitempty"` + // WireProperties: Properties for all wires in the wire group. + WireProperties *WireProperties `json:"wireProperties,omitempty"` + // Wires: The single/redundant wire(s) managed by the wire group. + Wires []*Wire `json:"wires,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AdminEnabled") 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. "AdminEnabled") 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 WireGroup) MarshalJSON() ([]byte, error) { + type NoMethod WireGroup + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WireGroupEndpoint: A logical endpoint for the wire group. An endpoint +// represents a metro that contains redundant Interconnect connections. A wire +// group is created between two endpoints. +type WireGroupEndpoint struct { + // Interconnects: A map that contains the redundant Interconnect connections. + // Specify key-value pairs for the map as follows: - Key: an RFC1035 + // user-specified label. - Value: an Interconnect object. + Interconnects map[string]WireGroupEndpointInterconnect `json:"interconnects,omitempty"` + // ForceSendFields is a list of field names (e.g. "Interconnects") 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. "Interconnects") 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 WireGroupEndpoint) MarshalJSON() ([]byte, error) { + type NoMethod WireGroupEndpoint + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WireGroupEndpointInterconnect: The redundant Interconnect connections for +// this endpoint. +type WireGroupEndpointInterconnect struct { + // Interconnect: An Interconnect connection. You can specify the connection as + // a partial or full URL. If the connection is in a different project from the + // cross-site network, use a format that specifies the project. See the + // following examples of partial and full URLs: global/interconnects/NAME + // projects/PROJECT_ID/global/interconnects/NAME - + // https://compute.googleapis.com/compute/projects/PROJECT_ID + // /global/interconnects/NAME + Interconnect string `json:"interconnect,omitempty"` + // VlanTags: To configure the wire group for VLAN mode, enter a VLAN tag, which + // is a number from `2` to `4093`. You can autoallocate a tag by entering `0`. + // To configure the wire group for port mode, enter `-1`. Review the following + // guidelines: - A VLAN tag must be unique for an Interconnect connection + // across all attachments and wire groups. - Both endpoints of a wire must use + // the same VLAN tag value. - Single wire and redundant type wire groups must + // have only one VLAN tag. - Box and cross type wire groups must have two VLAN + // tags. The first is for the same-zone pseudowire, and the second is for the + // cross-zone pseudowire. - Port mode pseudowires must configure a value of + // `-1` for both endpoints. + VlanTags []int64 `json:"vlanTags,omitempty"` + // ForceSendFields is a list of field names (e.g. "Interconnect") 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. "Interconnect") 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 WireGroupEndpointInterconnect) MarshalJSON() ([]byte, error) { + type NoMethod WireGroupEndpointInterconnect + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WireGroupList: Response for the list request. +type WireGroupList struct { + Etag string `json:"etag,omitempty"` + // Id: [Output Only] Unique identifier for the resource; defined by the server. + Id string `json:"id,omitempty"` + // Items: A list of wire group resources. + Items []*WireGroup `json:"items,omitempty"` + // Kind: [Output Only] Type of the resource. Always compute#wireGroups for wire + // groups. + Kind string `json:"kind,omitempty"` + // NextPageToken: [Output Only] This token allows you to get the next page of + // results for list requests. If the number of results is larger than + // maxResults, use the nextPageToken as a value for the query parameter + // pageToken in the next list request. Subsequent list requests will have their + // own nextPageToken to continue paging through the results. + NextPageToken string `json:"nextPageToken,omitempty"` + // SelfLink: [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + // Unreachables: [Output Only] Unreachable resources. end_interface: + // MixerListResponseWithEtagBuilder + Unreachables []string `json:"unreachables,omitempty"` + // Warning: [Output Only] Informational warning message. + Warning *WireGroupListWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Etag") 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. "Etag") 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 WireGroupList) MarshalJSON() ([]byte, error) { + type NoMethod WireGroupList + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WireGroupListWarning: [Output Only] Informational warning message. +type WireGroupListWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, Compute + // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made + // by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources + // has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is + // larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected + // kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend + // service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list + // overhead quota exceed which captures the amount of resources filtered out by + // user-defined list filter. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not + // assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip + // forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance + // URL refers to an instance that does not have an ipv6 interface on the same + // network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to + // an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL + // refers to an instance that is not on the same network as the route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a + // status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue + // the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing + // due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that + // requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is + // in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete + // could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance + // group manager is valid as such, but its application does not make a lot of + // sense, because it allows only single instance in instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are + // present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + // Data: [Output Only] Metadata about this warning in key: value format. For + // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } + Data []*WireGroupListWarningData `json:"data,omitempty"` + // Message: [Output Only] A human-readable description of the warning code. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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 WireGroupListWarning) MarshalJSON() ([]byte, error) { + type NoMethod WireGroupListWarning + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type WireGroupListWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning being + // returned. For example, for warnings where there are no results in a list + // request for a particular zone, this key might be scope and the key value + // might be the zone name. Other examples might be a key indicating a + // deprecated resource and a suggested replacement, or a warning about invalid + // network settings (for example, if an instance attempts to perform IP + // forwarding but is not enabled for IP forwarding). + Key string `json:"key,omitempty"` + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 WireGroupListWarningData) MarshalJSON() ([]byte, error) { + type NoMethod WireGroupListWarningData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WireGroupProperties: The properties of a wire group. These properties +// determine how a group of redundant wires are created and managed. +type WireGroupProperties struct { + // Type: The type of the wire group, one of the following: - WIRE: a single + // pseudowire over two Interconnect connections with no redundancy. - + // REDUNDANT: two pseudowires over four Interconnect connections, with two + // connections in one metro and two connections in another metro. Each + // redundant pair of Interconnect connections spans both edge availability + // domains of the metro. Each pseudowire connects Interconnect connections in + // matching edge availability domains of the two metros. - BOX_AND_CROSS: four + // pseudowires over four Interconnect connections, with two connections in one + // metro and two connections in another metro. Each redundant pair of + // Interconnect connections spans both edge availability domains of the metro. + // Two pseudowires connect Interconnect connections in matching edge + // availability domains of the two metros. Two additional pseudowires connect + // the non-matching edge availability domains of the two metros. + // + // Possible values: + // "BOX_AND_CROSS" - Four pseudowires over four Interconnect connections, + // with two connections in one metro and two connections in another metro. Each + // redundant pair of Interconnect connections spans both edge availability + // domains of the metro. Two pseudowires connect Interconnect connections in + // matching edge availability domains of the two metros. Two additional + // pseudowires connect the non-matching edge availability domains of the two + // metros. + // "REDUNDANT" - Two pseudowires over four Interconnect connections, with two + // connections in one metro and two connections in another metro. Each + // redundant pair of Interconnect connections spans both edge availability + // domains of the metro. Each pseudowire connects Interconnect connections in + // matching edge availability domains of the two metros. + // "WIRE" - A single pseudowire over two Interconnect connections with no + // redundancy. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Type") 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. "Type") 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 WireGroupProperties) MarshalJSON() ([]byte, error) { + type NoMethod WireGroupProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WireGroupServiceLevel: Service level details determined for the wire group +// configuration. +type WireGroupServiceLevel struct { + // AvailabilityClass: [Output Only] The availability SLA that the wire group + // qualifies for. One of the following: `NO_AVAILABILITY_SLA`, + // `AVAILABILITY_99`, or `AVAILABILITY_999`. + // + // Possible values: + // "AVAILABILITY_99" - 99% availability + // "AVAILABILITY_999" - 99.9% availability + // "NO_AVAILABILITY_SLA" - No SLA + AvailabilityClass string `json:"availabilityClass,omitempty"` + // ForceSendFields is a list of field names (e.g. "AvailabilityClass") 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. "AvailabilityClass") 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 WireGroupServiceLevel) MarshalJSON() ([]byte, error) { + type NoMethod WireGroupServiceLevel + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WireGroupWireInputs: Optional settings for individual wires. Allows +// wire-level control that can be useful for migration purposes. If you use +// this field, you opt-out of the SLA for the wire group. +type WireGroupWireInputs struct { + // AdminEnabled: Indicates whether the wire is enabled. When false, the wire is + // disabled. When true and when the wire group of the wire is also enabled, the + // wire is enabled. Defaults to true. + AdminEnabled bool `json:"adminEnabled,omitempty"` + // WirePropertyOverrides: The overridden properties for the wire. Any + // properties that are not overridden are omitted from the object. Review the + // following guidelines: - If you apply wire overrides to a wire and its wire + // group bandwidth configuration is set to `SHARED_WITH_WIRE_GROUP`, the + // `meteredBandwidth` and `unmeteredBandwidth` properties must not differ from + // the wire group. - Overrides generate a `configurationNotice`. Ensure that + // differences in wire configuration are temporary. An example use case for + // wire overrides is slowly rolling out configuration changes to individual + // wires in a wire group. + WirePropertyOverrides *WireProperties `json:"wirePropertyOverrides,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdminEnabled") 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. "AdminEnabled") 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 WireGroupWireInputs) MarshalJSON() ([]byte, error) { + type NoMethod WireGroupWireInputs + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// WireProperties: The properties of a wire. +type WireProperties struct { + // BandwidthAllocation: The configuration of the bandwidth allocation, one of + // the following: - ALLOCATE_PER_WIRE: configures a separate unmetered + // bandwidth allocation (and associated charges) for each wire in the group. - + // SHARED_WITH_WIRE_GROUP: configures one unmetered bandwidth allocation for + // the wire group. The unmetered bandwidth is divided equally across each wire + // in the group, but dynamic throttling reallocates unused unmetered bandwidth + // from unused or underused wires to other wires in the group. For example, + // with a four-wire box-and-cross group, when one Interconnect connection is + // down, the unmetered bandwidth of the two down wires is reallocated to the + // remaining up wires. + // + // Possible values: + // "ALLOCATE_PER_WIRE" - Configures a separate unmetered bandwidth allocation + // (and associated charges) for each wire in the group. + // "SHARED_WITH_WIRE_GROUP" - Configures one unmetered bandwidth allocation + // for the wire group. The unmetered bandwidth is divided equally across each + // wire in the group, but dynamic throttling reallocates unused unmetered + // bandwidth from unused or underused wires to other wires in the group. For + // example, with a four-wire box-and-cross group, when one Interconnect + // connection is down, the unmetered bandwidth of the two down wires is + // reallocated to the remaining up wires. + BandwidthAllocation string `json:"bandwidthAllocation,omitempty"` + // BandwidthMetered: The metered bandwidth in Gigabits per second, using + // decimal units. `10` is 10 Gbps, `100` is 100 Gbps. The default value is `0`. + // You can specify unlimited bandwidth by entering `-1`. However, actual data + // transfer is limited by the port speed. + BandwidthMetered int64 `json:"bandwidthMetered,omitempty,string"` + // BandwidthUnmetered: The unmetered bandwidth in Gigabits per second, using + // decimal units. `10` is 10 Gbps, `100` is 100 Gbps. Must be a multiple of 10. + BandwidthUnmetered int64 `json:"bandwidthUnmetered,omitempty,string"` + // FaultResponse: Response when a fault is detected in a pseudowire: - NONE: + // default. - DISABLE_PORT: set the port line protocol down when inline probes + // detect a fault. This setting is only permitted on port mode pseudowires. + // + // Possible values: + // "DISABLE_PORT" - Set the port line protocol down when inline probes detect + // a fault. This setting is only permitted on port mode pseudowires. + // "NONE" - Default. + FaultResponse string `json:"faultResponse,omitempty"` + // NetworkServiceClass: The network service class. + // + // Possible values: + // "BRONZE" - The default service class. + // "GOLD" - A higher service class. + NetworkServiceClass string `json:"networkServiceClass,omitempty"` + // ForceSendFields is a list of field names (e.g. "BandwidthAllocation") 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. "BandwidthAllocation") 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 WireProperties) MarshalJSON() ([]byte, error) { + type NoMethod WireProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type XpnHostList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` diff --git a/compute/v0.alpha/compute2-gen.go b/compute/v0.alpha/compute2-gen.go index f751df394c3..a9156504f76 100644 --- a/compute/v0.alpha/compute2-gen.go +++ b/compute/v0.alpha/compute2-gen.go @@ -6744,6 +6744,697 @@ func (c *BackendServicesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation return ret, nil } +type CrossSiteNetworksDeleteCall struct { + s *Service + project string + crossSiteNetwork string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified cross-site network in the given scope. +// +// - crossSiteNetwork: Name of the cross-site network to delete. +// - project: Project ID for this request. +func (r *CrossSiteNetworksService) Delete(project string, crossSiteNetwork string) *CrossSiteNetworksDeleteCall { + c := &CrossSiteNetworksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.crossSiteNetwork = crossSiteNetwork + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). end_interface: +// MixerMutationRequestBuilder +func (c *CrossSiteNetworksDeleteCall) RequestId(requestId string) *CrossSiteNetworksDeleteCall { + c.urlParams_.Set("requestId", requestId) + 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 *CrossSiteNetworksDeleteCall) Fields(s ...googleapi.Field) *CrossSiteNetworksDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *CrossSiteNetworksDeleteCall) Context(ctx context.Context) *CrossSiteNetworksDeleteCall { + 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 *CrossSiteNetworksDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CrossSiteNetworksDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "crossSiteNetwork": c.crossSiteNetwork, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.crossSiteNetworks.delete" 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 *CrossSiteNetworksDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type CrossSiteNetworksGetCall struct { + s *Service + project string + crossSiteNetwork string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the specified cross-site network in the given scope. +// +// - crossSiteNetwork: Name of the cross-site network to return. +// - project: Project ID for this request. +func (r *CrossSiteNetworksService) Get(project string, crossSiteNetwork string) *CrossSiteNetworksGetCall { + c := &CrossSiteNetworksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.crossSiteNetwork = crossSiteNetwork + 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 *CrossSiteNetworksGetCall) Fields(s ...googleapi.Field) *CrossSiteNetworksGetCall { + 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 *CrossSiteNetworksGetCall) IfNoneMatch(entityTag string) *CrossSiteNetworksGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *CrossSiteNetworksGetCall) Context(ctx context.Context) *CrossSiteNetworksGetCall { + 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 *CrossSiteNetworksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CrossSiteNetworksGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "crossSiteNetwork": c.crossSiteNetwork, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.crossSiteNetworks.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *CrossSiteNetwork.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 *CrossSiteNetworksGetCall) Do(opts ...googleapi.CallOption) (*CrossSiteNetwork, 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 := &CrossSiteNetwork{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type CrossSiteNetworksInsertCall struct { + s *Service + project string + crosssitenetwork *CrossSiteNetwork + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Insert: Creates a cross-site network in the specified project in the given +// scope using the parameters that are included in the request. +// +// - project: Project ID for this request. +func (r *CrossSiteNetworksService) Insert(project string, crosssitenetwork *CrossSiteNetwork) *CrossSiteNetworksInsertCall { + c := &CrossSiteNetworksInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.crosssitenetwork = crosssitenetwork + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). end_interface: +// MixerMutationRequestBuilder +func (c *CrossSiteNetworksInsertCall) RequestId(requestId string) *CrossSiteNetworksInsertCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": [Input Only] +// Validate the new configuration, but don't create it. If applicable, any +// configuration notices are returned in the `configurationNotices` field. +func (c *CrossSiteNetworksInsertCall) ValidateOnly(validateOnly bool) *CrossSiteNetworksInsertCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + 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 *CrossSiteNetworksInsertCall) Fields(s ...googleapi.Field) *CrossSiteNetworksInsertCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *CrossSiteNetworksInsertCall) Context(ctx context.Context) *CrossSiteNetworksInsertCall { + 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 *CrossSiteNetworksInsertCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CrossSiteNetworksInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.crosssitenetwork) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/crossSiteNetworks") + 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{ + "project": c.project, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.crossSiteNetworks.insert" 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 *CrossSiteNetworksInsertCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type CrossSiteNetworksListCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the cross-site networks for a project in the given scope. +// +// - project: Project ID for this request. +func (r *CrossSiteNetworksService) List(project string) *CrossSiteNetworksListCall { + c := &CrossSiteNetworksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most Compute resources support two +// types of filter expressions: expressions that support regular expressions +// and expressions that follow API improvement proposal AIP-160. These two +// types of filter expressions cannot be mixed in one request. If you want to +// use AIP-160, your expression must specify the field name, an operator, and +// the value that you want to use for filtering. The value must be a string, a +// number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, +// `>=` or `:`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. The `:*` comparison can be used to test whether a key has +// been defined. For example, to find all objects with `owner` label use: ``` +// labels.owner:* ``` You can also filter nested fields. For example, you could +// specify `scheduling.automaticRestart = false` to include instances only if +// they are not scheduled for automatic restarts. You can use filtering on +// nested fields to filter based on resource labels. To filter on multiple +// expressions, provide each separate expression within parentheses. For +// example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel +// Skylake") ``` By default, each expression is an `AND` expression. However, +// you can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND +// (scheduling.automaticRestart = true) ``` If you want to use a regular +// expression, use the `eq` (equal) or `ne` (not equal) operator against a +// single un-parenthesized expression with or without quotes or against +// multiple parenthesized expressions. Examples: `fieldname eq unquoted +// literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted +// literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal +// value is interpreted as a regular expression using Google RE2 library +// syntax. The literal value must match the entire field. For example, to +// filter for instances that do not end with name "instance", you would use +// `name ne .*instance`. You cannot combine constraints on multiple fields +// using regular expressions. +func (c *CrossSiteNetworksListCall) Filter(filter string) *CrossSiteNetworksListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum number of +// results per page that should be returned. If the number of available results +// is larger than `maxResults`, Compute Engine returns a `nextPageToken` that +// can be used to get the next page of results in subsequent list requests. +// Acceptable values are `0` to `500`, inclusive. (Default: `500`) +func (c *CrossSiteNetworksListCall) MaxResults(maxResults int64) *CrossSiteNetworksListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sorts list results by a +// certain order. By default, results are returned in alphanumerical order +// based on the resource name. You can also sort results in descending order +// based on the creation timestamp using `orderBy="creationTimestamp desc". +// This sorts results based on the `creationTimestamp` field in reverse +// chronological order (newest result first). Use this to sort resources like +// operations so that the newest operation is returned first. Currently, only +// sorting by `name` or `creationTimestamp desc` is supported. +func (c *CrossSiteNetworksListCall) OrderBy(orderBy string) *CrossSiteNetworksListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the `nextPageToken` returned by a previous list +// request to get the next page of results. +func (c *CrossSiteNetworksListCall) PageToken(pageToken string) *CrossSiteNetworksListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in case +// of failure. The default value is false. For example, when partial success +// behavior is enabled, aggregatedList for a single zone scope either returns +// all resources in the zone or no resources, with an error code. +func (c *CrossSiteNetworksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *CrossSiteNetworksListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + 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 *CrossSiteNetworksListCall) Fields(s ...googleapi.Field) *CrossSiteNetworksListCall { + 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 *CrossSiteNetworksListCall) IfNoneMatch(entityTag string) *CrossSiteNetworksListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *CrossSiteNetworksListCall) Context(ctx context.Context) *CrossSiteNetworksListCall { + 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 *CrossSiteNetworksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CrossSiteNetworksListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/crossSiteNetworks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.crossSiteNetworks.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *CrossSiteNetworkList.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 *CrossSiteNetworksListCall) Do(opts ...googleapi.CallOption) (*CrossSiteNetworkList, 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 := &CrossSiteNetworkList{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 *CrossSiteNetworksListCall) Pages(ctx context.Context, f func(*CrossSiteNetworkList) 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 CrossSiteNetworksPatchCall struct { + s *Service + project string + crossSiteNetwork string + crosssitenetwork *CrossSiteNetwork + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the specified cross-site network with the data included in +// the request. This method supports PATCH semantics and uses the JSON merge +// patch format and processing rules. +// +// - crossSiteNetwork: Name of the cross-site network to update. +// - project: Project ID for this request. +func (r *CrossSiteNetworksService) Patch(project string, crossSiteNetwork string, crosssitenetwork *CrossSiteNetwork) *CrossSiteNetworksPatchCall { + c := &CrossSiteNetworksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.crossSiteNetwork = crossSiteNetwork + c.crosssitenetwork = crosssitenetwork + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). end_interface: +// MixerMutationRequestBuilder +func (c *CrossSiteNetworksPatchCall) RequestId(requestId string) *CrossSiteNetworksPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": [Input Only] +// Validate the new configuration, but don't update it. If applicable, any +// configuration notices are returned in the `configurationNotices` field. +func (c *CrossSiteNetworksPatchCall) ValidateOnly(validateOnly bool) *CrossSiteNetworksPatchCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + 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 *CrossSiteNetworksPatchCall) Fields(s ...googleapi.Field) *CrossSiteNetworksPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *CrossSiteNetworksPatchCall) Context(ctx context.Context) *CrossSiteNetworksPatchCall { + 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 *CrossSiteNetworksPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CrossSiteNetworksPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.crosssitenetwork) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}") + 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{ + "project": c.project, + "crossSiteNetwork": c.crossSiteNetwork, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.crossSiteNetworks.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 *CrossSiteNetworksPatchCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type DiskSettingsGetCall struct { s *Service project string @@ -8384,6 +9075,124 @@ func (c *DisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error) { return ret, nil } +type DisksGetAsyncReplicationStatusCall struct { + s *Service + project string + zone string + disk string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetAsyncReplicationStatus: Gets the status of current async replication for +// a given device. +// +// - disk: Name of the Disk resource whose Async replication details are +// requested. Name should conform to RFC1035 or be an unsigned long integer. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *DisksService) GetAsyncReplicationStatus(project string, zone string, disk string) *DisksGetAsyncReplicationStatusCall { + c := &DisksGetAsyncReplicationStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.disk = disk + 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 *DisksGetAsyncReplicationStatusCall) Fields(s ...googleapi.Field) *DisksGetAsyncReplicationStatusCall { + 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 *DisksGetAsyncReplicationStatusCall) IfNoneMatch(entityTag string) *DisksGetAsyncReplicationStatusCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DisksGetAsyncReplicationStatusCall) Context(ctx context.Context) *DisksGetAsyncReplicationStatusCall { + 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 *DisksGetAsyncReplicationStatusCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DisksGetAsyncReplicationStatusCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/getAsyncReplicationStatus") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "disk": c.disk, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.disks.getAsyncReplicationStatus" call. +// Any non-2xx status code is an error. Response headers are in either +// *GetAsyncReplicationStatusResponse.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 *DisksGetAsyncReplicationStatusCall) Do(opts ...googleapi.CallOption) (*GetAsyncReplicationStatusResponse, 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 := &GetAsyncReplicationStatusResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type DisksGetIamPolicyCall struct { s *Service project string @@ -9949,6 +10758,132 @@ func (c *DisksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { return ret, nil } +type DisksWaitForReplicationCatchUpCall struct { + s *Service + project string + zone string + disk string + waitforreplicationcatchuprequest *WaitForReplicationCatchUpRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// WaitForReplicationCatchUp: Wait for replication to catch up on the secondary +// disk. +// +// - disk: The name of the persistent disk. Name should conform to RFC1035 or +// be an unsigned long integer. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *DisksService) WaitForReplicationCatchUp(project string, zone string, disk string, waitforreplicationcatchuprequest *WaitForReplicationCatchUpRequest) *DisksWaitForReplicationCatchUpCall { + c := &DisksWaitForReplicationCatchUpCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.disk = disk + c.waitforreplicationcatchuprequest = waitforreplicationcatchuprequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *DisksWaitForReplicationCatchUpCall) RequestId(requestId string) *DisksWaitForReplicationCatchUpCall { + c.urlParams_.Set("requestId", requestId) + 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 *DisksWaitForReplicationCatchUpCall) Fields(s ...googleapi.Field) *DisksWaitForReplicationCatchUpCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DisksWaitForReplicationCatchUpCall) Context(ctx context.Context) *DisksWaitForReplicationCatchUpCall { + 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 *DisksWaitForReplicationCatchUpCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DisksWaitForReplicationCatchUpCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.waitforreplicationcatchuprequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/waitForReplicationCatchUp") + 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{ + "project": c.project, + "zone": c.zone, + "disk": c.disk, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.disks.waitForReplicationCatchUp" 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 *DisksWaitForReplicationCatchUpCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ExternalVpnGatewaysDeleteCall struct { s *Service project string diff --git a/compute/v0.alpha/compute3-gen.go b/compute/v0.alpha/compute3-gen.go index 1aaf3c8b0b9..b922d17f8a2 100644 --- a/compute/v0.alpha/compute3-gen.go +++ b/compute/v0.alpha/compute3-gen.go @@ -4103,6 +4103,124 @@ func (c *RegionDisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error) { return ret, nil } +type RegionDisksGetAsyncReplicationStatusCall struct { + s *Service + project string + region string + disk string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetAsyncReplicationStatus: Gets the status of current async replication for +// a given device. +// +// - disk: Name of the Disk resource whose Async replication details are +// requested. Name should conform to RFC1035 or be an unsigned long integer. +// - project: Project ID for this request. +// - region: The name of the zone for this request. +func (r *RegionDisksService) GetAsyncReplicationStatus(project string, region string, disk string) *RegionDisksGetAsyncReplicationStatusCall { + c := &RegionDisksGetAsyncReplicationStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.disk = disk + 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 *RegionDisksGetAsyncReplicationStatusCall) Fields(s ...googleapi.Field) *RegionDisksGetAsyncReplicationStatusCall { + 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 *RegionDisksGetAsyncReplicationStatusCall) IfNoneMatch(entityTag string) *RegionDisksGetAsyncReplicationStatusCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionDisksGetAsyncReplicationStatusCall) Context(ctx context.Context) *RegionDisksGetAsyncReplicationStatusCall { + 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 *RegionDisksGetAsyncReplicationStatusCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionDisksGetAsyncReplicationStatusCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/disks/{disk}/getAsyncReplicationStatus") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "disk": c.disk, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionDisks.getAsyncReplicationStatus" call. +// Any non-2xx status code is an error. Response headers are in either +// *GetAsyncReplicationStatusResponse.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 *RegionDisksGetAsyncReplicationStatusCall) Do(opts ...googleapi.CallOption) (*GetAsyncReplicationStatusResponse, 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 := &GetAsyncReplicationStatusResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type RegionDisksGetIamPolicyCall struct { s *Service project string @@ -5663,258 +5781,30 @@ func (c *RegionDisksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, er return ret, nil } -type RegionHealthCheckServicesAggregatedListCall struct { - s *Service - project string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// AggregatedList: Retrieves the list of all HealthCheckService resources, -// regional and global, available to the specified project. To prevent failure, -// Google recommends that you set the `returnPartialSuccess` parameter to -// `true`. -// -// - project: Name of the project scoping this request. -func (r *RegionHealthCheckServicesService) AggregatedList(project string) *RegionHealthCheckServicesAggregatedListCall { - c := &RegionHealthCheckServicesAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - return c -} - -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most Compute resources support two -// types of filter expressions: expressions that support regular expressions -// and expressions that follow API improvement proposal AIP-160. These two -// types of filter expressions cannot be mixed in one request. If you want to -// use AIP-160, your expression must specify the field name, an operator, and -// the value that you want to use for filtering. The value must be a string, a -// number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, -// `>=` or `:`. For example, if you are filtering Compute Engine instances, you -// can exclude instances named `example-instance` by specifying `name != -// example-instance`. The `:*` comparison can be used to test whether a key has -// been defined. For example, to find all objects with `owner` label use: ``` -// labels.owner:* ``` You can also filter nested fields. For example, you could -// specify `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering on -// nested fields to filter based on resource labels. To filter on multiple -// expressions, provide each separate expression within parentheses. For -// example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel -// Skylake") ``` By default, each expression is an `AND` expression. However, -// you can include `AND` and `OR` expressions explicitly. For example: ``` -// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` If you want to use a regular -// expression, use the `eq` (equal) or `ne` (not equal) operator against a -// single un-parenthesized expression with or without quotes or against -// multiple parenthesized expressions. Examples: `fieldname eq unquoted -// literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted -// literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal -// value is interpreted as a regular expression using Google RE2 library -// syntax. The literal value must match the entire field. For example, to -// filter for instances that do not end with name "instance", you would use -// `name ne .*instance`. You cannot combine constraints on multiple fields -// using regular expressions. -func (c *RegionHealthCheckServicesAggregatedListCall) Filter(filter string) *RegionHealthCheckServicesAggregatedListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates -// whether every visible scope for each scope type (zone, region, global) -// should be included in the response. For new resource types added after this -// field, the flag has no effect as new resource types will always include -// every visible scope for each scope type in response. For resource types -// which predate this field, if this flag is omitted or false, only scopes of -// the scope types where the resource type is expected to be found will be -// included. -func (c *RegionHealthCheckServicesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *RegionHealthCheckServicesAggregatedListCall { - c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) - return c -} - -// MaxResults sets the optional parameter "maxResults": The maximum number of -// results per page that should be returned. If the number of available results -// is larger than `maxResults`, Compute Engine returns a `nextPageToken` that -// can be used to get the next page of results in subsequent list requests. -// Acceptable values are `0` to `500`, inclusive. (Default: `500`) -func (c *RegionHealthCheckServicesAggregatedListCall) MaxResults(maxResults int64) *RegionHealthCheckServicesAggregatedListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderBy sets the optional parameter "orderBy": Sorts list results by a -// certain order. By default, results are returned in alphanumerical order -// based on the resource name. You can also sort results in descending order -// based on the creation timestamp using `orderBy="creationTimestamp desc". -// This sorts results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources like -// operations so that the newest operation is returned first. Currently, only -// sorting by `name` or `creationTimestamp desc` is supported. -func (c *RegionHealthCheckServicesAggregatedListCall) OrderBy(orderBy string) *RegionHealthCheckServicesAggregatedListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the `nextPageToken` returned by a previous list -// request to get the next page of results. -func (c *RegionHealthCheckServicesAggregatedListCall) PageToken(pageToken string) *RegionHealthCheckServicesAggregatedListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in case -// of failure. The default value is false. For example, when partial success -// behavior is enabled, aggregatedList for a single zone scope either returns -// all resources in the zone or no resources, with an error code. -func (c *RegionHealthCheckServicesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionHealthCheckServicesAggregatedListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) - return c -} - -// ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The -// Shared VPC service project id or service project number for which aggregated -// list request is invoked for subnetworks list-usable api. -func (c *RegionHealthCheckServicesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *RegionHealthCheckServicesAggregatedListCall { - c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) - 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 *RegionHealthCheckServicesAggregatedListCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesAggregatedListCall { - 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 *RegionHealthCheckServicesAggregatedListCall) IfNoneMatch(entityTag string) *RegionHealthCheckServicesAggregatedListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *RegionHealthCheckServicesAggregatedListCall) Context(ctx context.Context) *RegionHealthCheckServicesAggregatedListCall { - 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 *RegionHealthCheckServicesAggregatedListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RegionHealthCheckServicesAggregatedListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/healthCheckServices") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.regionHealthCheckServices.aggregatedList" call. -// Any non-2xx status code is an error. Response headers are in either -// *HealthCheckServiceAggregatedList.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 *RegionHealthCheckServicesAggregatedListCall) Do(opts ...googleapi.CallOption) (*HealthCheckServiceAggregatedList, 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 := &HealthCheckServiceAggregatedList{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - 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 *RegionHealthCheckServicesAggregatedListCall) Pages(ctx context.Context, f func(*HealthCheckServiceAggregatedList) 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 RegionHealthCheckServicesDeleteCall struct { - s *Service - project string - region string - healthCheckService string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type RegionDisksWaitForReplicationCatchUpCall struct { + s *Service + project string + region string + disk string + regionwaitforreplicationcatchuprequest *RegionWaitForReplicationCatchUpRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes the specified regional HealthCheckService. +// WaitForReplicationCatchUp: Wait for replication to catch up on the secondary +// disk. // -// - healthCheckService: Name of the HealthCheckService to delete. The name -// must be 1-63 characters long, and comply with RFC1035. +// - disk: The name of the persistent disk. Name should conform to RFC1035 or +// be an unsigned long integer. // - project: Project ID for this request. -// - region: Name of the region scoping this request. -func (r *RegionHealthCheckServicesService) Delete(project string, region string, healthCheckService string) *RegionHealthCheckServicesDeleteCall { - c := &RegionHealthCheckServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region for this request. +func (r *RegionDisksService) WaitForReplicationCatchUp(project string, region string, disk string, regionwaitforreplicationcatchuprequest *RegionWaitForReplicationCatchUpRequest) *RegionDisksWaitForReplicationCatchUpCall { + c := &RegionDisksWaitForReplicationCatchUpCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.region = region - c.healthCheckService = healthCheckService + c.disk = disk + c.regionwaitforreplicationcatchuprequest = regionwaitforreplicationcatchuprequest return c } @@ -5928,7 +5818,7 @@ func (r *RegionHealthCheckServicesService) Delete(project string, region string, // prevents clients from accidentally creating duplicate commitments. The // request ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *RegionHealthCheckServicesDeleteCall) RequestId(requestId string) *RegionHealthCheckServicesDeleteCall { +func (c *RegionDisksWaitForReplicationCatchUpCall) RequestId(requestId string) *RegionDisksWaitForReplicationCatchUpCall { c.urlParams_.Set("requestId", requestId) return c } @@ -5936,52 +5826,406 @@ func (c *RegionHealthCheckServicesDeleteCall) RequestId(requestId string) *Regio // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RegionHealthCheckServicesDeleteCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesDeleteCall { +func (c *RegionDisksWaitForReplicationCatchUpCall) Fields(s ...googleapi.Field) *RegionDisksWaitForReplicationCatchUpCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *RegionHealthCheckServicesDeleteCall) Context(ctx context.Context) *RegionHealthCheckServicesDeleteCall { +func (c *RegionDisksWaitForReplicationCatchUpCall) Context(ctx context.Context) *RegionDisksWaitForReplicationCatchUpCall { 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 *RegionHealthCheckServicesDeleteCall) Header() http.Header { +func (c *RegionDisksWaitForReplicationCatchUpCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RegionHealthCheckServicesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *RegionDisksWaitForReplicationCatchUpCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.regionwaitforreplicationcatchuprequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/disks/{disk}/waitForReplicationCatchUp") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "healthCheckService": c.healthCheckService, + "project": c.project, + "region": c.region, + "disk": c.disk, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.regionHealthCheckServices.delete" call. +// Do executes the "compute.regionDisks.waitForReplicationCatchUp" 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 *RegionHealthCheckServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *RegionDisksWaitForReplicationCatchUpCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type RegionHealthCheckServicesAggregatedListCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// AggregatedList: Retrieves the list of all HealthCheckService resources, +// regional and global, available to the specified project. To prevent failure, +// Google recommends that you set the `returnPartialSuccess` parameter to +// `true`. +// +// - project: Name of the project scoping this request. +func (r *RegionHealthCheckServicesService) AggregatedList(project string) *RegionHealthCheckServicesAggregatedListCall { + c := &RegionHealthCheckServicesAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most Compute resources support two +// types of filter expressions: expressions that support regular expressions +// and expressions that follow API improvement proposal AIP-160. These two +// types of filter expressions cannot be mixed in one request. If you want to +// use AIP-160, your expression must specify the field name, an operator, and +// the value that you want to use for filtering. The value must be a string, a +// number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, +// `>=` or `:`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. The `:*` comparison can be used to test whether a key has +// been defined. For example, to find all objects with `owner` label use: ``` +// labels.owner:* ``` You can also filter nested fields. For example, you could +// specify `scheduling.automaticRestart = false` to include instances only if +// they are not scheduled for automatic restarts. You can use filtering on +// nested fields to filter based on resource labels. To filter on multiple +// expressions, provide each separate expression within parentheses. For +// example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel +// Skylake") ``` By default, each expression is an `AND` expression. However, +// you can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND +// (scheduling.automaticRestart = true) ``` If you want to use a regular +// expression, use the `eq` (equal) or `ne` (not equal) operator against a +// single un-parenthesized expression with or without quotes or against +// multiple parenthesized expressions. Examples: `fieldname eq unquoted +// literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted +// literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal +// value is interpreted as a regular expression using Google RE2 library +// syntax. The literal value must match the entire field. For example, to +// filter for instances that do not end with name "instance", you would use +// `name ne .*instance`. You cannot combine constraints on multiple fields +// using regular expressions. +func (c *RegionHealthCheckServicesAggregatedListCall) Filter(filter string) *RegionHealthCheckServicesAggregatedListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// IncludeAllScopes sets the optional parameter "includeAllScopes": Indicates +// whether every visible scope for each scope type (zone, region, global) +// should be included in the response. For new resource types added after this +// field, the flag has no effect as new resource types will always include +// every visible scope for each scope type in response. For resource types +// which predate this field, if this flag is omitted or false, only scopes of +// the scope types where the resource type is expected to be found will be +// included. +func (c *RegionHealthCheckServicesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *RegionHealthCheckServicesAggregatedListCall { + c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum number of +// results per page that should be returned. If the number of available results +// is larger than `maxResults`, Compute Engine returns a `nextPageToken` that +// can be used to get the next page of results in subsequent list requests. +// Acceptable values are `0` to `500`, inclusive. (Default: `500`) +func (c *RegionHealthCheckServicesAggregatedListCall) MaxResults(maxResults int64) *RegionHealthCheckServicesAggregatedListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sorts list results by a +// certain order. By default, results are returned in alphanumerical order +// based on the resource name. You can also sort results in descending order +// based on the creation timestamp using `orderBy="creationTimestamp desc". +// This sorts results based on the `creationTimestamp` field in reverse +// chronological order (newest result first). Use this to sort resources like +// operations so that the newest operation is returned first. Currently, only +// sorting by `name` or `creationTimestamp desc` is supported. +func (c *RegionHealthCheckServicesAggregatedListCall) OrderBy(orderBy string) *RegionHealthCheckServicesAggregatedListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the `nextPageToken` returned by a previous list +// request to get the next page of results. +func (c *RegionHealthCheckServicesAggregatedListCall) PageToken(pageToken string) *RegionHealthCheckServicesAggregatedListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in case +// of failure. The default value is false. For example, when partial success +// behavior is enabled, aggregatedList for a single zone scope either returns +// all resources in the zone or no resources, with an error code. +func (c *RegionHealthCheckServicesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionHealthCheckServicesAggregatedListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The +// Shared VPC service project id or service project number for which aggregated +// list request is invoked for subnetworks list-usable api. +func (c *RegionHealthCheckServicesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *RegionHealthCheckServicesAggregatedListCall { + c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) + 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 *RegionHealthCheckServicesAggregatedListCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesAggregatedListCall { + 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 *RegionHealthCheckServicesAggregatedListCall) IfNoneMatch(entityTag string) *RegionHealthCheckServicesAggregatedListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionHealthCheckServicesAggregatedListCall) Context(ctx context.Context) *RegionHealthCheckServicesAggregatedListCall { + 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 *RegionHealthCheckServicesAggregatedListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionHealthCheckServicesAggregatedListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/healthCheckServices") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionHealthCheckServices.aggregatedList" call. +// Any non-2xx status code is an error. Response headers are in either +// *HealthCheckServiceAggregatedList.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 *RegionHealthCheckServicesAggregatedListCall) Do(opts ...googleapi.CallOption) (*HealthCheckServiceAggregatedList, 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 := &HealthCheckServiceAggregatedList{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 *RegionHealthCheckServicesAggregatedListCall) Pages(ctx context.Context, f func(*HealthCheckServiceAggregatedList) 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 RegionHealthCheckServicesDeleteCall struct { + s *Service + project string + region string + healthCheckService string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified regional HealthCheckService. +// +// - healthCheckService: Name of the HealthCheckService to delete. The name +// must be 1-63 characters long, and comply with RFC1035. +// - project: Project ID for this request. +// - region: Name of the region scoping this request. +func (r *RegionHealthCheckServicesService) Delete(project string, region string, healthCheckService string) *RegionHealthCheckServicesDeleteCall { + c := &RegionHealthCheckServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.healthCheckService = healthCheckService + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RegionHealthCheckServicesDeleteCall) RequestId(requestId string) *RegionHealthCheckServicesDeleteCall { + c.urlParams_.Set("requestId", requestId) + 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 *RegionHealthCheckServicesDeleteCall) Fields(s ...googleapi.Field) *RegionHealthCheckServicesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionHealthCheckServicesDeleteCall) Context(ctx context.Context) *RegionHealthCheckServicesDeleteCall { + 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 *RegionHealthCheckServicesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionHealthCheckServicesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "healthCheckService": c.healthCheckService, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionHealthCheckServices.delete" 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 *RegionHealthCheckServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15727,7 +15971,7 @@ type RegionMultiMigsGetCall struct { header_ http.Header } -// Get: Returns the specified multi-MIG resource. +// Get: Returns all the details of a specific multi-MIG. // // - multiMig: Name of the multi-MIG resource to return. // - project: Project ID for this request. @@ -15860,9 +16104,9 @@ func (r *RegionMultiMigsService) Insert(project string, region string, multimig // request and the request times out. If you make the request again with the // same request ID, the server can check if original operation with the same // request ID was received, and if so, will ignore the second request. This -// prevents clients from accidentally creating duplicate commitments. The -// request ID must be a valid UUID with the exception that zero UUID is not -// supported ( 00000000-0000-0000-0000-000000000000). +// prevents you from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not supported ( +// 00000000-0000-0000-0000-000000000000). func (c *RegionMultiMigsInsertCall) RequestId(requestId string) *RegionMultiMigsInsertCall { c.urlParams_.Set("requestId", requestId) return c @@ -60220,6 +60464,722 @@ func (c *VpnTunnelsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Te return ret, nil } +type WireGroupsDeleteCall struct { + s *Service + project string + crossSiteNetwork string + wireGroup string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified wire group in the given scope. +// +// - crossSiteNetwork: . +// - project: Project ID for this request. +// - wireGroup: Name of the wire group resource to delete. +func (r *WireGroupsService) Delete(project string, crossSiteNetwork string, wireGroup string) *WireGroupsDeleteCall { + c := &WireGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.crossSiteNetwork = crossSiteNetwork + c.wireGroup = wireGroup + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). end_interface: +// MixerMutationRequestBuilder +func (c *WireGroupsDeleteCall) RequestId(requestId string) *WireGroupsDeleteCall { + c.urlParams_.Set("requestId", requestId) + 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 *WireGroupsDeleteCall) Fields(s ...googleapi.Field) *WireGroupsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *WireGroupsDeleteCall) Context(ctx context.Context) *WireGroupsDeleteCall { + 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 *WireGroupsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *WireGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "crossSiteNetwork": c.crossSiteNetwork, + "wireGroup": c.wireGroup, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.wireGroups.delete" 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 *WireGroupsDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type WireGroupsGetCall struct { + s *Service + project string + crossSiteNetwork string + wireGroup string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the specified wire group resource in the given scope. +// +// - crossSiteNetwork: . +// - project: Project ID for this request. +// - wireGroup: Name of the wire group resource to return. +func (r *WireGroupsService) Get(project string, crossSiteNetwork string, wireGroup string) *WireGroupsGetCall { + c := &WireGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.crossSiteNetwork = crossSiteNetwork + c.wireGroup = wireGroup + 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 *WireGroupsGetCall) Fields(s ...googleapi.Field) *WireGroupsGetCall { + 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 *WireGroupsGetCall) IfNoneMatch(entityTag string) *WireGroupsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *WireGroupsGetCall) Context(ctx context.Context) *WireGroupsGetCall { + 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 *WireGroupsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *WireGroupsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "crossSiteNetwork": c.crossSiteNetwork, + "wireGroup": c.wireGroup, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.wireGroups.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *WireGroup.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 *WireGroupsGetCall) Do(opts ...googleapi.CallOption) (*WireGroup, 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 := &WireGroup{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type WireGroupsInsertCall struct { + s *Service + project string + crossSiteNetwork string + wiregroup *WireGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Insert: Creates a wire group in the specified project in the given scope +// using the parameters that are included in the request. +// +// - crossSiteNetwork: . +// - project: Project ID for this request. +func (r *WireGroupsService) Insert(project string, crossSiteNetwork string, wiregroup *WireGroup) *WireGroupsInsertCall { + c := &WireGroupsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.crossSiteNetwork = crossSiteNetwork + c.wiregroup = wiregroup + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). end_interface: +// MixerMutationRequestBuilder +func (c *WireGroupsInsertCall) RequestId(requestId string) *WireGroupsInsertCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": [Input Only] +// Validate the new configuration, but don't create it. If applicable, any +// configuration notices are returned in the `configurationNotices` field. +func (c *WireGroupsInsertCall) ValidateOnly(validateOnly bool) *WireGroupsInsertCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + 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 *WireGroupsInsertCall) Fields(s ...googleapi.Field) *WireGroupsInsertCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *WireGroupsInsertCall) Context(ctx context.Context) *WireGroupsInsertCall { + 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 *WireGroupsInsertCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *WireGroupsInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.wiregroup) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups") + 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{ + "project": c.project, + "crossSiteNetwork": c.crossSiteNetwork, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.wireGroups.insert" 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 *WireGroupsInsertCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type WireGroupsListCall struct { + s *Service + project string + crossSiteNetwork string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the wire groups for a project in the given scope. +// +// - crossSiteNetwork: . +// - project: Project ID for this request. +func (r *WireGroupsService) List(project string, crossSiteNetwork string) *WireGroupsListCall { + c := &WireGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.crossSiteNetwork = crossSiteNetwork + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most Compute resources support two +// types of filter expressions: expressions that support regular expressions +// and expressions that follow API improvement proposal AIP-160. These two +// types of filter expressions cannot be mixed in one request. If you want to +// use AIP-160, your expression must specify the field name, an operator, and +// the value that you want to use for filtering. The value must be a string, a +// number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, +// `>=` or `:`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. The `:*` comparison can be used to test whether a key has +// been defined. For example, to find all objects with `owner` label use: ``` +// labels.owner:* ``` You can also filter nested fields. For example, you could +// specify `scheduling.automaticRestart = false` to include instances only if +// they are not scheduled for automatic restarts. You can use filtering on +// nested fields to filter based on resource labels. To filter on multiple +// expressions, provide each separate expression within parentheses. For +// example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel +// Skylake") ``` By default, each expression is an `AND` expression. However, +// you can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND +// (scheduling.automaticRestart = true) ``` If you want to use a regular +// expression, use the `eq` (equal) or `ne` (not equal) operator against a +// single un-parenthesized expression with or without quotes or against +// multiple parenthesized expressions. Examples: `fieldname eq unquoted +// literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted +// literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal +// value is interpreted as a regular expression using Google RE2 library +// syntax. The literal value must match the entire field. For example, to +// filter for instances that do not end with name "instance", you would use +// `name ne .*instance`. You cannot combine constraints on multiple fields +// using regular expressions. +func (c *WireGroupsListCall) Filter(filter string) *WireGroupsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum number of +// results per page that should be returned. If the number of available results +// is larger than `maxResults`, Compute Engine returns a `nextPageToken` that +// can be used to get the next page of results in subsequent list requests. +// Acceptable values are `0` to `500`, inclusive. (Default: `500`) +func (c *WireGroupsListCall) MaxResults(maxResults int64) *WireGroupsListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sorts list results by a +// certain order. By default, results are returned in alphanumerical order +// based on the resource name. You can also sort results in descending order +// based on the creation timestamp using `orderBy="creationTimestamp desc". +// This sorts results based on the `creationTimestamp` field in reverse +// chronological order (newest result first). Use this to sort resources like +// operations so that the newest operation is returned first. Currently, only +// sorting by `name` or `creationTimestamp desc` is supported. +func (c *WireGroupsListCall) OrderBy(orderBy string) *WireGroupsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the `nextPageToken` returned by a previous list +// request to get the next page of results. +func (c *WireGroupsListCall) PageToken(pageToken string) *WireGroupsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in case +// of failure. The default value is false. For example, when partial success +// behavior is enabled, aggregatedList for a single zone scope either returns +// all resources in the zone or no resources, with an error code. +func (c *WireGroupsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *WireGroupsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + 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 *WireGroupsListCall) Fields(s ...googleapi.Field) *WireGroupsListCall { + 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 *WireGroupsListCall) IfNoneMatch(entityTag string) *WireGroupsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *WireGroupsListCall) Context(ctx context.Context) *WireGroupsListCall { + 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 *WireGroupsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *WireGroupsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "crossSiteNetwork": c.crossSiteNetwork, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.wireGroups.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *WireGroupList.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 *WireGroupsListCall) Do(opts ...googleapi.CallOption) (*WireGroupList, 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 := &WireGroupList{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 *WireGroupsListCall) Pages(ctx context.Context, f func(*WireGroupList) 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 WireGroupsPatchCall struct { + s *Service + project string + crossSiteNetwork string + wireGroup string + wiregroup *WireGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the specified wire group resource with the data included in +// the request. This method supports PATCH semantics and uses JSON merge patch +// format and processing rules. +// +// - crossSiteNetwork: . +// - project: Project ID for this request. +// - wireGroup: Name of the WireGroups resource to patch. +func (r *WireGroupsService) Patch(project string, crossSiteNetwork string, wireGroup string, wiregroup *WireGroup) *WireGroupsPatchCall { + c := &WireGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.crossSiteNetwork = crossSiteNetwork + c.wireGroup = wireGroup + c.wiregroup = wiregroup + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). end_interface: +// MixerMutationRequestBuilder +func (c *WireGroupsPatchCall) RequestId(requestId string) *WireGroupsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": update_mask indicates +// fields to be updated as part of this request. +func (c *WireGroupsPatchCall) UpdateMask(updateMask string) *WireGroupsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": [Input Only] +// Validate the new configuration, but don't update it. If applicable, any +// configuration notices are returned in the `configurationNotices` field. +func (c *WireGroupsPatchCall) ValidateOnly(validateOnly bool) *WireGroupsPatchCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + 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 *WireGroupsPatchCall) Fields(s ...googleapi.Field) *WireGroupsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *WireGroupsPatchCall) Context(ctx context.Context) *WireGroupsPatchCall { + 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 *WireGroupsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *WireGroupsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.wiregroup) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}") + 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{ + "project": c.project, + "crossSiteNetwork": c.crossSiteNetwork, + "wireGroup": c.wireGroup, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.wireGroups.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 *WireGroupsPatchCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ZoneOperationsDeleteCall struct { s *Service project string diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 7ce5ff86ac8..2c94b4bc795 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -37421,7 +37421,7 @@ } } }, - "revision": "20241001", + "revision": "20241008", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -40694,7 +40694,8 @@ "GENERATED_COOKIE", "HEADER_FIELD", "HTTP_COOKIE", - "NONE" + "NONE", + "STRONG_COOKIE_AFFINITY" ], "enumDescriptions": [ "2-tuple hash on packet's source and destination IP addresses. Connections from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy.", @@ -40704,10 +40705,15 @@ "Hash based on a cookie generated by the L7 loadbalancer. Only valid for HTTP(S) load balancing.", "The hash is based on a user specified header field.", "The hash is based on a user provided cookie.", - "No session affinity. Connections from the same client IP may go to any instance in the pool." + "No session affinity. Connections from the same client IP may go to any instance in the pool.", + "Strong cookie-based affinity. Connections bearing the same cookie will be served by the same backend VM while that VM remains healthy, as long as the cookie has not expired." ], "type": "string" }, + "strongSessionAffinityCookie": { + "$ref": "BackendServiceHttpCookie", + "description": "Describes the HTTP cookie used for stateful session affinity. This field is applicable and required if the sessionAffinity is set to STRONG_COOKIE_AFFINITY." + }, "subsetting": { "$ref": "Subsetting" }, @@ -41084,6 +41090,25 @@ }, "type": "object" }, + "BackendServiceHttpCookie": { + "description": "The HTTP cookie used for stateful session affinity.", + "id": "BackendServiceHttpCookie", + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "$ref": "Duration", + "description": "Lifetime of the cookie." + } + }, + "type": "object" + }, "BackendServiceIAP": { "description": "Identity-Aware Proxy", "id": "BackendServiceIAP", @@ -47988,6 +48013,22 @@ "Health status of the endpoint is unknown." ], "type": "string" + }, + "ipv6HealthState": { + "description": "Health state of the ipv6 network endpoint determined based on the health checks configured.", + "enum": [ + "DRAINING", + "HEALTHY", + "UNHEALTHY", + "UNKNOWN" + ], + "enumDescriptions": [ + "Endpoint is being drained.", + "Endpoint is healthy.", + "Endpoint is unhealthy.", + "Health status of the endpoint is unknown." + ], + "type": "string" } }, "type": "object" @@ -53230,7 +53271,7 @@ "id": "InstancesGetEffectiveFirewallsResponse", "properties": { "firewallPolicys": { - "description": "Effective firewalls from firewall policies.", + "description": "[Output Only] Effective firewalls from firewall policies.", "items": { "$ref": "InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy" }, @@ -53264,7 +53305,7 @@ "type": "integer" }, "rules": { - "description": "The rules that apply to the network.", + "description": "[Output Only] The rules that apply to the instance. Only rules that target the specific VM instance are returned if target service accounts or target secure tags are specified in the rules.", "items": { "$ref": "FirewallPolicyRule" }, @@ -59102,6 +59143,10 @@ "description": "Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. This field is redundant and need not be set for network endpoints of type GCE_VM_IP. If set, it must be set to the primary internal IP address of the attached VM instance that matches the subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance can be added to a NEG as long as it matches the NEG subnetwork.", "type": "string" }, + "ipv6Address": { + "description": "Optional IPv6 address of network endpoint.", + "type": "string" + }, "port": { "description": "Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used. This field can not be set for network endpoints of type GCE_VM_IP.", "format": "int32", @@ -60370,7 +60415,7 @@ "id": "NetworksGetEffectiveFirewallsResponse", "properties": { "firewallPolicys": { - "description": "Effective firewalls from firewall policy.", + "description": "[Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall Policies and Hierarchical Firewall Policies. Use regionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional Network Firewall Policies as well.", "items": { "$ref": "NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy" }, @@ -60404,7 +60449,7 @@ "type": "integer" }, "rules": { - "description": "The rules that apply to the network.", + "description": "[Output Only] The rules that apply to the network.", "items": { "$ref": "FirewallPolicyRule" }, @@ -67552,7 +67597,7 @@ "id": "RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse", "properties": { "firewallPolicys": { - "description": "Effective firewalls from firewall policy.", + "description": "[Output only] Effective firewalls from firewall policy. It applies to Regional Network Firewall Policies in the specified region, Global Network Firewall Policies and Hierachial Firewall Policies which are associated with the network.", "items": { "$ref": "RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy" }, @@ -67580,7 +67625,7 @@ "type": "string" }, "rules": { - "description": "The rules that apply to the network.", + "description": "[Output only] The rules that apply to the network.", "items": { "$ref": "FirewallPolicyRule" }, @@ -67751,7 +67796,7 @@ "type": "boolean" }, "status": { - "description": "[Output Only] The status of the reservation.", + "description": "[Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress. ", "enum": [ "CREATING", "DELETING", @@ -67760,11 +67805,11 @@ "UPDATING" ], "enumDescriptions": [ - "Resources are being allocated for the reservation.", - "Reservation is currently being deleted.", + "Reservation resources are being allocated.", + "Reservation deletion is in progress.", "", - "Reservation has allocated all its resources.", - "Reservation is currently being resized." + "Reservation resources have been allocated, and the reservation is ready for use.", + "Reservation update is in progress." ], "type": "string" }, @@ -79550,7 +79595,8 @@ "GENERATED_COOKIE", "HEADER_FIELD", "HTTP_COOKIE", - "NONE" + "NONE", + "STRONG_COOKIE_AFFINITY" ], "enumDescriptions": [ "2-tuple hash on packet's source and destination IP addresses. Connections from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy.", @@ -79560,7 +79606,8 @@ "Hash based on a cookie generated by the L7 loadbalancer. Only valid for HTTP(S) load balancing.", "The hash is based on a user specified header field.", "The hash is based on a user provided cookie.", - "No session affinity. Connections from the same client IP may go to any instance in the pool." + "No session affinity. Connections from the same client IP may go to any instance in the pool.", + "Strong cookie-based affinity. Connections bearing the same cookie will be served by the same backend VM while that VM remains healthy, as long as the cookie has not expired." ], "type": "string" } diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 245c3c68714..c60e16b369b 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -5252,8 +5252,15 @@ type BackendService struct { // "HTTP_COOKIE" - The hash is based on a user provided cookie. // "NONE" - No session affinity. Connections from the same client IP may go // to any instance in the pool. - SessionAffinity string `json:"sessionAffinity,omitempty"` - Subsetting *Subsetting `json:"subsetting,omitempty"` + // "STRONG_COOKIE_AFFINITY" - Strong cookie-based affinity. Connections + // bearing the same cookie will be served by the same backend VM while that VM + // remains healthy, as long as the cookie has not expired. + SessionAffinity string `json:"sessionAffinity,omitempty"` + // StrongSessionAffinityCookie: Describes the HTTP cookie used for stateful + // session affinity. This field is applicable and required if the + // sessionAffinity is set to STRONG_COOKIE_AFFINITY. + StrongSessionAffinityCookie *BackendServiceHttpCookie `json:"strongSessionAffinityCookie,omitempty"` + Subsetting *Subsetting `json:"subsetting,omitempty"` // TimeoutSec: The backend service timeout has a different meaning depending on // the type of load balancer. For more information see, Backend service // settings. The default is 30 seconds. The full range of timeout values @@ -5802,6 +5809,33 @@ func (s BackendServiceGroupHealth) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// BackendServiceHttpCookie: The HTTP cookie used for stateful session +// affinity. +type BackendServiceHttpCookie struct { + // Name: Name of the cookie. + Name string `json:"name,omitempty"` + // Path: Path to set for the cookie. + Path string `json:"path,omitempty"` + // Ttl: Lifetime of the cookie. + Ttl *Duration `json:"ttl,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 BackendServiceHttpCookie) MarshalJSON() ([]byte, error) { + type NoMethod BackendServiceHttpCookie + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // BackendServiceIAP: Identity-Aware Proxy type BackendServiceIAP struct { // Enabled: Whether the serving infrastructure will authenticate and authorize @@ -13749,6 +13783,15 @@ type HealthStatusForNetworkEndpoint struct { // "UNHEALTHY" - Endpoint is unhealthy. // "UNKNOWN" - Health status of the endpoint is unknown. HealthState string `json:"healthState,omitempty"` + // Ipv6HealthState: Health state of the ipv6 network endpoint determined based + // on the health checks configured. + // + // Possible values: + // "DRAINING" - Endpoint is being drained. + // "HEALTHY" - Endpoint is healthy. + // "UNHEALTHY" - Endpoint is unhealthy. + // "UNKNOWN" - Health status of the endpoint is unknown. + Ipv6HealthState string `json:"ipv6HealthState,omitempty"` // ForceSendFields is a list of field names (e.g. "BackendService") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -19899,7 +19942,7 @@ func (s InstancesBulkInsertOperationMetadata) MarshalJSON() ([]byte, error) { } type InstancesGetEffectiveFirewallsResponse struct { - // FirewallPolicys: Effective firewalls from firewall policies. + // FirewallPolicys: [Output Only] Effective firewalls from firewall policies. FirewallPolicys []*InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy `json:"firewallPolicys,omitempty"` // Firewalls: Effective firewalls on the instance. Firewalls []*Firewall `json:"firewalls,omitempty"` @@ -19933,7 +19976,9 @@ type InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy struct { // Priority: [Output only] Priority of firewall policy association. Not // applicable for type=HIERARCHY. Priority int64 `json:"priority,omitempty"` - // Rules: The rules that apply to the network. + // Rules: [Output Only] The rules that apply to the instance. Only rules that + // target the specific VM instance are returned if target service accounts or + // target secure tags are specified in the rules. Rules []*FirewallPolicyRule `json:"rules,omitempty"` // ShortName: [Output Only] The short name of the firewall policy. ShortName string `json:"shortName,omitempty"` @@ -26379,6 +26424,8 @@ type NetworkEndpoint struct { // of the NEG. The primary internal IP address from any NIC of a multi-NIC VM // instance can be added to a NEG as long as it matches the NEG subnetwork. IpAddress string `json:"ipAddress,omitempty"` + // Ipv6Address: Optional IPv6 address of network endpoint. + Ipv6Address string `json:"ipv6Address,omitempty"` // Port: Optional port number of network endpoint. If not specified, the // defaultPort for the network endpoint group will be used. This field can not // be set for network endpoints of type GCE_VM_IP. @@ -27818,7 +27865,10 @@ func (s NetworksAddPeeringRequest) MarshalJSON() ([]byte, error) { } type NetworksGetEffectiveFirewallsResponse struct { - // FirewallPolicys: Effective firewalls from firewall policy. + // FirewallPolicys: [Output Only] Effective firewalls from firewall policy. It + // returns Global Network Firewall Policies and Hierarchical Firewall Policies. + // Use regionNetworkFirewallPolicies.getEffectiveFirewalls to get Regional + // Network Firewall Policies as well. FirewallPolicys []*NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy `json:"firewallPolicys,omitempty"` // Firewalls: Effective firewalls on the network. Firewalls []*Firewall `json:"firewalls,omitempty"` @@ -27852,7 +27902,7 @@ type NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy struct { // Priority: [Output only] Priority of firewall policy association. Not // applicable for type=HIERARCHY. Priority int64 `json:"priority,omitempty"` - // Rules: The rules that apply to the network. + // Rules: [Output Only] The rules that apply to the network. Rules []*FirewallPolicyRule `json:"rules,omitempty"` // ShortName: [Output Only] The short name of the firewall policy. ShortName string `json:"shortName,omitempty"` @@ -35512,7 +35562,10 @@ func (s RegionNetworkEndpointGroupsDetachEndpointsRequest) MarshalJSON() ([]byte } type RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse struct { - // FirewallPolicys: Effective firewalls from firewall policy. + // FirewallPolicys: [Output only] Effective firewalls from firewall policy. It + // applies to Regional Network Firewall Policies in the specified region, + // Global Network Firewall Policies and Hierachial Firewall Policies which are + // associated with the network. FirewallPolicys []*RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy `json:"firewallPolicys,omitempty"` // Firewalls: Effective firewalls on the network. Firewalls []*Firewall `json:"firewalls,omitempty"` @@ -35542,7 +35595,7 @@ type RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewall DisplayName string `json:"displayName,omitempty"` // Name: [Output Only] The name of the firewall policy. Name string `json:"name,omitempty"` - // Rules: The rules that apply to the network. + // Rules: [Output only] The rules that apply to the network. Rules []*FirewallPolicyRule `json:"rules,omitempty"` // Type: [Output Only] The type of the firewall policy. Can be one of // HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. @@ -35754,14 +35807,18 @@ type Reservation struct { // then only VMs that target the reservation by name can consume from this // reservation. SpecificReservationRequired bool `json:"specificReservationRequired,omitempty"` - // Status: [Output Only] The status of the reservation. + // Status: [Output Only] The status of the reservation. - CREATING: Reservation + // resources are being allocated. - READY: Reservation resources have been + // allocated, and the reservation is ready for use. - DELETING: Reservation + // deletion is in progress. - UPDATING: Reservation update is in progress. // // Possible values: - // "CREATING" - Resources are being allocated for the reservation. - // "DELETING" - Reservation is currently being deleted. + // "CREATING" - Reservation resources are being allocated. + // "DELETING" - Reservation deletion is in progress. // "INVALID" - // "READY" - Reservation has allocated all its resources. - // "UPDATING" - Reservation is currently being resized. + // "READY" - Reservation resources have been allocated, and the reservation + // is ready for use. + // "UPDATING" - Reservation update is in progress. Status string `json:"status,omitempty"` // Zone: Zone in which the reservation resides. A zone must be provided if the // reservation is created within a commitment. @@ -48513,6 +48570,9 @@ type TargetPool struct { // "HTTP_COOKIE" - The hash is based on a user provided cookie. // "NONE" - No session affinity. Connections from the same client IP may go // to any instance in the pool. + // "STRONG_COOKIE_AFFINITY" - Strong cookie-based affinity. Connections + // bearing the same cookie will be served by the same backend VM while that VM + // remains healthy, as long as the cookie has not expired. SessionAffinity string `json:"sessionAffinity,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index f4787257bd3..dd47ff7d985 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -109,6 +109,62 @@ "resources": { "locations": { "methods": { + "bulkDownloadFeedbackLabels": { + "description": "Download feedback labels in bulk.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:bulkDownloadFeedbackLabels", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.bulkDownloadFeedbackLabels", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource for new feedback labels.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:bulkDownloadFeedbackLabels", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "bulkUploadFeedbackLabels": { + "description": "Upload feedback labels in bulk.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:bulkUploadFeedbackLabels", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.bulkUploadFeedbackLabels", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource for new feedback labels.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:bulkUploadFeedbackLabels", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "getEncryptionSpec": { "description": "Gets location-level encryption key specification.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/encryptionSpec", @@ -159,6 +215,75 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "listAllFeedbackLabels": { + "description": "List all feedback labels by project number.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:listAllFeedbackLabels", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.listAllFeedbackLabels", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. A filter to reduce results to a specific subset in the entire project. Supports disjunctions (OR) and conjunctions (AND). Supported fields: * `issue_model_id` * `qa_question_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 `ListAllFeedbackLabelsResponse`. This value indicates that this is a continuation of a prior `ListAllFeedbackLabels` call and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of all feedback labels per project.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:listAllFeedbackLabels", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "queryMetrics": { + "description": "Query metrics.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:queryMetrics", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.queryMetrics", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "Required. The location of the data. \"projects/{project}/locations/{location}\"", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}:queryMetrics", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1QueryMetricsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "updateSettings": { "description": "Updates project-level settings.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/settings", @@ -195,372 +320,212 @@ } }, "resources": { - "conversations": { + "analysisRules": { "methods": { - "bulkAnalyze": { - "description": "Analyzes multiple conversations in a single request.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:bulkAnalyze", + "create": { + "description": "Creates a analysis rule.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/analysisRules", "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.conversations.bulkAnalyze", + "id": "contactcenterinsights.projects.locations.analysisRules.create", "parameterOrder": [ "parent" ], "parameters": { "parent": { - "description": "Required. The parent resource to create analyses in.", + "description": "Required. The parent resource of the analysis rule. Required. The location to create a analysis rule for. Format: `projects//locations/` or `projects//locations/`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/conversations:bulkAnalyze", + "path": "v1/{+parent}/analysisRules", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest" + "$ref": "GoogleCloudContactcenterinsightsV1AnalysisRule" }, "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleCloudContactcenterinsightsV1AnalysisRule" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "bulkDelete": { - "description": "Deletes multiple conversations in a single request.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:bulkDelete", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.conversations.bulkDelete", + "delete": { + "description": "Deletes a analysis rule.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/analysisRules/{analysisRulesId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.analysisRules.delete", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "Required. The parent resource to delete conversations from. Format: projects/{project}/locations/{location}", + "name": { + "description": "Required. The name of the analysis rule to delete.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/conversations:bulkDelete", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest" - }, + "path": "v1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "calculateStats": { - "description": "Gets conversation statistics.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:calculateStats", + "get": { + "description": "Get a analysis rule.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/analysisRules/{analysisRulesId}", "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.conversations.calculateStats", + "id": "contactcenterinsights.projects.locations.analysisRules.get", "parameterOrder": [ - "location" + "name" ], "parameters": { - "filter": { - "description": "A filter to reduce results to a specific subset. This field is useful for getting statistics about conversations with specific properties.", - "location": "query", - "type": "string" - }, - "location": { - "description": "Required. The location of the conversations.", + "name": { + "description": "Required. The name of the AnalysisRule to get.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+location}/conversations:calculateStats", + "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudContactcenterinsightsV1CalculateStatsResponse" + "$ref": "GoogleCloudContactcenterinsightsV1AnalysisRule" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "create": { - "description": "Creates a conversation. Note that this method does not support audio transcription or redaction. Use `conversations.upload` instead.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.conversations.create", + "list": { + "description": "Lists analysis rules.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/analysisRules", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.analysisRules.list", "parameterOrder": [ "parent" ], "parameters": { - "conversationId": { - "description": "A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`", + "pageSize": { + "description": "Optional. The maximum number of analysis rule to return in the response. If this value is zero, the service will select a default size. A call may 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": "Optional. The value returned by the last `ListAnalysisRulesResponse`; indicates that this is a continuation of a prior `ListAnalysisRules` call and the system should return the next page of data.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The parent resource of the conversation.", + "description": "Required. The parent resource of the analysis rules.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/conversations", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a conversation.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}", - "httpMethod": "DELETE", - "id": "contactcenterinsights.projects.locations.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/[^/]+/conversations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", + "path": "v1/{+parent}/analysisRules", "response": { - "$ref": "GoogleProtobufEmpty" + "$ref": "GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "get": { - "description": "Gets a conversation.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.conversations.get", + "patch": { + "description": "Updates a analysis rule.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/analysisRules/{analysisRulesId}", + "httpMethod": "PATCH", + "id": "contactcenterinsights.projects.locations.analysisRules.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the conversation to get.", + "description": "Identifier. The resource name of the analysis rule. Format: projects/{project}/locations/{location}/analysisRules/{analysis_rule}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$", "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." - ], + "updateMask": { + "description": "Optional. The list of fields to be updated. If the update_mask is not provided, the update will be applied to all fields.", + "format": "google-fieldmask", "location": "query", "type": "string" } }, "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "ingest": { - "description": "Imports conversations and processes them according to the user's configuration.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:ingest", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.conversations.ingest", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource for new conversations.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/conversations:ingest", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsRequest" + "$ref": "GoogleCloudContactcenterinsightsV1AnalysisRule" }, "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists conversations.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.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/[^/]+$", - "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" - ] - }, - "patch": { - "description": "Updates a conversation.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}", - "httpMethod": "PATCH", - "id": "contactcenterinsights.projects.locations.conversations.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "The list of fields to be updated. All possible fields can be updated by passing `*`, or a subset of the following updateable fields can be provided: * `agent_id` * `language_code` * `labels` * `metadata` * `quality_metadata` * `call_metadata` * `start_time` * `expire_time` or `ttl` * `data_source.gcs_source.audio_uri` or `data_source.dialogflow_source.audio_uri`", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "upload": { - "description": "Create a long-running conversation upload operation. This method differs from `CreateConversation` by allowing audio transcription and optional DLP redaction.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:upload", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.conversations.upload", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource of the conversation.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/conversations:upload", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1UploadConversationRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleCloudContactcenterinsightsV1AnalysisRule" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } - }, + } + }, + "authorizedViewSet": { "resources": { - "analyses": { + "authorizedView": { "methods": { - "create": { - "description": "Creates an analysis. The long running operation is done when the analysis has completed.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/analyses", + "calculateStats": { + "description": "Gets conversation statistics.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSet/{authorizedViewSetId}/authorizedView/{authorizedViewId}:calculateStats", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSet.authorizedView.calculateStats", + "parameterOrder": [ + "location" + ], + "parameters": { + "filter": { + "description": "A filter to reduce results to a specific subset. This field is useful for getting statistics about conversations with specific properties.", + "location": "query", + "type": "string" + }, + "location": { + "description": "Required. The location of the conversations.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSet/[^/]+/authorizedView/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}:calculateStats", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1CalculateStatsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "queryMetrics": { + "description": "Query metrics.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSet/{authorizedViewSetId}/authorizedView/{authorizedViewId}:queryMetrics", "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.conversations.analyses.create", + "id": "contactcenterinsights.projects.locations.authorizedViewSet.authorizedView.queryMetrics", "parameterOrder": [ - "parent" + "location" ], "parameters": { - "parent": { - "description": "Required. The parent resource of the analysis.", + "location": { + "description": "Required. The location of the data. \"projects/{project}/locations/{location}\"", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSet/[^/]+/authorizedView/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/analyses", + "path": "v1/{+location}:queryMetrics", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1Analysis" + "$ref": "GoogleCloudContactcenterinsightsV1QueryMetricsRequest" }, "response": { "$ref": "GoogleLongrunningOperation" @@ -568,124 +533,770 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "delete": { - "description": "Deletes an analysis.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/analyses/{analysesId}", - "httpMethod": "DELETE", - "id": "contactcenterinsights.projects.locations.conversations.analyses.delete", + } + } + }, + "authorizedViews": { + "resources": { + "conversations": { + "resources": { + "feedbackLabels": { + "methods": { + "create": { + "description": "Create feedback label.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSet/{authorizedViewSetId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.authorizedViewSet.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/[^/]+/authorizedViewSet/[^/]+/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}/authorizedViewSet/{authorizedViewSetId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the feedback label to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSet/[^/]+/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}/authorizedViewSet/{authorizedViewSetId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSet.authorizedViews.conversations.feedbackLabels.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the feedback label to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSet/[^/]+/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}/authorizedViewSet/{authorizedViewSetId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSet.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/[^/]+/authorizedViewSet/[^/]+/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}/authorizedViewSet/{authorizedViewSetId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", + "httpMethod": "PATCH", + "id": "contactcenterinsights.projects.locations.authorizedViewSet.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/[^/]+/authorizedViewSet/[^/]+/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" + ] + } + } + } + } + } + } + } + } + }, + "authorizedViewSets": { + "resources": { + "authorizedViews": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}:getIamPolicy", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.getIamPolicy", "parameterOrder": [ - "name" + "resource" ], "parameters": { - "name": { - "description": "Required. The name of the analysis to delete.", + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}", + "path": "v1/{+resource}:getIamPolicy", "response": { - "$ref": "GoogleProtobufEmpty" + "$ref": "GoogleIamV1Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "get": { - "description": "Gets an analysis.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/analyses/{analysesId}", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.conversations.analyses.get", + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}:setIamPolicy", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.setIamPolicy", "parameterOrder": [ - "name" + "resource" ], "parameters": { - "name": { - "description": "Required. The name of the analysis to get.", + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}", + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, "response": { - "$ref": "GoogleCloudContactcenterinsightsV1Analysis" + "$ref": "GoogleIamV1Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "list": { - "description": "Lists analyses.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/analyses", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.conversations.analyses.list", + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}:testIamPermissions", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.testIamPermissions", "parameterOrder": [ - "parent" + "resource" ], "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.", + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/analyses", + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "GoogleIamV1TestIamPermissionsRequest" + }, "response": { - "$ref": "GoogleCloudContactcenterinsightsV1ListAnalysesResponse" + "$ref": "GoogleIamV1TestIamPermissionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "conversations": { + "methods": { + "create": { + "description": "Creates a conversation. Note that this method does not support audio transcription or redaction. Use `conversations.upload` instead.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "conversationId": { + "description": "A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the conversation.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/conversations", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" + }, + "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" + ] + }, + "patch": { + "description": "Updates a conversation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}", + "httpMethod": "PATCH", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to be updated. All possible fields can be updated by passing `*`, or a subset of the following updateable fields can be provided: * `agent_id` * `language_code` * `labels` * `metadata` * `quality_metadata` * `call_metadata` * `start_time` * `expire_time` or `ttl` * `data_source.gcs_source.audio_uri` or `data_source.dialogflow_source.audio_uri`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "upload": { + "description": "Create a long-running conversation upload operation. This method differs from `CreateConversation` by allowing audio transcription and optional DLP redaction.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations:upload", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.upload", + "parameterOrder": [ + "parent" + ], + "parameters": { + "conversationId": { + "description": "Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the conversation.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", + "required": true, + "type": "string" + }, + "redactionConfig.deidentifyTemplate": { + "description": "The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}`", + "location": "query", + "type": "string" + }, + "redactionConfig.inspectTemplate": { + "description": "The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}`", + "location": "query", + "type": "string" + }, + "speechConfig.speechRecognizer": { + "description": "The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}`", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/conversations:upload", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "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" + ] + } + } + } + } + }, + "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" + ] + } + } + } } } } }, - "encryptionSpec": { + "conversations": { "methods": { - "initialize": { - "description": "Initializes a location-level encryption key specification. An error will result if the location has resources already created before the initialization. After the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/encryptionSpec:initialize", + "bulkAnalyze": { + "description": "Analyzes multiple conversations in a single request.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:bulkAnalyze", "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.encryptionSpec.initialize", + "id": "contactcenterinsights.projects.locations.conversations.bulkAnalyze", "parameterOrder": [ - "name" + "parent" ], "parameters": { - "name": { - "description": "Immutable. The resource name of the encryption key specification resource. Format: projects/{project}/locations/{location}/encryptionSpec", + "parent": { + "description": "Required. The parent resource to create analyses in.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/encryptionSpec$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}:initialize", + "path": "v1/{+parent}/conversations:bulkAnalyze", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest" + "$ref": "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest" }, "response": { "$ref": "GoogleLongrunningOperation" @@ -693,31 +1304,27 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - } - } - }, - "insightsdata": { - "methods": { - "export": { - "description": "Export insights data to a destination defined in the request body.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/insightsdata:export", + }, + "bulkDelete": { + "description": "Deletes multiple conversations in a single request.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:bulkDelete", "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.insightsdata.export", + "id": "contactcenterinsights.projects.locations.conversations.bulkDelete", "parameterOrder": [ "parent" ], "parameters": { "parent": { - "description": "Required. The parent resource to export data from.", + "description": "Required. The parent resource to delete conversations from. Format: projects/{project}/locations/{location}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/insightsdata:export", + "path": "v1/{+parent}/conversations:bulkDelete", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest" + "$ref": "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest" }, "response": { "$ref": "GoogleLongrunningOperation" @@ -725,190 +1332,160 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - } - } - }, - "issueModels": { - "methods": { - "calculateIssueModelStats": { - "description": "Gets an issue model's statistics.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}:calculateIssueModelStats", + }, + "calculateStats": { + "description": "Gets conversation statistics.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:calculateStats", "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.issueModels.calculateIssueModelStats", + "id": "contactcenterinsights.projects.locations.conversations.calculateStats", "parameterOrder": [ - "issueModel" + "location" ], "parameters": { - "issueModel": { - "description": "Required. The resource name of the issue model to query against.", + "filter": { + "description": "A filter to reduce results to a specific subset. This field is useful for getting statistics about conversations with specific properties.", + "location": "query", + "type": "string" + }, + "location": { + "description": "Required. The location of the conversations.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+issueModel}:calculateIssueModelStats", + "path": "v1/{+location}/conversations:calculateStats", "response": { - "$ref": "GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse" + "$ref": "GoogleCloudContactcenterinsightsV1CalculateStatsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "create": { - "description": "Creates an issue model.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels", + "description": "Creates a conversation. Note that this method does not support audio transcription or redaction. Use `conversations.upload` instead.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations", "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.issueModels.create", + "id": "contactcenterinsights.projects.locations.conversations.create", "parameterOrder": [ "parent" ], "parameters": { + "conversationId": { + "description": "A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`", + "location": "query", + "type": "string" + }, "parent": { - "description": "Required. The parent resource of the issue model.", + "description": "Required. The parent resource of the conversation.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/issueModels", + "path": "v1/{+parent}/conversations", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueModel" + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" }, "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "delete": { - "description": "Deletes an issue model.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}", + "description": "Deletes a conversation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}", "httpMethod": "DELETE", - "id": "contactcenterinsights.projects.locations.issueModels.delete", + "id": "contactcenterinsights.projects.locations.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 issue model to delete.", + "description": "Required. The name of the conversation to delete.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "deploy": { - "description": "Deploys an issue model. Returns an error if a model is already deployed. An issue model can only be used in analysis after it has been deployed.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}:deploy", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.issueModels.deploy", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The issue model to deploy.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:deploy", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1DeployIssueModelRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "export": { - "description": "Exports an issue model to the provided destination.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}:export", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.issueModels.export", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The issue model to export.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:export", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { - "description": "Gets an issue model.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}", + "description": "Gets a conversation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}", "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.issueModels.get", + "id": "contactcenterinsights.projects.locations.conversations.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the issue model to get.", + "description": "Required. The name of the conversation to get.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/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": "GoogleCloudContactcenterinsightsV1IssueModel" + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "import": { - "description": "Imports an issue model from a Cloud Storage bucket.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels:import", + "ingest": { + "description": "Imports conversations and processes them according to the user's configuration.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:ingest", "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.issueModels.import", + "id": "contactcenterinsights.projects.locations.conversations.ingest", "parameterOrder": [ "parent" ], "parameters": { "parent": { - "description": "Required. The parent resource of the issue model.", + "description": "Required. The parent resource for new conversations.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/issueModels:import", + "path": "v1/{+parent}/conversations:ingest", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest" + "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsRequest" }, "response": { "$ref": "GoogleLongrunningOperation" @@ -918,48 +1495,84 @@ ] }, "list": { - "description": "Lists issue models.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels", + "description": "Lists conversations.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations", "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.issueModels.list", + "id": "contactcenterinsights.projects.locations.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 issue model.", + "description": "Required. The parent resource of the conversation.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "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}/issueModels", + "path": "v1/{+parent}/conversations", "response": { - "$ref": "GoogleCloudContactcenterinsightsV1ListIssueModelsResponse" + "$ref": "GoogleCloudContactcenterinsightsV1ListConversationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { - "description": "Updates an issue model.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}", + "description": "Updates a conversation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}", "httpMethod": "PATCH", - "id": "contactcenterinsights.projects.locations.issueModels.patch", + "id": "contactcenterinsights.projects.locations.conversations.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}", + "description": "Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "required": true, "type": "string" }, "updateMask": { - "description": "The list of fields to be updated.", + "description": "The list of fields to be updated. All possible fields can be updated by passing `*`, or a subset of the following updateable fields can be provided: * `agent_id` * `language_code` * `labels` * `metadata` * `quality_metadata` * `call_metadata` * `start_time` * `expire_time` or `ttl` * `data_source.gcs_source.audio_uri` or `data_source.dialogflow_source.audio_uri`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -967,35 +1580,35 @@ }, "path": "v1/{+name}", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueModel" + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" }, "response": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueModel" + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "undeploy": { - "description": "Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}:undeploy", + "upload": { + "description": "Create a long-running conversation upload operation. This method differs from `CreateConversation` by allowing audio transcription and optional DLP redaction.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:upload", "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.issueModels.undeploy", + "id": "contactcenterinsights.projects.locations.conversations.upload", "parameterOrder": [ - "name" + "parent" ], "parameters": { - "name": { - "description": "Required. The issue model to undeploy.", + "parent": { + "description": "Required. The parent resource of the conversation.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}:undeploy", + "path": "v1/{+parent}/conversations:upload", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest" + "$ref": "GoogleCloudContactcenterinsightsV1UploadConversationRequest" }, "response": { "$ref": "GoogleLongrunningOperation" @@ -1006,21 +1619,49 @@ } }, "resources": { - "issues": { + "analyses": { "methods": { - "delete": { - "description": "Deletes an issue.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}/issues/{issuesId}", - "httpMethod": "DELETE", - "id": "contactcenterinsights.projects.locations.issueModels.issues.delete", + "create": { + "description": "Creates an analysis. The long running operation is done when the analysis has completed.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/analyses", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.conversations.analyses.create", "parameterOrder": [ - "name" + "parent" ], "parameters": { - "name": { - "description": "Required. The name of the issue to delete.", + "parent": { + "description": "Required. The parent resource of the analysis.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/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}/conversations/{conversationsId}/analyses/{analysesId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.conversations.analyses.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the analysis to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$", "required": true, "type": "string" } @@ -1034,73 +1675,217 @@ ] }, "get": { - "description": "Gets an issue.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}/issues/{issuesId}", + "description": "Gets an analysis.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/analyses/{analysesId}", "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.issueModels.issues.get", + "id": "contactcenterinsights.projects.locations.conversations.analyses.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the issue to get.", + "description": "Required. The name of the analysis to get.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudContactcenterinsightsV1Issue" + "$ref": "GoogleCloudContactcenterinsightsV1Analysis" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists issues.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}/issues", + "description": "Lists analyses.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/analyses", "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.issueModels.issues.list", + "id": "contactcenterinsights.projects.locations.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/[^/]+/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}/conversations/{conversationsId}/feedbackLabels", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.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 issue.", + "description": "Required. The parent resource of the feedback label.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/issues", + "path": "v1/{+parent}/feedbackLabels", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" + }, "response": { - "$ref": "GoogleCloudContactcenterinsightsV1ListIssuesResponse" + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete feedback label.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.conversations.feedbackLabels.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the feedback label to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/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}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.conversations.feedbackLabels.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the feedback label to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/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}/conversations/{conversationsId}/feedbackLabels", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.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/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/feedbackLabels", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { - "description": "Updates an issue.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}/issues/{issuesId}", + "description": "Update feedback label.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", "httpMethod": "PATCH", - "id": "contactcenterinsights.projects.locations.issueModels.issues.patch", + "id": "contactcenterinsights.projects.locations.conversations.feedbackLabels.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Immutable. The resource name of the issue. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}", + "description": "Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", "required": true, "type": "string" }, "updateMask": { - "description": "The list of fields to be updated.", + "description": "Required. The list of fields to be updated.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1108,10 +1893,10 @@ }, "path": "v1/{+name}", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1Issue" + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" }, "response": { - "$ref": "GoogleCloudContactcenterinsightsV1Issue" + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -1121,387 +1906,297 @@ } } }, - "operations": { + "encryptionSpec": { "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}/operations/{operationsId}:cancel", + "initialize": { + "description": "Initializes a location-level encryption key specification. An error will result if the location has resources already created before the initialization. After the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/encryptionSpec:initialize", "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.operations.cancel", + "id": "contactcenterinsights.projects.locations.encryptionSpec.initialize", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The name of the operation resource to be cancelled.", + "description": "Immutable. The resource name of the encryption key specification resource. Format: projects/{project}/locations/{location}/encryptionSpec", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/encryptionSpec$", "required": true, "type": "string" } }, - "path": "v1/{+name}:cancel", + "path": "v1/{+name}:initialize", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest" + }, "response": { - "$ref": "GoogleProtobufEmpty" + "$ref": "GoogleLongrunningOperation" }, "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}/operations/{operationsId}", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.operations.get", + } + } + }, + "insightsdata": { + "methods": { + "export": { + "description": "Export insights data to a destination defined in the request body.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/insightsdata:export", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.insightsdata.export", "parameterOrder": [ - "name" + "parent" ], "parameters": { - "name": { - "description": "The name of the operation resource.", + "parent": { + "description": "Required. The parent resource to export data from.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}", + "path": "v1/{+parent}/insightsdata:export", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest" + }, "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}/operations", + } + } + }, + "issueModels": { + "methods": { + "calculateIssueModelStats": { + "description": "Gets an issue model's statistics.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}:calculateIssueModelStats", "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.operations.list", + "id": "contactcenterinsights.projects.locations.issueModels.calculateIssueModelStats", "parameterOrder": [ - "name" + "issueModel" ], "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the operation's parent resource.", + "issueModel": { + "description": "Required. The resource name of the issue model to query against.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "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", + "path": "v1/{+issueModel}:calculateIssueModelStats", "response": { - "$ref": "GoogleLongrunningListOperationsResponse" + "$ref": "GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - } - } - }, - "phraseMatchers": { - "methods": { + }, "create": { - "description": "Creates a phrase matcher.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/phraseMatchers", + "description": "Creates an issue model.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels", "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.phraseMatchers.create", + "id": "contactcenterinsights.projects.locations.issueModels.create", "parameterOrder": [ "parent" ], "parameters": { "parent": { - "description": "Required. The parent resource of the phrase matcher. Required. The location to create a phrase matcher for. Format: `projects//locations/` or `projects//locations/`", + "description": "Required. The parent resource of the issue model.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/phraseMatchers", + "path": "v1/{+parent}/issueModels", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" + "$ref": "GoogleCloudContactcenterinsightsV1IssueModel" }, "response": { - "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "delete": { - "description": "Deletes a phrase matcher.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/phraseMatchers/{phraseMatchersId}", + "description": "Deletes an issue model.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}", "httpMethod": "DELETE", - "id": "contactcenterinsights.projects.locations.phraseMatchers.delete", + "id": "contactcenterinsights.projects.locations.issueModels.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the phrase matcher to delete.", + "description": "Required. The name of the issue model to delete.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleProtobufEmpty" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "get": { - "description": "Gets a phrase matcher.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/phraseMatchers/{phraseMatchersId}", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.phraseMatchers.get", + "deploy": { + "description": "Deploys an issue model. Returns an error if a model is already deployed. An issue model can only be used in analysis after it has been deployed.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}:deploy", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.issueModels.deploy", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the phrase matcher to get.", + "description": "Required. The issue model to deploy.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists phrase matchers.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/phraseMatchers", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.phraseMatchers.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "A filter to reduce results to a specific subset. Useful for querying phrase matchers with specific properties.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "The maximum number of phrase matchers 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 `ListPhraseMatchersResponse`. This value indicates that this is a continuation of a prior `ListPhraseMatchers` call and that the system should return the next page of data.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource of the phrase matcher.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } + "path": "v1/{+name}:deploy", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1DeployIssueModelRequest" }, - "path": "v1/{+parent}/phraseMatchers", "response": { - "$ref": "GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "patch": { - "description": "Updates a phrase matcher.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/phraseMatchers/{phraseMatchersId}", - "httpMethod": "PATCH", - "id": "contactcenterinsights.projects.locations.phraseMatchers.patch", + "export": { + "description": "Exports an issue model to the provided destination.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}:export", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.issueModels.export", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "The list of fields to be updated.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" - }, - "response": { - "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "views": { - "methods": { - "create": { - "description": "Creates a view.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/views", - "httpMethod": "POST", - "id": "contactcenterinsights.projects.locations.views.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource of the view. Required. The location to create a view for. Format: `projects//locations/` or `projects//locations/`", + "description": "Required. The issue model to export.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/views", + "path": "v1/{+name}:export", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1View" + "$ref": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest" }, "response": { - "$ref": "GoogleCloudContactcenterinsightsV1View" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "delete": { - "description": "Deletes a view.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/views/{viewsId}", - "httpMethod": "DELETE", - "id": "contactcenterinsights.projects.locations.views.delete", + "get": { + "description": "Gets an issue model.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.issueModels.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the view to delete.", + "description": "Required. The name of the issue model to get.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/views/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleProtobufEmpty" + "$ref": "GoogleCloudContactcenterinsightsV1IssueModel" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "get": { - "description": "Gets a view.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/views/{viewsId}", - "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.views.get", + "import": { + "description": "Imports an issue model from a Cloud Storage bucket.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels:import", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.issueModels.import", "parameterOrder": [ - "name" + "parent" ], "parameters": { - "name": { - "description": "Required. The name of the view to get.", + "parent": { + "description": "Required. The parent resource of the issue model.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/views/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}", + "path": "v1/{+parent}/issueModels:import", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest" + }, "response": { - "$ref": "GoogleCloudContactcenterinsightsV1View" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists views.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/views", + "description": "Lists issue models.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels", "httpMethod": "GET", - "id": "contactcenterinsights.projects.locations.views.list", + "id": "contactcenterinsights.projects.locations.issueModels.list", "parameterOrder": [ "parent" ], "parameters": { - "pageSize": { - "description": "The maximum number of views to return in the response. If this value is zero, the service will select a default size. A call may 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 `ListViewsResponse`; indicates that this is a continuation of a prior `ListViews` call and the system should return the next page of data.", - "location": "query", - "type": "string" - }, "parent": { - "description": "Required. The parent resource of the views.", + "description": "Required. The parent resource of the issue model.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/views", + "path": "v1/{+parent}/issueModels", "response": { - "$ref": "GoogleCloudContactcenterinsightsV1ListViewsResponse" + "$ref": "GoogleCloudContactcenterinsightsV1ListIssueModelsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "patch": { - "description": "Updates a view.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/views/{viewsId}", + "description": "Updates an issue model.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}", "httpMethod": "PATCH", - "id": "contactcenterinsights.projects.locations.views.patch", + "id": "contactcenterinsights.projects.locations.issueModels.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}", + "description": "Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/views/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", "required": true, "type": "string" }, @@ -1514,1118 +2209,3115 @@ }, "path": "v1/{+name}", "request": { - "$ref": "GoogleCloudContactcenterinsightsV1View" + "$ref": "GoogleCloudContactcenterinsightsV1IssueModel" }, "response": { - "$ref": "GoogleCloudContactcenterinsightsV1View" + "$ref": "GoogleCloudContactcenterinsightsV1IssueModel" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - } - } - } - } - } - } - } - }, - "revision": "20241008", - "rootUrl": "https://contactcenterinsights.googleapis.com/", - "schemas": { - "GoogleCloudContactcenterinsightsV1Analysis": { + }, + "undeploy": { + "description": "Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}:undeploy", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.issueModels.undeploy", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The issue model to undeploy.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:undeploy", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "issues": { + "methods": { + "delete": { + "description": "Deletes an issue.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}/issues/{issuesId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.issueModels.issues.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the issue to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an issue.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}/issues/{issuesId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.issueModels.issues.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the issue to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1Issue" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists issues.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}/issues", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.issueModels.issues.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the issue.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/issues", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListIssuesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an issue.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}/issues/{issuesId}", + "httpMethod": "PATCH", + "id": "contactcenterinsights.projects.locations.issueModels.issues.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. The resource name of the issue. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1Issue" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1Issue" + }, + "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}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/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}/operations/{operationsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/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}/operations", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.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/[^/]+$", + "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" + ] + } + } + }, + "phraseMatchers": { + "methods": { + "create": { + "description": "Creates a phrase matcher.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/phraseMatchers", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.phraseMatchers.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the phrase matcher. Required. The location to create a phrase matcher for. Format: `projects//locations/` or `projects//locations/`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/phraseMatchers", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a phrase matcher.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/phraseMatchers/{phraseMatchersId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.phraseMatchers.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the phrase matcher to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a phrase matcher.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/phraseMatchers/{phraseMatchersId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.phraseMatchers.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the phrase matcher to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists phrase matchers.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/phraseMatchers", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.phraseMatchers.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "A filter to reduce results to a specific subset. Useful for querying phrase matchers with specific properties.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of phrase matchers 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 `ListPhraseMatchersResponse`. This value indicates that this is a continuation of a prior `ListPhraseMatchers` call and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the phrase matcher.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/phraseMatchers", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a phrase matcher.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/phraseMatchers/{phraseMatchersId}", + "httpMethod": "PATCH", + "id": "contactcenterinsights.projects.locations.phraseMatchers.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "qaScorecards": { + "methods": { + "create": { + "description": "Create a QaScorecard.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.qaScorecards.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the QaScorecard.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "qaScorecardId": { + "description": "Optional. A unique ID for the new QaScorecard. This ID will become the final component of the QaScorecard's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/qaScorecards", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecard" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecard" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a QaScorecard.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.qaScorecards.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "Optional. If set to true, all of this QaScorecard's child resources will also be deleted. Otherwise, the request will only succeed if it has none.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the QaScorecard to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a QaScorecard.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.qaScorecards.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the QaScorecard to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecard" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists QaScorecards.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.qaScorecards.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of scorecards to return in the response. If the 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": "Optional. The value returned by the last `ListQaScorecardsResponse`. This value indicates that this is a continuation of a prior `ListQaScorecards` call and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the scorecards.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/qaScorecards", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a QaScorecard.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}", + "httpMethod": "PATCH", + "id": "contactcenterinsights.projects.locations.qaScorecards.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The scorecard name. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to be updated. All possible fields can be updated by passing `*`, or a subset of the following updateable fields can be provided: * `description` * `display_name`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecard" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecard" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "revisions": { + "methods": { + "create": { + "description": "Creates a QaScorecardRevision.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the QaScorecardRevision.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$", + "required": true, + "type": "string" + }, + "qaScorecardRevisionId": { + "description": "Optional. A unique ID for the new QaScorecardRevision. This ID will become the final component of the QaScorecardRevision's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/revisions", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecardRevision" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecardRevision" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a QaScorecardRevision.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions/{revisionsId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "Optional. If set to true, all of this QaScorecardRevision's child resources will also be deleted. Otherwise, the request will only succeed if it has none.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the QaScorecardRevision to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "deploy": { + "description": "Deploy a QaScorecardRevision.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions/{revisionsId}:deploy", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.deploy", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the QaScorecardRevision to deploy.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:deploy", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecardRevision" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a QaScorecardRevision.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions/{revisionsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the QaScorecardRevision to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecardRevision" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all revisions under the parent QaScorecard.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. A filter to reduce results to a specific subset. Useful for querying scorecard revisions with specific properties.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of scorecard revisions to return in the response. If the 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": "Optional. The value returned by the last `ListQaScorecardRevisionsResponse`. This value indicates that this is a continuation of a prior `ListQaScorecardRevisions` call and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the scorecard revisions. To list all revisions of all scorecards, substitute the QaScorecard ID with a '-' character.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/revisions", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "tuneQaScorecardRevision": { + "description": "Fine tune one or more QaModels.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions/{revisionsId}:tuneQaScorecardRevision", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.tuneQaScorecardRevision", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource for new fine tuning job instance.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:tuneQaScorecardRevision", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "undeploy": { + "description": "Undeploy a QaScorecardRevision.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions/{revisionsId}:undeploy", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.undeploy", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the QaScorecardRevision to undeploy.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:undeploy", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecardRevision" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "qaQuestions": { + "methods": { + "create": { + "description": "Create a QaQuestion.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions/{revisionsId}/qaQuestions", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the QaQuestion.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", + "required": true, + "type": "string" + }, + "qaQuestionId": { + "description": "Optional. A unique ID for the new question. This ID will become the final component of the question's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/qaQuestions", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1QaQuestion" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1QaQuestion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a QaQuestion.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions/{revisionsId}/qaQuestions/{qaQuestionsId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the QaQuestion to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a QaQuestion.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions/{revisionsId}/qaQuestions/{qaQuestionsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the QaQuestion to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1QaQuestion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists QaQuestions.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions/{revisionsId}/qaQuestions", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of questions to return in the response. If the 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": "Optional. The value returned by the last `ListQaQuestionsResponse`. This value indicates that this is a continuation of a prior `ListQaQuestions` call and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the questions.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/qaQuestions", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a QaQuestion.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/qaScorecards/{qaScorecardsId}/revisions/{revisionsId}/qaQuestions/{qaQuestionsId}", + "httpMethod": "PATCH", + "id": "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to be updated. All possible fields can be updated by passing `*`, or a subset of the following updateable fields can be provided: * `abbreviation` * `answer_choices` * `answer_instructions` * `order` * `question_body` * `tags`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1QaQuestion" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1QaQuestion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, + "views": { + "methods": { + "create": { + "description": "Creates a view.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/views", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.views.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the view. Required. The location to create a view for. Format: `projects//locations/` or `projects//locations/`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/views", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1View" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1View" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a view.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/views/{viewsId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.views.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the view to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a view.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/views/{viewsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.views.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the view to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1View" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists views.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/views", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.views.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of views to return in the response. If this value is zero, the service will select a default size. A call may 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 `ListViewsResponse`; indicates that this is a continuation of a prior `ListViews` call and the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the views.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/views", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListViewsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a view.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/views/{viewsId}", + "httpMethod": "PATCH", + "id": "contactcenterinsights.projects.locations.views.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. The resource name of the view. Format: projects/{project}/locations/{location}/views/{view}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1View" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1View" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20241015", + "rootUrl": "https://contactcenterinsights.googleapis.com/", + "schemas": { + "GoogleCloudContactcenterinsightsV1Analysis": { "description": "The analysis resource.", "id": "GoogleCloudContactcenterinsightsV1Analysis", "properties": { - "analysisResult": { - "$ref": "GoogleCloudContactcenterinsightsV1AnalysisResult", - "description": "Output only. The result of the analysis, which is populated when the analysis finishes.", - "readOnly": true + "analysisResult": { + "$ref": "GoogleCloudContactcenterinsightsV1AnalysisResult", + "description": "Output only. The result of the analysis, which is populated when the analysis finishes.", + "readOnly": true + }, + "annotatorSelector": { + "$ref": "GoogleCloudContactcenterinsightsV1AnnotatorSelector", + "description": "To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run." + }, + "createTime": { + "description": "Output only. The time at which the analysis was created, which occurs when the long-running operation completes.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}", + "type": "string" + }, + "requestTime": { + "description": "Output only. The time at which the analysis was requested.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AnalysisResult": { + "description": "The result of an analysis.", + "id": "GoogleCloudContactcenterinsightsV1AnalysisResult", + "properties": { + "callAnalysisMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata", + "description": "Call-specific metadata created by the analysis." + }, + "endTime": { + "description": "The time at which the analysis ended.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata": { + "description": "Call-specific metadata created during analysis.", + "id": "GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata", + "properties": { + "annotations": { + "description": "A list of call annotations that apply to this call.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1CallAnnotation" + }, + "type": "array" + }, + "entities": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1Entity" + }, + "description": "All the entities in the call.", + "type": "object" + }, + "intents": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1Intent" + }, + "description": "All the matched intents in the call.", + "type": "object" + }, + "issueModelResult": { + "$ref": "GoogleCloudContactcenterinsightsV1IssueModelResult", + "description": "Overall conversation-level issue modeling result." + }, + "phraseMatchers": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatchData" + }, + "description": "All the matched phrase matchers in the call.", + "type": "object" + }, + "qaScorecardResults": { + "description": "Results of scoring QaScorecards.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecardResult" + }, + "type": "array" + }, + "sentiments": { + "description": "Overall conversation-level sentiment for each channel of the call.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationLevelSentiment" + }, + "type": "array" + }, + "silence": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationLevelSilence", + "description": "Overall conversation-level silence during the call." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AnalysisRule": { + "description": "The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that match the filter defined in the rule. For a conversation matches the filter, the annotators specified in the rule will be run. If a conversation matches multiple rules, a union of all the annotators will be run. One project can have multiple analysis rules.", + "id": "GoogleCloudContactcenterinsightsV1AnalysisRule", + "properties": { + "active": { + "description": "If true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a draft.", + "type": "boolean" + }, + "analysisPercentage": { + "description": "Percentage of conversations that we should apply this analysis setting automatically, between [0, 1]. For example, 0.1 means 10%. Conversations are sampled in a determenestic way. The original runtime_percentage \u0026 upload percentage will be replaced by defining filters on the conversation.", + "format": "double", + "type": "number" + }, + "annotatorSelector": { + "$ref": "GoogleCloudContactcenterinsightsV1AnnotatorSelector", + "description": "Selector of annotators to run and the phrase matchers to use for conversations that matches the conversation_filter. If not specified, NO annotators will be run." + }, + "conversationFilter": { + "description": "Filter for the conversations that should apply this analysis rule. An empty filter means this analysis rule applies to all conversations.", + "type": "string" + }, + "createTime": { + "description": "Output only. The time at which this analysis rule was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Display Name of the analysis rule.", + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the analysis rule. Format: projects/{project}/locations/{location}/analysisRules/{analysis_rule}", + "type": "string" + }, + "updateTime": { + "description": "Output only. The most recent time at which this analysis rule was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AnnotationBoundary": { + "description": "A point in a conversation that marks the start or the end of an annotation.", + "id": "GoogleCloudContactcenterinsightsV1AnnotationBoundary", + "properties": { + "transcriptIndex": { + "description": "The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero.", + "format": "int32", + "type": "integer" + }, + "wordIndex": { + "description": "The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AnnotatorSelector": { + "description": "Selector of all available annotators and phrase matchers to run.", + "id": "GoogleCloudContactcenterinsightsV1AnnotatorSelector", + "properties": { + "issueModels": { + "description": "The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.", + "items": { + "type": "string" + }, + "type": "array" + }, + "phraseMatchers": { + "description": "The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}", + "items": { + "type": "string" + }, + "type": "array" + }, + "qaConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig", + "description": "Configuration for the QA annotator." + }, + "runEntityAnnotator": { + "description": "Whether to run the entity annotator.", + "type": "boolean" + }, + "runIntentAnnotator": { + "description": "Whether to run the intent annotator.", + "type": "boolean" + }, + "runInterruptionAnnotator": { + "description": "Whether to run the interruption annotator.", + "type": "boolean" + }, + "runIssueModelAnnotator": { + "description": "Whether to run the issue model annotator. A model should have already been deployed for this to take effect.", + "type": "boolean" + }, + "runPhraseMatcherAnnotator": { + "description": "Whether to run the active phrase matcher annotator(s).", + "type": "boolean" + }, + "runQaAnnotator": { + "description": "Whether to run the QA annotator.", + "type": "boolean" + }, + "runSentimentAnnotator": { + "description": "Whether to run the sentiment annotator.", + "type": "boolean" + }, + "runSilenceAnnotator": { + "description": "Whether to run the silence annotator.", + "type": "boolean" + }, + "runSummarizationAnnotator": { + "description": "Whether to run the summarization annotator.", + "type": "boolean" + }, + "summarizationConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig", + "description": "Configuration for the summarization annotator." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig": { + "description": "Configuration for the QA feature.", + "id": "GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig", + "properties": { + "scorecardList": { + "$ref": "GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList", + "description": "A manual list of scorecards to score." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList": { + "description": "Container for a list of scorecards.", + "id": "GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList", + "properties": { + "qaScorecardRevisions": { + "description": "List of QaScorecardRevisions.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig": { + "description": "Configuration for summarization.", + "id": "GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig", + "properties": { + "conversationProfile": { + "description": "Resource name of the Dialogflow conversation profile. Format: projects/{project}/locations/{location}/conversationProfiles/{conversation_profile}", + "type": "string" + }, + "summarizationModel": { + "description": "Default summarization model to be used.", + "enum": [ + "SUMMARIZATION_MODEL_UNSPECIFIED", + "BASELINE_MODEL", + "BASELINE_MODEL_V2_0" + ], + "enumDescriptions": [ + "Unspecified summarization model.", + "The CCAI baseline model.", + "The CCAI baseline model, V2.0." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AnswerFeedback": { + "description": "The feedback that the customer has about a certain answer in the conversation.", + "id": "GoogleCloudContactcenterinsightsV1AnswerFeedback", + "properties": { + "clicked": { + "description": "Indicates whether an answer or item was clicked by the human agent.", + "type": "boolean" + }, + "correctnessLevel": { + "description": "The correctness level of an answer.", + "enum": [ + "CORRECTNESS_LEVEL_UNSPECIFIED", + "NOT_CORRECT", + "PARTIALLY_CORRECT", + "FULLY_CORRECT" + ], + "enumDescriptions": [ + "Correctness level unspecified.", + "Answer is totally wrong.", + "Answer is partially correct.", + "Answer is fully correct." + ], + "type": "string" + }, + "displayed": { + "description": "Indicates whether an answer or item was displayed to the human agent in the agent desktop UI.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ArticleSuggestionData": { + "description": "Agent Assist Article Suggestion data.", + "id": "GoogleCloudContactcenterinsightsV1ArticleSuggestionData", + "properties": { + "confidenceScore": { + "description": "The system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).", + "format": "float", + "type": "number" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Map that contains metadata about the Article Suggestion and the document that it originates from.", + "type": "object" + }, + "queryRecord": { + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", + "type": "string" + }, + "source": { + "description": "The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}", + "type": "string" + }, + "title": { + "description": "Article title.", + "type": "string" + }, + "uri": { + "description": "Article URI.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsMetadata": { + "description": "The metadata for a bulk analyze conversations operation.", + "id": "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsMetadata", + "properties": { + "completedAnalysesCount": { + "description": "The number of requested analyses that have completed successfully so far.", + "format": "int32", + "type": "integer" + }, + "createTime": { + "description": "The time the operation was created.", + "format": "google-datetime", + "type": "string" + }, + "endTime": { + "description": "The time the operation finished running.", + "format": "google-datetime", + "type": "string" + }, + "failedAnalysesCount": { + "description": "The number of requested analyses that have failed so far.", + "format": "int32", + "type": "integer" + }, + "partialErrors": { + "description": "Output only. Partial errors during bulk analyze operation that might cause the operation output to be incomplete.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "readOnly": true, + "type": "array" + }, + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest", + "description": "The original request for bulk analyze." + }, + "totalRequestedAnalysesCount": { + "description": "Total number of analyses requested. Computed by the number of conversations returned by `filter` multiplied by `analysis_percentage` in the request.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest": { + "description": "The request to analyze conversations in bulk.", + "id": "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest", + "properties": { + "analysisPercentage": { + "description": "Required. Percentage of selected conversation to analyze, between [0, 100].", + "format": "float", + "type": "number" + }, + "annotatorSelector": { + "$ref": "GoogleCloudContactcenterinsightsV1AnnotatorSelector", + "description": "To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run." + }, + "filter": { + "description": "Required. Filter used to select the subset of conversations to analyze.", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource to create analyses in.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsResponse": { + "description": "The response for a bulk analyze conversations operation.", + "id": "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsResponse", + "properties": { + "failedAnalysisCount": { + "description": "Count of failed analyses.", + "format": "int32", + "type": "integer" + }, + "successfulAnalysisCount": { + "description": "Count of successful analyses.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata": { + "description": "The metadata for a bulk delete conversations operation.", + "id": "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata", + "properties": { + "createTime": { + "description": "The time the operation was created.", + "format": "google-datetime", + "type": "string" + }, + "endTime": { + "description": "The time the operation finished running.", + "format": "google-datetime", + "type": "string" + }, + "partialErrors": { + "description": "Partial errors during bulk delete conversations operation that might cause the operation output to be incomplete.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest", + "description": "The original request for bulk delete." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest": { + "description": "The request to delete conversations in bulk.", + "id": "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest", + "properties": { + "filter": { + "description": "Filter used to select the subset of conversations to delete.", + "type": "string" + }, + "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.", + "type": "boolean" + }, + "maxDeleteCount": { + "description": "Maximum number of conversations to delete.", + "format": "int32", + "type": "integer" + }, + "parent": { + "description": "Required. The parent resource to delete conversations from. Format: projects/{project}/locations/{location}", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse": { + "description": "The response for a bulk delete conversations operation.", + "id": "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata": { + "description": "Metadata for the BulkDownloadFeedbackLabel endpoint.", + "id": "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata", + "properties": { + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "downloadStats": { + "$ref": "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats", + "description": "Output only. Statistics for BulkDownloadFeedbackLabels operation.", + "readOnly": true + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "partialErrors": { + "description": "Partial errors during ingest operation that might cause the operation output to be incomplete.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest", + "description": "Output only. The original request for download.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats": { + "description": "Statistics for BulkDownloadFeedbackLabels operation.", + "id": "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats", + "properties": { + "fileNames": { + "description": "Output only. Full name of the files written to Cloud storage.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "processedObjectCount": { + "description": "The number of objects processed during the download operation.", + "format": "int32", + "type": "integer" + }, + "successfulDownloadCount": { + "description": "The number of new feedback labels downloaded during this operation. Different from \"processed\" because some labels might not be downloaded because an error.", + "format": "int32", + "type": "integer" + }, + "totalFilesWritten": { + "description": "Total number of files written to the provided Cloud Storage bucket.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest": { + "description": "Request for the BulkDownloadFeedbackLabel endpoint.", + "id": "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest", + "properties": { + "conversationFilter": { + "description": "Optional. Filter parent conversations to download feedback labels for. When specified, the feedback labels will be downloaded for the conversations that match the filter. If `template_qa_scorecard_id` is set, all the conversations that match the filter will be paired with the questions under the scorecard for labeling.", + "type": "string" + }, + "feedbackLabelType": { + "description": "Optional. The type of feedback labels that will be downloaded.", + "enum": [ + "FEEDBACK_LABEL_TYPE_UNSPECIFIED", + "QUALITY_AI", + "TOPIC_MODELING" + ], + "enumDescriptions": [ + "Unspecified format", + "Downloaded file will contain all Quality AI labels from the latest scorecard revision.", + "Downloaded file will contain only Topic Modeling labels." + ], + "type": "string" + }, + "filter": { + "description": "Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) and conjunctions (AND). 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", + "type": "string" + }, + "gcsDestination": { + "$ref": "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination", + "description": "A cloud storage bucket destination." + }, + "maxDownloadCount": { + "description": "Optional. Limits the maximum number of feedback labels that will be downloaded. The first `N` feedback labels will be downloaded.", + "format": "int32", + "type": "integer" + }, + "parent": { + "description": "Required. The parent resource for new feedback labels.", + "type": "string" + }, + "templateQaScorecardId": { + "description": "Optional. If set, a template for labeling conversations and scorecard questions will be created from the conversation_filter and the questions under the scorecard(s). The feedback label `filter` will be ignored.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination": { + "description": "Google Cloud Storage Object details to write the feedback labels to.", + "id": "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination", + "properties": { + "addWhitespace": { + "description": "Optional. Add whitespace to the JSON file. Makes easier to read, but increases file size. Only applicable for JSON format.", + "type": "boolean" + }, + "alwaysPrintEmptyFields": { + "description": "Optional. Always print fields with no presence. This is useful for printing fields that are not set, like implicit 0 value or empty lists/maps. Only applicable for JSON format.", + "type": "boolean" + }, + "format": { + "description": "Required. File format in which the labels will be exported.", + "enum": [ + "FORMAT_UNSPECIFIED", + "CSV", + "JSON" + ], + "enumDescriptions": [ + "Unspecified format.", + "CSV format. 1,000 labels are stored per CSV file by default.", + "JSON format. 1 label stored per JSON file by default." + ], + "type": "string" + }, + "objectUri": { + "description": "Required. The Google Cloud Storage URI to write the feedback labels to. The file name will be used as a prefix for the files written to the bucket if the output needs to be split across multiple files, otherwise it will be used as is. The file extension will be appended to the file name based on the format selected. E.g. `gs://bucket_name/object_uri_prefix`", + "type": "string" + }, + "recordsPerFileCount": { + "description": "Optional. The number of records per file. Applicable for either format.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse": { + "description": "Response for the BulkDownloadFeedbackLabel endpoint.", + "id": "GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest": { + "description": "The request for bulk uploading feedback labels.", + "id": "GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest", + "properties": { + "gcsSource": { + "$ref": "GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource", + "description": "A cloud storage bucket source." + }, + "validateOnly": { + "description": "Optional. If set, upload will not happen and the labels will be validated. If not set, then default behavior will be to upload the labels after validation is complete.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource": { + "description": "Google Cloud Storage Object details to get the feedback label file from.", + "id": "GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource", + "properties": { + "format": { + "description": "Required. File format which will be ingested.", + "enum": [ + "FORMAT_UNSPECIFIED", + "CSV", + "JSON" + ], + "enumDescriptions": [ + "Unspecified format.", + "CSV format.", + "JSON format." + ], + "type": "string" + }, + "objectUri": { + "description": "Required. The Google Cloud Storage URI of the file to import. Format: `gs://bucket_name/object_name`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse": { + "description": "Response of querying an issue model's statistics.", + "id": "GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse", + "properties": { + "currentStats": { + "$ref": "GoogleCloudContactcenterinsightsV1IssueModelLabelStats", + "description": "The latest label statistics for the queried issue model. Includes results on both training data and data labeled after deployment." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1CalculateStatsResponse": { + "description": "The response for calculating conversation statistics.", + "id": "GoogleCloudContactcenterinsightsV1CalculateStatsResponse", + "properties": { + "averageDuration": { + "description": "The average duration of all conversations. The average is calculated using only conversations that have a time duration.", + "format": "google-duration", + "type": "string" }, - "annotatorSelector": { - "$ref": "GoogleCloudContactcenterinsightsV1AnnotatorSelector", - "description": "To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run." + "averageTurnCount": { + "description": "The average number of turns per conversation.", + "format": "int32", + "type": "integer" }, - "createTime": { - "description": "Output only. The time at which the analysis was created, which occurs when the long-running operation completes.", - "format": "google-datetime", - "readOnly": true, - "type": "string" + "conversationCount": { + "description": "The total number of conversations.", + "format": "int32", + "type": "integer" }, - "name": { - "description": "Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}", - "type": "string" + "conversationCountTimeSeries": { + "$ref": "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries", + "description": "A time series representing the count of conversations created over time that match that requested filter criteria." }, - "requestTime": { - "description": "Output only. The time at which the analysis was requested.", - "format": "google-datetime", - "readOnly": true, + "customHighlighterMatches": { + "additionalProperties": { + "format": "int32", + "type": "integer" + }, + "description": "A map associating each custom highlighter resource name with its respective number of matches in the set of conversations.", + "type": "object" + }, + "issueMatches": { + "additionalProperties": { + "format": "int32", + "type": "integer" + }, + "deprecated": true, + "description": "A map associating each issue resource name with its respective number of matches in the set of conversations. Key has the format: `projects//locations//issueModels//issues/` Deprecated, use `issue_matches_stats` field instead.", + "type": "object" + }, + "issueMatchesStats": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats" + }, + "description": "A map associating each issue resource name with its respective number of matches in the set of conversations. Key has the format: `projects//locations//issueModels//issues/`", + "type": "object" + }, + "smartHighlighterMatches": { + "additionalProperties": { + "format": "int32", + "type": "integer" + }, + "description": "A map associating each smart highlighter display name with its respective number of matches in the set of conversations.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries": { + "description": "A time series representing conversations over time.", + "id": "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries", + "properties": { + "intervalDuration": { + "description": "The duration of each interval.", + "format": "google-duration", "type": "string" + }, + "points": { + "description": "An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1AnalysisResult": { - "description": "The result of an analysis.", - "id": "GoogleCloudContactcenterinsightsV1AnalysisResult", + "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval": { + "description": "A single interval in a time series.", + "id": "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval", "properties": { - "callAnalysisMetadata": { - "$ref": "GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata", - "description": "Call-specific metadata created by the analysis." + "conversationCount": { + "description": "The number of conversations created in this interval.", + "format": "int32", + "type": "integer" }, - "endTime": { - "description": "The time at which the analysis ended.", + "startTime": { + "description": "The start time of this interval.", "format": "google-datetime", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata": { - "description": "Call-specific metadata created during analysis.", - "id": "GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata", + "GoogleCloudContactcenterinsightsV1CallAnnotation": { + "description": "A piece of metadata that applies to a window of a call.", + "id": "GoogleCloudContactcenterinsightsV1CallAnnotation", "properties": { - "annotations": { - "description": "A list of call annotations that apply to this call.", - "items": { - "$ref": "GoogleCloudContactcenterinsightsV1CallAnnotation" - }, - "type": "array" + "annotationEndBoundary": { + "$ref": "GoogleCloudContactcenterinsightsV1AnnotationBoundary", + "description": "The boundary in the conversation where the annotation ends, inclusive." }, - "entities": { - "additionalProperties": { - "$ref": "GoogleCloudContactcenterinsightsV1Entity" - }, - "description": "All the entities in the call.", - "type": "object" + "annotationStartBoundary": { + "$ref": "GoogleCloudContactcenterinsightsV1AnnotationBoundary", + "description": "The boundary in the conversation where the annotation starts, inclusive." }, - "intents": { + "channelTag": { + "description": "The channel of the audio where the annotation occurs. For single-channel audio, this field is not populated.", + "format": "int32", + "type": "integer" + }, + "entityMentionData": { + "$ref": "GoogleCloudContactcenterinsightsV1EntityMentionData", + "description": "Data specifying an entity mention." + }, + "holdData": { + "$ref": "GoogleCloudContactcenterinsightsV1HoldData", + "description": "Data specifying a hold." + }, + "intentMatchData": { + "$ref": "GoogleCloudContactcenterinsightsV1IntentMatchData", + "description": "Data specifying an intent match." + }, + "interruptionData": { + "$ref": "GoogleCloudContactcenterinsightsV1InterruptionData", + "description": "Data specifying an interruption." + }, + "issueMatchData": { + "$ref": "GoogleCloudContactcenterinsightsV1IssueMatchData", + "description": "Data specifying an issue match." + }, + "phraseMatchData": { + "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatchData", + "description": "Data specifying a phrase match." + }, + "sentimentData": { + "$ref": "GoogleCloudContactcenterinsightsV1SentimentData", + "description": "Data specifying sentiment." + }, + "silenceData": { + "$ref": "GoogleCloudContactcenterinsightsV1SilenceData", + "description": "Data specifying silence." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1Conversation": { + "description": "The conversation resource.", + "id": "GoogleCloudContactcenterinsightsV1Conversation", + "properties": { + "agentId": { + "description": "An opaque, user-specified string representing the human agent who handled the conversation.", + "type": "string" + }, + "callMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationCallMetadata", + "description": "Call-specific metadata." + }, + "createTime": { + "description": "Output only. The time at which the conversation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "dataSource": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationDataSource", + "description": "The source of the audio and transcription for the conversation." + }, + "dialogflowIntents": { "additionalProperties": { - "$ref": "GoogleCloudContactcenterinsightsV1Intent" + "$ref": "GoogleCloudContactcenterinsightsV1DialogflowIntent" }, - "description": "All the matched intents in the call.", + "description": "Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent}", + "readOnly": true, "type": "object" }, - "issueModelResult": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueModelResult", - "description": "Overall conversation-level issue modeling result." + "duration": { + "description": "Output only. The duration of the conversation.", + "format": "google-duration", + "readOnly": true, + "type": "string" }, - "phraseMatchers": { + "expireTime": { + "description": "The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted.", + "format": "google-datetime", + "type": "string" + }, + "labels": { "additionalProperties": { - "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatchData" + "type": "string" }, - "description": "All the matched phrase matchers in the call.", + "description": "A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry.", "type": "object" }, - "sentiments": { - "description": "Overall conversation-level sentiment for each channel of the call.", + "languageCode": { + "description": "A user-specified language code for the conversation.", + "type": "string" + }, + "latestAnalysis": { + "$ref": "GoogleCloudContactcenterinsightsV1Analysis", + "description": "Output only. The conversation's latest analysis, if one exists.", + "readOnly": true + }, + "latestSummary": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData", + "description": "Output only. Latest summary of the conversation.", + "readOnly": true + }, + "medium": { + "description": "Immutable. The conversation medium, if unspecified will default to PHONE_CALL.", + "enum": [ + "MEDIUM_UNSPECIFIED", + "PHONE_CALL", + "CHAT" + ], + "enumDescriptions": [ + "Default value, if unspecified will default to PHONE_CALL.", + "The format for conversations that took place over the phone.", + "The format for conversations that took place over chat." + ], + "type": "string" + }, + "metadataJson": { + "description": "Input only. JSON metadata encoded as a string. This field is primarily used by Insights integrations with various telphony systems and must be in one of Insight's supported formats.", + "type": "string" + }, + "name": { + "description": "Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation}", + "type": "string" + }, + "obfuscatedUserId": { + "description": "Obfuscated user ID which the customer sent to us.", + "type": "string" + }, + "qualityMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadata", + "description": "Conversation metadata related to quality management." + }, + "runtimeAnnotations": { + "description": "Output only. The annotations that were generated during the customer and agent interaction.", "items": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationLevelSentiment" + "$ref": "GoogleCloudContactcenterinsightsV1RuntimeAnnotation" }, + "readOnly": true, "type": "array" }, - "silence": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationLevelSilence", - "description": "Overall conversation-level silence during the call." + "startTime": { + "description": "The time at which the conversation started.", + "format": "google-datetime", + "type": "string" + }, + "transcript": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationTranscript", + "description": "Output only. The conversation transcript.", + "readOnly": true + }, + "ttl": { + "description": "Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time.", + "format": "google-duration", + "type": "string" + }, + "turnCount": { + "description": "Output only. The number of turns in the conversation.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "updateTime": { + "description": "Output only. The most recent time at which the conversation was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1AnnotationBoundary": { - "description": "A point in a conversation that marks the start or the end of an annotation.", - "id": "GoogleCloudContactcenterinsightsV1AnnotationBoundary", + "GoogleCloudContactcenterinsightsV1ConversationCallMetadata": { + "description": "Call-specific metadata.", + "id": "GoogleCloudContactcenterinsightsV1ConversationCallMetadata", "properties": { - "transcriptIndex": { - "description": "The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero.", + "agentChannel": { + "description": "The audio channel that contains the agent.", "format": "int32", "type": "integer" }, - "wordIndex": { - "description": "The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero.", + "customerChannel": { + "description": "The audio channel that contains the customer.", "format": "int32", "type": "integer" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1AnnotatorSelector": { - "description": "Selector of all available annotators and phrase matchers to run.", - "id": "GoogleCloudContactcenterinsightsV1AnnotatorSelector", + "GoogleCloudContactcenterinsightsV1ConversationDataSource": { + "description": "The conversation source, which is a combination of transcript and audio.", + "id": "GoogleCloudContactcenterinsightsV1ConversationDataSource", "properties": { - "issueModels": { - "description": "The issue model to run. If not provided, the most recently deployed topic model will be used. The provided issue model will only be used for inference if the issue model is deployed and if run_issue_model_annotator is set to true. If more than one issue model is provided, only the first provided issue model will be used for inference.", - "items": { - "type": "string" - }, - "type": "array" - }, - "phraseMatchers": { - "description": "The list of phrase matchers to run. If not provided, all active phrase matchers will be used. If inactive phrase matchers are provided, they will not be used. Phrase matchers will be run only if run_phrase_matcher_annotator is set to true. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}", - "items": { - "type": "string" - }, - "type": "array" - }, - "runEntityAnnotator": { - "description": "Whether to run the entity annotator.", - "type": "boolean" - }, - "runIntentAnnotator": { - "description": "Whether to run the intent annotator.", - "type": "boolean" - }, - "runInterruptionAnnotator": { - "description": "Whether to run the interruption annotator.", - "type": "boolean" - }, - "runIssueModelAnnotator": { - "description": "Whether to run the issue model annotator. A model should have already been deployed for this to take effect.", - "type": "boolean" - }, - "runPhraseMatcherAnnotator": { - "description": "Whether to run the active phrase matcher annotator(s).", - "type": "boolean" - }, - "runSentimentAnnotator": { - "description": "Whether to run the sentiment annotator.", - "type": "boolean" - }, - "runSilenceAnnotator": { - "description": "Whether to run the silence annotator.", - "type": "boolean" - }, - "runSummarizationAnnotator": { - "description": "Whether to run the summarization annotator.", - "type": "boolean" + "dialogflowSource": { + "$ref": "GoogleCloudContactcenterinsightsV1DialogflowSource", + "description": "The source when the conversation comes from Dialogflow." }, - "summarizationConfig": { - "$ref": "GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig", - "description": "Configuration for the summarization annotator." + "gcsSource": { + "$ref": "GoogleCloudContactcenterinsightsV1GcsSource", + "description": "A Cloud Storage location specification for the audio and transcript." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig": { - "description": "Configuration for summarization.", - "id": "GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig", + "GoogleCloudContactcenterinsightsV1ConversationLevelSentiment": { + "description": "One channel of conversation-level sentiment data.", + "id": "GoogleCloudContactcenterinsightsV1ConversationLevelSentiment", "properties": { - "conversationProfile": { - "description": "Resource name of the Dialogflow conversation profile. Format: projects/{project}/locations/{location}/conversationProfiles/{conversation_profile}", - "type": "string" + "channelTag": { + "description": "The channel of the audio that the data applies to.", + "format": "int32", + "type": "integer" }, - "summarizationModel": { - "description": "Default summarization model to be used.", - "enum": [ - "SUMMARIZATION_MODEL_UNSPECIFIED", - "BASELINE_MODEL", - "BASELINE_MODEL_V2_0" - ], - "enumDescriptions": [ - "Unspecified summarization model.", - "The CCAI baseline model.", - "The CCAI baseline model, V2.0." - ], - "type": "string" + "sentimentData": { + "$ref": "GoogleCloudContactcenterinsightsV1SentimentData", + "description": "Data specifying sentiment." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1AnswerFeedback": { - "description": "The feedback that the customer has about a certain answer in the conversation.", - "id": "GoogleCloudContactcenterinsightsV1AnswerFeedback", + "GoogleCloudContactcenterinsightsV1ConversationLevelSilence": { + "description": "Conversation-level silence data.", + "id": "GoogleCloudContactcenterinsightsV1ConversationLevelSilence", "properties": { - "clicked": { - "description": "Indicates whether an answer or item was clicked by the human agent.", - "type": "boolean" - }, - "correctnessLevel": { - "description": "The correctness level of an answer.", - "enum": [ - "CORRECTNESS_LEVEL_UNSPECIFIED", - "NOT_CORRECT", - "PARTIALLY_CORRECT", - "FULLY_CORRECT" - ], - "enumDescriptions": [ - "Correctness level unspecified.", - "Answer is totally wrong.", - "Answer is partially correct.", - "Answer is fully correct." - ], + "silenceDuration": { + "description": "Amount of time calculated to be in silence.", + "format": "google-duration", "type": "string" }, - "displayed": { - "description": "Indicates whether an answer or item was displayed to the human agent in the agent desktop UI.", - "type": "boolean" + "silencePercentage": { + "description": "Percentage of the total conversation spent in silence.", + "format": "float", + "type": "number" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ArticleSuggestionData": { - "description": "Agent Assist Article Suggestion data.", - "id": "GoogleCloudContactcenterinsightsV1ArticleSuggestionData", + "GoogleCloudContactcenterinsightsV1ConversationParticipant": { + "description": "The call participant speaking for a given utterance.", + "id": "GoogleCloudContactcenterinsightsV1ConversationParticipant", "properties": { - "confidenceScore": { - "description": "The system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).", - "format": "float", - "type": "number" - }, - "metadata": { - "additionalProperties": { - "type": "string" - }, - "description": "Map that contains metadata about the Article Suggestion and the document that it originates from.", - "type": "object" - }, - "queryRecord": { - "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", - "type": "string" - }, - "source": { - "description": "The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}", + "dialogflowParticipant": { + "deprecated": true, + "description": "Deprecated. Use `dialogflow_participant_name` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}", "type": "string" }, - "title": { - "description": "Article title.", + "dialogflowParticipantName": { + "description": "The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}", "type": "string" }, - "uri": { - "description": "Article URI.", + "obfuscatedExternalUserId": { + "description": "Obfuscated user ID from Dialogflow.", "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsMetadata": { - "description": "The metadata for a bulk analyze conversations operation.", - "id": "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsMetadata", - "properties": { - "completedAnalysesCount": { - "description": "The number of requested analyses that have completed successfully so far.", - "format": "int32", - "type": "integer" }, - "createTime": { - "description": "The time the operation was created.", - "format": "google-datetime", + "role": { + "description": "The role of the participant.", + "enum": [ + "ROLE_UNSPECIFIED", + "HUMAN_AGENT", + "AUTOMATED_AGENT", + "END_USER", + "ANY_AGENT" + ], + "enumDescriptions": [ + "Participant's role is not set.", + "Participant is a human agent.", + "Participant is an automated agent.", + "Participant is an end user who conversed with the contact center.", + "Participant is either a human or automated agent." + ], "type": "string" }, - "endTime": { - "description": "The time the operation finished running.", - "format": "google-datetime", + "userId": { + "description": "A user-specified ID representing the participant.", "type": "string" - }, - "failedAnalysesCount": { - "description": "The number of requested analyses that have failed so far.", - "format": "int32", - "type": "integer" - }, - "partialErrors": { - "description": "Output only. Partial errors during bulk analyze operation that might cause the operation output to be incomplete.", + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ConversationQualityMetadata": { + "description": "Conversation metadata related to quality management.", + "id": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadata", + "properties": { + "agentInfo": { + "description": "Information about agents involved in the call.", "items": { - "$ref": "GoogleRpcStatus" + "$ref": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo" }, - "readOnly": true, "type": "array" }, - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest", - "description": "The original request for bulk analyze." - }, - "totalRequestedAnalysesCount": { - "description": "Total number of analyses requested. Computed by the number of conversations returned by `filter` multiplied by `analysis_percentage` in the request.", + "customerSatisfactionRating": { + "description": "An arbitrary integer value indicating the customer's satisfaction rating.", "format": "int32", "type": "integer" + }, + "menuPath": { + "description": "An arbitrary string value specifying the menu path the customer took.", + "type": "string" + }, + "waitDuration": { + "description": "The amount of time the customer waited to connect with an agent.", + "format": "google-duration", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest": { - "description": "The request to analyze conversations in bulk.", - "id": "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest", + "GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo": { + "description": "Information about an agent involved in the conversation.", + "id": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo", "properties": { - "analysisPercentage": { - "description": "Required. Percentage of selected conversation to analyze, between [0, 100].", - "format": "float", - "type": "number" + "agentId": { + "description": "A user-specified string representing the agent.", + "type": "string" }, - "annotatorSelector": { - "$ref": "GoogleCloudContactcenterinsightsV1AnnotatorSelector", - "description": "To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run." + "displayName": { + "description": "The agent's name.", + "type": "string" }, - "filter": { - "description": "Required. Filter used to select the subset of conversations to analyze.", + "dispositionCode": { + "description": "A user-provided string indicating the outcome of the agent's segment of the call.", "type": "string" }, - "parent": { - "description": "Required. The parent resource to create analyses in.", + "team": { + "description": "A user-specified string representing the agent's team.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsResponse": { - "description": "The response for a bulk analyze conversations operation.", - "id": "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsResponse", + "GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData": { + "description": "Conversation summarization suggestion data.", + "id": "GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData", "properties": { - "failedAnalysisCount": { - "description": "Count of failed analyses.", - "format": "int32", - "type": "integer" + "answerRecord": { + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", + "type": "string" }, - "successfulAnalysisCount": { - "description": "Count of successful analyses.", - "format": "int32", - "type": "integer" + "confidence": { + "description": "The confidence score of the summarization.", + "format": "float", + "type": "number" + }, + "conversationModel": { + "description": "The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model}", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "A map that contains metadata about the summarization and the document from which it originates.", + "type": "object" + }, + "text": { + "description": "The summarization content that is concatenated into one string.", + "type": "string" + }, + "textSections": { + "additionalProperties": { + "type": "string" + }, + "description": "The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.", + "type": "object" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata": { - "description": "The metadata for a bulk delete conversations operation.", - "id": "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata", + "GoogleCloudContactcenterinsightsV1ConversationTranscript": { + "description": "A message representing the transcript of a conversation.", + "id": "GoogleCloudContactcenterinsightsV1ConversationTranscript", "properties": { - "createTime": { - "description": "The time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "endTime": { - "description": "The time the operation finished running.", - "format": "google-datetime", - "type": "string" - }, - "partialErrors": { - "description": "Partial errors during bulk delete conversations operation that might cause the operation output to be incomplete.", + "transcriptSegments": { + "description": "A list of sequential transcript segments that comprise the conversation.", "items": { - "$ref": "GoogleRpcStatus" + "$ref": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment" }, "type": "array" - }, - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest", - "description": "The original request for bulk delete." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest": { - "description": "The request to delete conversations in bulk.", - "id": "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest", + "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment": { + "description": "A segment of a full transcript.", + "id": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment", "properties": { - "filter": { - "description": "Filter used to select the subset of conversations to delete.", + "channelTag": { + "description": "For conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel. For audioChannelCount = N, its output values can range from '1' to 'N'. A channel tag of 0 indicates that the audio is mono.", + "format": "int32", + "type": "integer" + }, + "confidence": { + "description": "A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A default value of 0.0 indicates that the value is unset.", + "format": "float", + "type": "number" + }, + "dialogflowSegmentMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata", + "description": "CCAI metadata relating to the current transcript segment." + }, + "languageCode": { + "description": "The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: \"en-US\".", "type": "string" }, - "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.", - "type": "boolean" + "messageTime": { + "description": "The time that the message occurred, if provided.", + "format": "google-datetime", + "type": "string" }, - "maxDeleteCount": { - "description": "Maximum number of conversations to delete.", - "format": "int32", - "type": "integer" + "segmentParticipant": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationParticipant", + "description": "The participant of this segment." }, - "parent": { - "description": "Required. The parent resource to delete conversations from. Format: projects/{project}/locations/{location}", + "sentiment": { + "$ref": "GoogleCloudContactcenterinsightsV1SentimentData", + "description": "The sentiment for this transcript segment." + }, + "text": { + "description": "The text of this segment.", "type": "string" + }, + "words": { + "description": "A list of the word-specific information for each word in the segment.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse": { - "description": "The response for a bulk delete conversations operation.", - "id": "GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse": { - "description": "Response of querying an issue model's statistics.", - "id": "GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse", + "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata": { + "description": "Metadata from Dialogflow relating to the current transcript segment.", + "id": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata", "properties": { - "currentStats": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueModelLabelStats", - "description": "The latest label statistics for the queried issue model. Includes results on both training data and data labeled after deployment." + "smartReplyAllowlistCovered": { + "description": "Whether the transcript segment was covered under the configured smart reply allowlist in Agent Assist.", + "type": "boolean" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1CalculateStatsResponse": { - "description": "The response for calculating conversation statistics.", - "id": "GoogleCloudContactcenterinsightsV1CalculateStatsResponse", + "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo": { + "description": "Word-level info for words in a transcript.", + "id": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo", "properties": { - "averageDuration": { - "description": "The average duration of all conversations. The average is calculated using only conversations that have a time duration.", + "confidence": { + "description": "A confidence estimate between 0.0 and 1.0 of the fidelity of this word. A default value of 0.0 indicates that the value is unset.", + "format": "float", + "type": "number" + }, + "endOffset": { + "description": "Time offset of the end of this word relative to the beginning of the total conversation.", "format": "google-duration", "type": "string" }, - "averageTurnCount": { - "description": "The average number of turns per conversation.", - "format": "int32", - "type": "integer" - }, - "conversationCount": { - "description": "The total number of conversations.", - "format": "int32", - "type": "integer" - }, - "conversationCountTimeSeries": { - "$ref": "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries", - "description": "A time series representing the count of conversations created over time that match that requested filter criteria." - }, - "customHighlighterMatches": { - "additionalProperties": { - "format": "int32", - "type": "integer" - }, - "description": "A map associating each custom highlighter resource name with its respective number of matches in the set of conversations.", - "type": "object" - }, - "issueMatches": { - "additionalProperties": { - "format": "int32", - "type": "integer" - }, - "deprecated": true, - "description": "A map associating each issue resource name with its respective number of matches in the set of conversations. Key has the format: `projects//locations//issueModels//issues/` Deprecated, use `issue_matches_stats` field instead.", - "type": "object" - }, - "issueMatchesStats": { - "additionalProperties": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats" - }, - "description": "A map associating each issue resource name with its respective number of matches in the set of conversations. Key has the format: `projects//locations//issueModels//issues/`", - "type": "object" - }, - "smartHighlighterMatches": { - "additionalProperties": { - "format": "int32", - "type": "integer" - }, - "description": "A map associating each smart highlighter display name with its respective number of matches in the set of conversations.", - "type": "object" + "startOffset": { + "description": "Time offset of the start of this word relative to the beginning of the total conversation.", + "format": "google-duration", + "type": "string" + }, + "word": { + "description": "The word itself. Includes punctuation marks that surround the word.", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries": { - "description": "A time series representing conversations over time.", - "id": "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries", + "GoogleCloudContactcenterinsightsV1CreateAnalysisOperationMetadata": { + "description": "Metadata for a create analysis operation.", + "id": "GoogleCloudContactcenterinsightsV1CreateAnalysisOperationMetadata", "properties": { - "intervalDuration": { - "description": "The duration of each interval.", - "format": "google-duration", + "annotatorSelector": { + "$ref": "GoogleCloudContactcenterinsightsV1AnnotatorSelector", + "description": "Output only. The annotator selector used for the analysis (if any).", + "readOnly": true + }, + "conversation": { + "description": "Output only. The Conversation that this Analysis Operation belongs to.", + "readOnly": true, "type": "string" }, - "points": { - "description": "An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.", - "items": { - "$ref": "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval" - }, - "type": "array" + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval": { - "description": "A single interval in a time series.", - "id": "GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval", + "GoogleCloudContactcenterinsightsV1CreateIssueModelMetadata": { + "description": "Metadata for creating an issue model.", + "id": "GoogleCloudContactcenterinsightsV1CreateIssueModelMetadata", "properties": { - "conversationCount": { - "description": "The number of conversations created in this interval.", - "format": "int32", - "type": "integer" + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" }, - "startTime": { - "description": "The start time of this interval.", + "endTime": { + "description": "Output only. The time the operation finished running.", "format": "google-datetime", + "readOnly": true, "type": "string" + }, + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1CreateIssueModelRequest", + "description": "The original request for creation." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1CallAnnotation": { - "description": "A piece of metadata that applies to a window of a call.", - "id": "GoogleCloudContactcenterinsightsV1CallAnnotation", + "GoogleCloudContactcenterinsightsV1CreateIssueModelRequest": { + "description": "The request to create an issue model.", + "id": "GoogleCloudContactcenterinsightsV1CreateIssueModelRequest", "properties": { - "annotationEndBoundary": { - "$ref": "GoogleCloudContactcenterinsightsV1AnnotationBoundary", - "description": "The boundary in the conversation where the annotation ends, inclusive." - }, - "annotationStartBoundary": { - "$ref": "GoogleCloudContactcenterinsightsV1AnnotationBoundary", - "description": "The boundary in the conversation where the annotation starts, inclusive." - }, - "channelTag": { - "description": "The channel of the audio where the annotation occurs. For single-channel audio, this field is not populated.", - "format": "int32", - "type": "integer" - }, - "entityMentionData": { - "$ref": "GoogleCloudContactcenterinsightsV1EntityMentionData", - "description": "Data specifying an entity mention." - }, - "holdData": { - "$ref": "GoogleCloudContactcenterinsightsV1HoldData", - "description": "Data specifying a hold." - }, - "intentMatchData": { - "$ref": "GoogleCloudContactcenterinsightsV1IntentMatchData", - "description": "Data specifying an intent match." - }, - "interruptionData": { - "$ref": "GoogleCloudContactcenterinsightsV1InterruptionData", - "description": "Data specifying an interruption." - }, - "issueMatchData": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueMatchData", - "description": "Data specifying an issue match." - }, - "phraseMatchData": { - "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatchData", - "description": "Data specifying a phrase match." - }, - "sentimentData": { - "$ref": "GoogleCloudContactcenterinsightsV1SentimentData", - "description": "Data specifying sentiment." + "issueModel": { + "$ref": "GoogleCloudContactcenterinsightsV1IssueModel", + "description": "Required. The issue model to create." }, - "silenceData": { - "$ref": "GoogleCloudContactcenterinsightsV1SilenceData", - "description": "Data specifying silence." + "parent": { + "description": "Required. The parent resource of the issue model.", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1Conversation": { - "description": "The conversation resource.", - "id": "GoogleCloudContactcenterinsightsV1Conversation", + "GoogleCloudContactcenterinsightsV1DeleteIssueModelMetadata": { + "description": "Metadata for deleting an issue model.", + "id": "GoogleCloudContactcenterinsightsV1DeleteIssueModelMetadata", "properties": { - "agentId": { - "description": "An opaque, user-specified string representing the human agent who handled the conversation.", - "type": "string" - }, - "callMetadata": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationCallMetadata", - "description": "Call-specific metadata." - }, "createTime": { - "description": "Output only. The time at which the conversation was created.", + "description": "Output only. The time the operation was created.", "format": "google-datetime", "readOnly": true, "type": "string" }, - "dataSource": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationDataSource", - "description": "The source of the audio and transcription for the conversation." - }, - "dialogflowIntents": { - "additionalProperties": { - "$ref": "GoogleCloudContactcenterinsightsV1DialogflowIntent" - }, - "description": "Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent}", + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", "readOnly": true, - "type": "object" + "type": "string" }, - "duration": { - "description": "Output only. The duration of the conversation.", - "format": "google-duration", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1DeleteIssueModelRequest", + "description": "The original request for deletion." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1DeleteIssueModelRequest": { + "description": "The request to delete an issue model.", + "id": "GoogleCloudContactcenterinsightsV1DeleteIssueModelRequest", + "properties": { + "name": { + "description": "Required. The name of the issue model to delete.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1DeployIssueModelMetadata": { + "description": "Metadata for deploying an issue model.", + "id": "GoogleCloudContactcenterinsightsV1DeployIssueModelMetadata", + "properties": { + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", "readOnly": true, "type": "string" }, - "expireTime": { - "description": "The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted.", + "endTime": { + "description": "Output only. The time the operation finished running.", "format": "google-datetime", + "readOnly": true, "type": "string" }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry.", - "type": "object" - }, - "languageCode": { - "description": "A user-specified language code for the conversation.", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1DeployIssueModelRequest", + "description": "The original request for deployment." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1DeployIssueModelRequest": { + "description": "The request to deploy an issue model.", + "id": "GoogleCloudContactcenterinsightsV1DeployIssueModelRequest", + "properties": { + "name": { + "description": "Required. The issue model to deploy.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1DeployIssueModelResponse": { + "description": "The response to deploy an issue model.", + "id": "GoogleCloudContactcenterinsightsV1DeployIssueModelResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest": { + "description": "The request to deploy a QaScorecardRevision", + "id": "GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1DialogflowIntent": { + "description": "The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE.", + "id": "GoogleCloudContactcenterinsightsV1DialogflowIntent", + "properties": { + "displayName": { + "description": "The human-readable name of the intent.", "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1DialogflowInteractionData": { + "description": "Dialogflow interaction data.", + "id": "GoogleCloudContactcenterinsightsV1DialogflowInteractionData", + "properties": { + "confidence": { + "description": "The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain).", + "format": "float", + "type": "number" }, - "latestAnalysis": { - "$ref": "GoogleCloudContactcenterinsightsV1Analysis", - "description": "Output only. The conversation's latest analysis, if one exists.", - "readOnly": true + "dialogflowIntentId": { + "description": "The Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent}", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1DialogflowSource": { + "description": "A Dialogflow source of conversation data.", + "id": "GoogleCloudContactcenterinsightsV1DialogflowSource", + "properties": { + "audioUri": { + "description": "Cloud Storage URI that points to a file that contains the conversation audio.", + "type": "string" }, - "latestSummary": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData", - "description": "Output only. Latest summary of the conversation.", + "dialogflowConversation": { + "description": "Output only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation}", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1Dimension": { + "description": "A dimension determines the grouping key for the query. In SQL terms, these would be part of both the \"SELECT\" and \"GROUP BY\" clauses.", + "id": "GoogleCloudContactcenterinsightsV1Dimension", + "properties": { + "agentDimensionMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata", + "description": "Output only. Metadata about the agent dimension.", "readOnly": true }, - "medium": { - "description": "Immutable. The conversation medium, if unspecified will default to PHONE_CALL.", + "dimensionKey": { + "description": "The key of the dimension.", "enum": [ - "MEDIUM_UNSPECIFIED", - "PHONE_CALL", - "CHAT" + "DIMENSION_KEY_UNSPECIFIED", + "ISSUE", + "AGENT", + "AGENT_TEAM", + "QA_QUESTION_ID", + "QA_QUESTION_ANSWER_VALUE", + "CONVERSATION_PROFILE_ID" ], "enumDescriptions": [ - "Default value, if unspecified will default to PHONE_CALL.", - "The format for conversations that took place over the phone.", - "The format for conversations that took place over chat." + "The key of the dimension is unspecified.", + "The dimension is keyed by issues.", + "The dimension is keyed by agents.", + "The dimension is keyed by agent teams.", + "The dimension is keyed by QaQuestionIds. Note that: We only group by the QuestionId and not the revision-id of the scorecard this question is a part of. This allows for showing stats for the same question across different scorecard revisions.", + "The dimension is keyed by QaQuestionIds-Answer value pairs. Note that: We only group by the QuestionId and not the revision-id of the scorecard this question is a part of. This allows for showing distribution of answers per question across different scorecard revisions.", + "The dimension is keyed by the conversation profile ID." ], "type": "string" }, - "metadataJson": { - "description": "Input only. JSON metadata encoded as a string. This field is primarily used by Insights integrations with various telphony systems and must be in one of Insight's supported formats.", - "type": "string" + "issueDimensionMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata", + "description": "Output only. Metadata about the issue dimension.", + "readOnly": true }, - "name": { - "description": "Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation}", - "type": "string" + "qaQuestionAnswerDimensionMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata", + "description": "Output only. Metadata about the QA question-answer dimension.", + "readOnly": true }, - "obfuscatedUserId": { - "description": "Obfuscated user ID which the customer sent to us.", + "qaQuestionDimensionMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata", + "description": "Output only. Metadata about the QA question dimension.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata": { + "description": "Metadata about the agent dimension.", + "id": "GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata", + "properties": { + "agentDisplayName": { + "description": "Optional. The agent's name", "type": "string" }, - "qualityMetadata": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadata", - "description": "Conversation metadata related to quality management." - }, - "runtimeAnnotations": { - "description": "Output only. The annotations that were generated during the customer and agent interaction.", - "items": { - "$ref": "GoogleCloudContactcenterinsightsV1RuntimeAnnotation" - }, - "readOnly": true, - "type": "array" - }, - "startTime": { - "description": "The time at which the conversation started.", - "format": "google-datetime", + "agentId": { + "description": "Optional. A user-specified string representing the agent.", "type": "string" }, - "transcript": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationTranscript", - "description": "Output only. The conversation transcript.", - "readOnly": true - }, - "ttl": { - "description": "Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time.", - "format": "google-duration", + "agentTeam": { + "description": "Optional. A user-specified string representing the agent's team.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata": { + "description": "Metadata about the issue dimension.", + "id": "GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata", + "properties": { + "issueDisplayName": { + "description": "The issue display name.", "type": "string" }, - "turnCount": { - "description": "Output only. The number of turns in the conversation.", - "format": "int32", - "readOnly": true, - "type": "integer" + "issueId": { + "description": "The issue ID.", + "type": "string" }, - "updateTime": { - "description": "Output only. The most recent time at which the conversation was updated.", - "format": "google-datetime", - "readOnly": true, + "issueModelId": { + "description": "The parent issue model ID.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationCallMetadata": { - "description": "Call-specific metadata.", - "id": "GoogleCloudContactcenterinsightsV1ConversationCallMetadata", + "GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata": { + "description": "Metadata about the QA question-answer dimension. This is useful for showing the answer distribution for questions for a given scorecard.", + "id": "GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata", "properties": { - "agentChannel": { - "description": "The audio channel that contains the agent.", - "format": "int32", - "type": "integer" + "answerValue": { + "description": "Optional. The full body of the question.", + "type": "string" }, - "customerChannel": { - "description": "The audio channel that contains the customer.", - "format": "int32", - "type": "integer" + "qaQuestionId": { + "description": "Optional. The QA question ID.", + "type": "string" + }, + "qaScorecardId": { + "description": "Optional. The QA scorecard ID.", + "type": "string" + }, + "questionBody": { + "description": "Optional. The full body of the question.", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationDataSource": { - "description": "The conversation source, which is a combination of transcript and audio.", - "id": "GoogleCloudContactcenterinsightsV1ConversationDataSource", + "GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata": { + "description": "Metadata about the QA question dimension.", + "id": "GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata", "properties": { - "dialogflowSource": { - "$ref": "GoogleCloudContactcenterinsightsV1DialogflowSource", - "description": "The source when the conversation comes from Dialogflow." + "qaQuestionId": { + "description": "Optional. The QA question ID.", + "type": "string" }, - "gcsSource": { - "$ref": "GoogleCloudContactcenterinsightsV1GcsSource", - "description": "A Cloud Storage location specification for the audio and transcript." + "qaScorecardId": { + "description": "Optional. The QA scorecard ID.", + "type": "string" + }, + "questionBody": { + "description": "Optional. The full body of the question.", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationLevelSentiment": { - "description": "One channel of conversation-level sentiment data.", - "id": "GoogleCloudContactcenterinsightsV1ConversationLevelSentiment", + "GoogleCloudContactcenterinsightsV1EncryptionSpec": { + "description": "A customer-managed encryption key specification that can be applied to all created resources (e.g. `Conversation`).", + "id": "GoogleCloudContactcenterinsightsV1EncryptionSpec", "properties": { - "channelTag": { - "description": "The channel of the audio that the data applies to.", - "format": "int32", - "type": "integer" + "kmsKey": { + "description": "Required. The name of customer-managed encryption key that is used to secure a resource and its sub-resources. If empty, the resource is secured by our default encryption key. Only the key in the same location as this resource is allowed to be used for encryption. Format: `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`", + "type": "string" }, - "sentimentData": { - "$ref": "GoogleCloudContactcenterinsightsV1SentimentData", - "description": "Data specifying sentiment." + "name": { + "description": "Immutable. The resource name of the encryption key specification resource. Format: projects/{project}/locations/{location}/encryptionSpec", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationLevelSilence": { - "description": "Conversation-level silence data.", - "id": "GoogleCloudContactcenterinsightsV1ConversationLevelSilence", + "GoogleCloudContactcenterinsightsV1Entity": { + "description": "The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location.", + "id": "GoogleCloudContactcenterinsightsV1Entity", "properties": { - "silenceDuration": { - "description": "Amount of time calculated to be in silence.", - "format": "google-duration", + "displayName": { + "description": "The representative name for the entity.", "type": "string" }, - "silencePercentage": { - "description": "Percentage of the total conversation spent in silence.", + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.", + "type": "object" + }, + "salience": { + "description": "The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.", "format": "float", "type": "number" + }, + "sentiment": { + "$ref": "GoogleCloudContactcenterinsightsV1SentimentData", + "description": "The aggregate sentiment expressed for this entity in the conversation." + }, + "type": { + "description": "The entity type.", + "enum": [ + "TYPE_UNSPECIFIED", + "PERSON", + "LOCATION", + "ORGANIZATION", + "EVENT", + "WORK_OF_ART", + "CONSUMER_GOOD", + "OTHER", + "PHONE_NUMBER", + "ADDRESS", + "DATE", + "NUMBER", + "PRICE" + ], + "enumDescriptions": [ + "Unspecified.", + "Person.", + "Location.", + "Organization.", + "Event.", + "Artwork.", + "Consumer product.", + "Other types of entities.", + "Phone number. The metadata lists the phone number (formatted according to local convention), plus whichever additional elements appear in the text: * `number` - The actual number, broken down into sections according to local convention. * `national_prefix` - Country code, if detected. * `area_code` - Region or area code, if detected. * `extension` - Phone extension (to be dialed after connection), if detected.", + "Address. The metadata identifies the street number and locality plus whichever additional elements appear in the text: * `street_number` - Street number. * `locality` - City or town. * `street_name` - Street/route name, if detected. * `postal_code` - Postal code, if detected. * `country` - Country, if detected. * `broad_region` - Administrative area, such as the state, if detected. * `narrow_region` - Smaller administrative area, such as county, if detected. * `sublocality` - Used in Asian addresses to demark a district within a city, if detected.", + "Date. The metadata identifies the components of the date: * `year` - Four digit year, if detected. * `month` - Two digit month number, if detected. * `day` - Two digit day number, if detected.", + "Number. The metadata is the number itself.", + "Price. The metadata identifies the `value` and `currency`." + ], + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationParticipant": { - "description": "The call participant speaking for a given utterance.", - "id": "GoogleCloudContactcenterinsightsV1ConversationParticipant", + "GoogleCloudContactcenterinsightsV1EntityMentionData": { + "description": "The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation.", + "id": "GoogleCloudContactcenterinsightsV1EntityMentionData", "properties": { - "dialogflowParticipant": { - "deprecated": true, - "description": "Deprecated. Use `dialogflow_participant_name` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}", - "type": "string" - }, - "dialogflowParticipantName": { - "description": "The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}", + "entityUniqueId": { + "description": "The key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to.", "type": "string" }, - "obfuscatedExternalUserId": { - "description": "Obfuscated user ID from Dialogflow.", - "type": "string" + "sentiment": { + "$ref": "GoogleCloudContactcenterinsightsV1SentimentData", + "description": "Sentiment expressed for this mention of the entity." }, - "role": { - "description": "The role of the participant.", + "type": { + "description": "The type of the entity mention.", "enum": [ - "ROLE_UNSPECIFIED", - "HUMAN_AGENT", - "AUTOMATED_AGENT", - "END_USER", - "ANY_AGENT" + "MENTION_TYPE_UNSPECIFIED", + "PROPER", + "COMMON" ], "enumDescriptions": [ - "Participant's role is not set.", - "Participant is a human agent.", - "Participant is an automated agent.", - "Participant is an end user who conversed with the contact center.", - "Participant is either a human or automated agent." + "Unspecified.", + "Proper noun.", + "Common noun (or noun compound)." ], "type": "string" - }, - "userId": { - "description": "A user-specified ID representing the participant.", - "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationQualityMetadata": { - "description": "Conversation metadata related to quality management.", - "id": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadata", + "GoogleCloudContactcenterinsightsV1ExactMatchConfig": { + "description": "Exact match configuration.", + "id": "GoogleCloudContactcenterinsightsV1ExactMatchConfig", "properties": { - "agentInfo": { - "description": "Information about agents involved in the call.", + "caseSensitive": { + "description": "Whether to consider case sensitivity when performing an exact match.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata": { + "description": "Metadata for an export insights operation.", + "id": "GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata", + "properties": { + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "partialErrors": { + "description": "Partial errors during export operation that might cause the operation output to be incomplete.", "items": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo" + "$ref": "GoogleRpcStatus" }, "type": "array" }, - "customerSatisfactionRating": { - "description": "An arbitrary integer value indicating the customer's satisfaction rating.", - "format": "int32", - "type": "integer" - }, - "menuPath": { - "description": "An arbitrary string value specifying the menu path the customer took.", - "type": "string" - }, - "waitDuration": { - "description": "The amount of time the customer waited to connect with an agent.", - "format": "google-duration", - "type": "string" + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest", + "description": "The original request for export." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo": { - "description": "Information about an agent involved in the conversation.", - "id": "GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo", + "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest": { + "description": "The request to export insights.", + "id": "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest", "properties": { - "agentId": { - "description": "A user-specified string representing the agent.", + "bigQueryDestination": { + "$ref": "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDestination", + "description": "Specified if sink is a BigQuery table." + }, + "filter": { + "description": "A filter to reduce results to a specific subset. Useful for exporting conversations with specific properties.", "type": "string" }, - "displayName": { - "description": "The agent's name.", + "kmsKey": { + "description": "A fully qualified KMS key name for BigQuery tables protected by CMEK. Format: projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version}", "type": "string" }, - "dispositionCode": { - "description": "A user-provided string indicating the outcome of the agent's segment of the call.", + "parent": { + "description": "Required. The parent resource to export data from.", "type": "string" }, - "team": { - "description": "A user-specified string representing the agent's team.", + "writeDisposition": { + "description": "Options for what to do if the destination table already exists.", + "enum": [ + "WRITE_DISPOSITION_UNSPECIFIED", + "WRITE_TRUNCATE", + "WRITE_APPEND" + ], + "enumDescriptions": [ + "Write disposition is not specified. Defaults to WRITE_TRUNCATE.", + "If the table already exists, BigQuery will overwrite the table data and use the schema from the load.", + "If the table already exists, BigQuery will append data to the table." + ], "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData": { - "description": "Conversation summarization suggestion data.", - "id": "GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData", + "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDestination": { + "description": "A BigQuery Table Reference.", + "id": "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDestination", "properties": { - "answerRecord": { - "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", + "dataset": { + "description": "Required. The name of the BigQuery dataset that the snapshot result should be exported to. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.", "type": "string" }, - "confidence": { - "description": "The confidence score of the summarization.", - "format": "float", - "type": "number" - }, - "conversationModel": { - "description": "The name of the model that generates this summary. Format: projects/{project}/locations/{location}/conversationModels/{conversation_model}", + "projectId": { + "description": "A project ID or number. If specified, then export will attempt to write data to this project instead of the resource project. Otherwise, the resource project will be used.", "type": "string" }, - "metadata": { - "additionalProperties": { - "type": "string" - }, - "description": "A map that contains metadata about the summarization and the document from which it originates.", - "type": "object" - }, - "text": { - "description": "The summarization content that is concatenated into one string.", + "table": { + "description": "The BigQuery table name to which the insights data should be written. If this table does not exist, the export call returns an INVALID_ARGUMENT error.", "type": "string" - }, - "textSections": { - "additionalProperties": { - "type": "string" - }, - "description": "The summarization content that is divided into sections. The key is the section's name and the value is the section's content. There is no specific format for the key or value.", - "type": "object" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationTranscript": { - "description": "A message representing the transcript of a conversation.", - "id": "GoogleCloudContactcenterinsightsV1ConversationTranscript", - "properties": { - "transcriptSegments": { - "description": "A list of sequential transcript segments that comprise the conversation.", - "items": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment" - }, - "type": "array" - } - }, + "GoogleCloudContactcenterinsightsV1ExportInsightsDataResponse": { + "description": "Response for an export insights operation.", + "id": "GoogleCloudContactcenterinsightsV1ExportInsightsDataResponse", + "properties": {}, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment": { - "description": "A segment of a full transcript.", - "id": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment", + "GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata": { + "description": "Metadata used for export issue model.", + "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata", "properties": { - "channelTag": { - "description": "For conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel. For audioChannelCount = N, its output values can range from '1' to 'N'. A channel tag of 0 indicates that the audio is mono.", - "format": "int32", - "type": "integer" - }, - "confidence": { - "description": "A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A default value of 0.0 indicates that the value is unset.", - "format": "float", - "type": "number" - }, - "dialogflowSegmentMetadata": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata", - "description": "CCAI metadata relating to the current transcript segment." - }, - "languageCode": { - "description": "The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: \"en-US\".", - "type": "string" - }, - "messageTime": { - "description": "The time that the message occurred, if provided.", + "createTime": { + "description": "The time the operation was created.", "format": "google-datetime", "type": "string" }, - "segmentParticipant": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationParticipant", - "description": "The participant of this segment." - }, - "sentiment": { - "$ref": "GoogleCloudContactcenterinsightsV1SentimentData", - "description": "The sentiment for this transcript segment." - }, - "text": { - "description": "The text of this segment.", + "endTime": { + "description": "The time the operation finished running.", + "format": "google-datetime", "type": "string" }, - "words": { - "description": "A list of the word-specific information for each word in the segment.", - "items": { - "$ref": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo" - }, - "type": "array" + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest", + "description": "The original export request." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata": { - "description": "Metadata from Dialogflow relating to the current transcript segment.", - "id": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata", + "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest": { + "description": "Request to export an issue model.", + "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest", "properties": { - "smartReplyAllowlistCovered": { - "description": "Whether the transcript segment was covered under the configured smart reply allowlist in Agent Assist.", - "type": "boolean" + "gcsDestination": { + "$ref": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination", + "description": "Google Cloud Storage URI to export the issue model to." + }, + "name": { + "description": "Required. The issue model to export.", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo": { - "description": "Word-level info for words in a transcript.", - "id": "GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo", + "GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination": { + "description": "Google Cloud Storage Object URI to save the issue model to.", + "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination", "properties": { - "confidence": { - "description": "A confidence estimate between 0.0 and 1.0 of the fidelity of this word. A default value of 0.0 indicates that the value is unset.", - "format": "float", - "type": "number" - }, - "endOffset": { - "description": "Time offset of the end of this word relative to the beginning of the total conversation.", - "format": "google-duration", - "type": "string" - }, - "startOffset": { - "description": "Time offset of the start of this word relative to the beginning of the total conversation.", - "format": "google-duration", - "type": "string" - }, - "word": { - "description": "The word itself. Includes punctuation marks that surround the word.", + "objectUri": { + "description": "Required. Format: `gs:///`", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1CreateAnalysisOperationMetadata": { - "description": "Metadata for a create analysis operation.", - "id": "GoogleCloudContactcenterinsightsV1CreateAnalysisOperationMetadata", + "GoogleCloudContactcenterinsightsV1ExportIssueModelResponse": { + "description": "Response from export issue model", + "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1FaqAnswerData": { + "description": "Agent Assist frequently-asked-question answer data.", + "id": "GoogleCloudContactcenterinsightsV1FaqAnswerData", "properties": { - "annotatorSelector": { - "$ref": "GoogleCloudContactcenterinsightsV1AnnotatorSelector", - "description": "Output only. The annotator selector used for the analysis (if any).", - "readOnly": true + "answer": { + "description": "The piece of text from the `source` knowledge base document.", + "type": "string" }, - "conversation": { - "description": "Output only. The Conversation that this Analysis Operation belongs to.", - "readOnly": true, + "confidenceScore": { + "description": "The system's confidence score that this answer is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).", + "format": "float", + "type": "number" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Map that contains metadata about the FAQ answer and the document that it originates from.", + "type": "object" + }, + "queryRecord": { + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", "type": "string" }, - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, + "question": { + "description": "The corresponding FAQ question.", "type": "string" }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, + "source": { + "description": "The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1CreateIssueModelMetadata": { - "description": "Metadata for creating an issue model.", - "id": "GoogleCloudContactcenterinsightsV1CreateIssueModelMetadata", + "GoogleCloudContactcenterinsightsV1FeedbackLabel": { + "description": "Represents a conversation, resource, and label provided by the user.", + "id": "GoogleCloudContactcenterinsightsV1FeedbackLabel", "properties": { "createTime": { - "description": "Output only. The time the operation was created.", + "description": "Output only. Create time of the label.", "format": "google-datetime", "readOnly": true, "type": "string" }, - "endTime": { - "description": "Output only. The time the operation finished running.", + "label": { + "description": "String label.", + "type": "string" + }, + "labeledResource": { + "description": "Resource name of the resource to be labeled.", + "type": "string" + }, + "name": { + "description": "Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}", + "type": "string" + }, + "qaAnswerLabel": { + "$ref": "GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue", + "description": "QaAnswer label." + }, + "updateTime": { + "description": "Output only. Update time of the label.", "format": "google-datetime", "readOnly": true, "type": "string" - }, - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1CreateIssueModelRequest", - "description": "The original request for creation." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1CreateIssueModelRequest": { - "description": "The request to create an issue model.", - "id": "GoogleCloudContactcenterinsightsV1CreateIssueModelRequest", + "GoogleCloudContactcenterinsightsV1GcsSource": { + "description": "A Cloud Storage source of conversation data.", + "id": "GoogleCloudContactcenterinsightsV1GcsSource", "properties": { - "issueModel": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueModel", - "description": "Required. The issue model to create." + "audioUri": { + "description": "Cloud Storage URI that points to a file that contains the conversation audio.", + "type": "string" }, - "parent": { - "description": "Required. The parent resource of the issue model.", + "transcriptUri": { + "description": "Immutable. Cloud Storage URI that points to a file that contains the conversation transcript.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1DeleteIssueModelMetadata": { - "description": "Metadata for deleting an issue model.", - "id": "GoogleCloudContactcenterinsightsV1DeleteIssueModelMetadata", + "GoogleCloudContactcenterinsightsV1HoldData": { + "description": "The data for a hold annotation.", + "id": "GoogleCloudContactcenterinsightsV1HoldData", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata": { + "description": "Metadata used for import issue model.", + "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata", "properties": { "createTime": { - "description": "Output only. The time the operation was created.", + "description": "The time the operation was created.", "format": "google-datetime", - "readOnly": true, "type": "string" }, "endTime": { - "description": "Output only. The time the operation finished running.", + "description": "The time the operation finished running.", "format": "google-datetime", - "readOnly": true, "type": "string" }, "request": { - "$ref": "GoogleCloudContactcenterinsightsV1DeleteIssueModelRequest", - "description": "The original request for deletion." + "$ref": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest", + "description": "The original import request." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1DeleteIssueModelRequest": { - "description": "The request to delete an issue model.", - "id": "GoogleCloudContactcenterinsightsV1DeleteIssueModelRequest", + "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest": { + "description": "Request to import an issue model.", + "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest", "properties": { - "name": { - "description": "Required. The name of the issue model to delete.", + "createNewModel": { + "description": "Optional. If set to true, will create an issue model from the imported file with randomly generated IDs for the issue model and corresponding issues. Otherwise, replaces an existing model with the same ID as the file.", + "type": "boolean" + }, + "gcsSource": { + "$ref": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource", + "description": "Google Cloud Storage source message." + }, + "parent": { + "description": "Required. The parent resource of the issue model.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1DeployIssueModelMetadata": { - "description": "Metadata for deploying an issue model.", - "id": "GoogleCloudContactcenterinsightsV1DeployIssueModelMetadata", + "GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource": { + "description": "Google Cloud Storage Object URI to get the issue model file from.", + "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource", + "properties": { + "objectUri": { + "description": "Required. Format: `gs:///`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ImportIssueModelResponse": { + "description": "Response from import issue model", + "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1IngestConversationsMetadata": { + "description": "The metadata for an IngestConversations operation.", + "id": "GoogleCloudContactcenterinsightsV1IngestConversationsMetadata", "properties": { "createTime": { "description": "Output only. The time the operation was created.", @@ -2639,192 +5331,181 @@ "readOnly": true, "type": "string" }, + "ingestConversationsStats": { + "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats", + "description": "Output only. Statistics for IngestConversations operation.", + "readOnly": true + }, + "partialErrors": { + "description": "Output only. Partial errors during ingest operation that might cause the operation output to be incomplete.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "readOnly": true, + "type": "array" + }, "request": { - "$ref": "GoogleCloudContactcenterinsightsV1DeployIssueModelRequest", - "description": "The original request for deployment." - } - }, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1DeployIssueModelRequest": { - "description": "The request to deploy an issue model.", - "id": "GoogleCloudContactcenterinsightsV1DeployIssueModelRequest", - "properties": { - "name": { - "description": "Required. The issue model to deploy.", - "type": "string" + "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsRequest", + "description": "Output only. The original request for ingest.", + "readOnly": true } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1DeployIssueModelResponse": { - "description": "The response to deploy an issue model.", - "id": "GoogleCloudContactcenterinsightsV1DeployIssueModelResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1DialogflowIntent": { - "description": "The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE.", - "id": "GoogleCloudContactcenterinsightsV1DialogflowIntent", + "GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats": { + "description": "Statistics for IngestConversations operation.", + "id": "GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats", "properties": { - "displayName": { - "description": "The human-readable name of the intent.", - "type": "string" + "duplicatesSkippedCount": { + "description": "Output only. The number of objects skipped because another conversation with the same transcript uri had already been ingested.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "failedIngestCount": { + "description": "Output only. The number of objects which were unable to be ingested due to errors. The errors are populated in the partial_errors field.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "processedObjectCount": { + "description": "Output only. The number of objects processed during the ingest operation.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "successfulIngestCount": { + "description": "Output only. The number of new conversations added during this ingest operation.", + "format": "int32", + "readOnly": true, + "type": "integer" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1DialogflowInteractionData": { - "description": "Dialogflow interaction data.", - "id": "GoogleCloudContactcenterinsightsV1DialogflowInteractionData", + "GoogleCloudContactcenterinsightsV1IngestConversationsRequest": { + "description": "The request to ingest conversations.", + "id": "GoogleCloudContactcenterinsightsV1IngestConversationsRequest", "properties": { - "confidence": { - "description": "The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain).", - "format": "float", - "type": "number" + "conversationConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig", + "description": "Configuration that applies to all conversations." }, - "dialogflowIntentId": { - "description": "The Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent}", + "gcsSource": { + "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource", + "description": "A cloud storage bucket source. Note that any previously ingested objects from the source will be skipped to avoid duplication." + }, + "parent": { + "description": "Required. The parent resource for new conversations.", "type": "string" + }, + "redactionConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1RedactionConfig", + "description": "Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings." + }, + "sampleSize": { + "description": "Optional. If set, this fields indicates the number of objects to ingest from the Cloud Storage bucket. If empty, the entire bucket will be ingested. Unless they are first deleted, conversations produced through sampling won't be ingested by subsequent ingest requests.", + "format": "int32", + "type": "integer" + }, + "speechConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1SpeechConfig", + "description": "Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings." + }, + "transcriptObjectConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig", + "description": "Configuration for when `source` contains conversation transcripts." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1DialogflowSource": { - "description": "A Dialogflow source of conversation data.", - "id": "GoogleCloudContactcenterinsightsV1DialogflowSource", + "GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig": { + "description": "Configuration that applies to all conversations.", + "id": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig", "properties": { - "audioUri": { - "description": "Cloud Storage URI that points to a file that contains the conversation audio.", - "type": "string" + "agentChannel": { + "description": "Optional. Indicates which of the channels, 1 or 2, contains the agent. Note that this must be set for conversations to be properly displayed and analyzed.", + "format": "int32", + "type": "integer" }, - "dialogflowConversation": { - "description": "Output only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation}", - "readOnly": true, + "agentId": { + "description": "Optional. An opaque, user-specified string representing a human agent who handled all conversations in the import. Note that this will be overridden if per-conversation metadata is provided through the `metadata_bucket_uri`.", "type": "string" + }, + "customerChannel": { + "description": "Optional. Indicates which of the channels, 1 or 2, contains the agent. Note that this must be set for conversations to be properly displayed and analyzed.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1EncryptionSpec": { - "description": "A customer-managed encryption key specification that can be applied to all created resources (e.g. `Conversation`).", - "id": "GoogleCloudContactcenterinsightsV1EncryptionSpec", + "GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource": { + "description": "Configuration for Cloud Storage bucket sources.", + "id": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource", "properties": { - "kmsKey": { - "description": "Required. The name of customer-managed encryption key that is used to secure a resource and its sub-resources. If empty, the resource is secured by our default encryption key. Only the key in the same location as this resource is allowed to be used for encryption. Format: `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`", + "bucketObjectType": { + "description": "Optional. Specifies the type of the objects in `bucket_uri`.", + "enum": [ + "BUCKET_OBJECT_TYPE_UNSPECIFIED", + "TRANSCRIPT", + "AUDIO" + ], + "enumDescriptions": [ + "The object type is unspecified and will default to `TRANSCRIPT`.", + "The object is a transcript.", + "The object is an audio file." + ], "type": "string" }, - "name": { - "description": "Immutable. The resource name of the encryption key specification resource. Format: projects/{project}/locations/{location}/encryptionSpec", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1Entity": { - "description": "The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location.", - "id": "GoogleCloudContactcenterinsightsV1Entity", - "properties": { - "displayName": { - "description": "The representative name for the entity.", + "bucketUri": { + "description": "Required. The Cloud Storage bucket containing source objects.", "type": "string" }, - "metadata": { - "additionalProperties": { + "customMetadataKeys": { + "description": "Optional. Custom keys to extract as conversation labels from metadata files in `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a limit of 20 labels per conversation.", + "items": { "type": "string" }, - "description": "Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.", - "type": "object" - }, - "salience": { - "description": "The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.", - "format": "float", - "type": "number" - }, - "sentiment": { - "$ref": "GoogleCloudContactcenterinsightsV1SentimentData", - "description": "The aggregate sentiment expressed for this entity in the conversation." + "type": "array" }, - "type": { - "description": "The entity type.", - "enum": [ - "TYPE_UNSPECIFIED", - "PERSON", - "LOCATION", - "ORGANIZATION", - "EVENT", - "WORK_OF_ART", - "CONSUMER_GOOD", - "OTHER", - "PHONE_NUMBER", - "ADDRESS", - "DATE", - "NUMBER", - "PRICE" - ], - "enumDescriptions": [ - "Unspecified.", - "Person.", - "Location.", - "Organization.", - "Event.", - "Artwork.", - "Consumer product.", - "Other types of entities.", - "Phone number. The metadata lists the phone number (formatted according to local convention), plus whichever additional elements appear in the text: * `number` - The actual number, broken down into sections according to local convention. * `national_prefix` - Country code, if detected. * `area_code` - Region or area code, if detected. * `extension` - Phone extension (to be dialed after connection), if detected.", - "Address. The metadata identifies the street number and locality plus whichever additional elements appear in the text: * `street_number` - Street number. * `locality` - City or town. * `street_name` - Street/route name, if detected. * `postal_code` - Postal code, if detected. * `country` - Country, if detected. * `broad_region` - Administrative area, such as the state, if detected. * `narrow_region` - Smaller administrative area, such as county, if detected. * `sublocality` - Used in Asian addresses to demark a district within a city, if detected.", - "Date. The metadata identifies the components of the date: * `year` - Four digit year, if detected. * `month` - Two digit month number, if detected. * `day` - Two digit day number, if detected.", - "Number. The metadata is the number itself.", - "Price. The metadata identifies the `value` and `currency`." - ], + "metadataBucketUri": { + "description": "Optional. The Cloud Storage path to the conversation metadata. Note that: [1] Metadata files are expected to be in JSON format. [2] Metadata and source files (transcripts or audio) must be in separate buckets. [3] A source file and its corresponding metadata file must share the same name to be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and `gs://bucket/metadata/conversation1.json`.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1EntityMentionData": { - "description": "The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation.", - "id": "GoogleCloudContactcenterinsightsV1EntityMentionData", + "GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig": { + "description": "Configuration for processing transcript objects.", + "id": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig", "properties": { - "entityUniqueId": { - "description": "The key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to.", - "type": "string" - }, - "sentiment": { - "$ref": "GoogleCloudContactcenterinsightsV1SentimentData", - "description": "Sentiment expressed for this mention of the entity." - }, - "type": { - "description": "The type of the entity mention.", + "medium": { + "description": "Required. The medium transcript objects represent.", "enum": [ - "MENTION_TYPE_UNSPECIFIED", - "PROPER", - "COMMON" + "MEDIUM_UNSPECIFIED", + "PHONE_CALL", + "CHAT" ], "enumDescriptions": [ - "Unspecified.", - "Proper noun.", - "Common noun (or noun compound)." + "Default value, if unspecified will default to PHONE_CALL.", + "The format for conversations that took place over the phone.", + "The format for conversations that took place over chat." ], "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ExactMatchConfig": { - "description": "Exact match configuration.", - "id": "GoogleCloudContactcenterinsightsV1ExactMatchConfig", - "properties": { - "caseSensitive": { - "description": "Whether to consider case sensitivity when performing an exact match.", - "type": "boolean" - } - }, + "GoogleCloudContactcenterinsightsV1IngestConversationsResponse": { + "description": "The response to an IngestConversations operation.", + "id": "GoogleCloudContactcenterinsightsV1IngestConversationsResponse", + "properties": {}, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata": { - "description": "Metadata for an export insights operation.", - "id": "GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata", + "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata": { + "description": "Metadata for initializing a location-level encryption specification.", + "id": "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata", "properties": { "createTime": { "description": "Output only. The time the operation was created.", @@ -2839,1018 +5520,1344 @@ "type": "string" }, "partialErrors": { - "description": "Partial errors during export operation that might cause the operation output to be incomplete.", + "description": "Partial errors during initializing operation that might cause the operation output to be incomplete.", "items": { "$ref": "GoogleRpcStatus" }, "type": "array" }, "request": { - "$ref": "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest", - "description": "The original request for export." - } - }, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest": { - "description": "The request to export insights.", - "id": "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest", - "properties": { - "bigQueryDestination": { - "$ref": "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDestination", - "description": "Specified if sink is a BigQuery table." - }, - "filter": { - "description": "A filter to reduce results to a specific subset. Useful for exporting conversations with specific properties.", - "type": "string" - }, - "kmsKey": { - "description": "A fully qualified KMS key name for BigQuery tables protected by CMEK. Format: projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version}", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource to export data from.", - "type": "string" - }, - "writeDisposition": { - "description": "Options for what to do if the destination table already exists.", - "enum": [ - "WRITE_DISPOSITION_UNSPECIFIED", - "WRITE_TRUNCATE", - "WRITE_APPEND" - ], - "enumDescriptions": [ - "Write disposition is not specified. Defaults to WRITE_TRUNCATE.", - "If the table already exists, BigQuery will overwrite the table data and use the schema from the load.", - "If the table already exists, BigQuery will append data to the table." - ], - "type": "string" + "$ref": "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest", + "description": "Output only. The original request for initialization.", + "readOnly": true } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDestination": { - "description": "A BigQuery Table Reference.", - "id": "GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDestination", + "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest": { + "description": "The request to initialize a location-level encryption specification.", + "id": "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest", "properties": { - "dataset": { - "description": "Required. The name of the BigQuery dataset that the snapshot result should be exported to. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.", - "type": "string" - }, - "projectId": { - "description": "A project ID or number. If specified, then export will attempt to write data to this project instead of the resource project. Otherwise, the resource project will be used.", - "type": "string" - }, - "table": { - "description": "The BigQuery table name to which the insights data should be written. If this table does not exist, the export call returns an INVALID_ARGUMENT error.", - "type": "string" + "encryptionSpec": { + "$ref": "GoogleCloudContactcenterinsightsV1EncryptionSpec", + "description": "Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the `kms_key_name` field is left empty, no encryption will be enforced." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ExportInsightsDataResponse": { - "description": "Response for an export insights operation.", - "id": "GoogleCloudContactcenterinsightsV1ExportInsightsDataResponse", + "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse": { + "description": "The response to initialize a location-level encryption specification.", + "id": "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse", "properties": {}, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata": { - "description": "Metadata used for export issue model.", - "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata", + "GoogleCloudContactcenterinsightsV1Intent": { + "description": "The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE.", + "id": "GoogleCloudContactcenterinsightsV1Intent", "properties": { - "createTime": { - "description": "The time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "endTime": { - "description": "The time the operation finished running.", - "format": "google-datetime", + "displayName": { + "description": "The human-readable name of the intent.", "type": "string" }, - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest", - "description": "The original export request." - } - }, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest": { - "description": "Request to export an issue model.", - "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest", - "properties": { - "gcsDestination": { - "$ref": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination", - "description": "Google Cloud Storage URI to export the issue model to." - }, - "name": { - "description": "Required. The issue model to export.", + "id": { + "description": "The unique identifier of the intent.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination": { - "description": "Google Cloud Storage Object URI to save the issue model to.", - "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination", + "GoogleCloudContactcenterinsightsV1IntentMatchData": { + "description": "The data for an intent match. Represents an intent match for a text segment in the conversation. A text segment can be part of a sentence, a complete sentence, or an utterance with multiple sentences.", + "id": "GoogleCloudContactcenterinsightsV1IntentMatchData", "properties": { - "objectUri": { - "description": "Required. Format: `gs:///`", + "intentUniqueId": { + "description": "The id of the matched intent. Can be used to retrieve the corresponding intent information.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ExportIssueModelResponse": { - "description": "Response from export issue model", - "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelResponse", + "GoogleCloudContactcenterinsightsV1InterruptionData": { + "description": "The data for an interruption annotation.", + "id": "GoogleCloudContactcenterinsightsV1InterruptionData", "properties": {}, "type": "object" }, - "GoogleCloudContactcenterinsightsV1FaqAnswerData": { - "description": "Agent Assist frequently-asked-question answer data.", - "id": "GoogleCloudContactcenterinsightsV1FaqAnswerData", + "GoogleCloudContactcenterinsightsV1Issue": { + "description": "The issue resource.", + "id": "GoogleCloudContactcenterinsightsV1Issue", "properties": { - "answer": { - "description": "The piece of text from the `source` knowledge base document.", + "createTime": { + "description": "Output only. The time at which this issue was created.", + "format": "google-datetime", + "readOnly": true, "type": "string" }, - "confidenceScore": { - "description": "The system's confidence score that this answer is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).", - "format": "float", - "type": "number" - }, - "metadata": { - "additionalProperties": { - "type": "string" - }, - "description": "Map that contains metadata about the FAQ answer and the document that it originates from.", - "type": "object" + "displayDescription": { + "description": "Representative description of the issue.", + "type": "string" }, - "queryRecord": { - "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", + "displayName": { + "description": "The representative name for the issue.", "type": "string" }, - "question": { - "description": "The corresponding FAQ question.", + "name": { + "description": "Immutable. The resource name of the issue. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}", "type": "string" }, - "source": { - "description": "The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}.", + "sampleUtterances": { + "description": "Output only. Resource names of the sample representative utterances that match to this issue.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "updateTime": { + "description": "Output only. The most recent time that this issue was updated.", + "format": "google-datetime", + "readOnly": true, "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1GcsSource": { - "description": "A Cloud Storage source of conversation data.", - "id": "GoogleCloudContactcenterinsightsV1GcsSource", + "GoogleCloudContactcenterinsightsV1IssueAssignment": { + "description": "Information about the issue.", + "id": "GoogleCloudContactcenterinsightsV1IssueAssignment", "properties": { - "audioUri": { - "description": "Cloud Storage URI that points to a file that contains the conversation audio.", + "displayName": { + "description": "Immutable. Display name of the assigned issue. This field is set at time of analyis and immutable since then.", "type": "string" }, - "transcriptUri": { - "description": "Immutable. Cloud Storage URI that points to a file that contains the conversation transcript.", + "issue": { + "description": "Resource name of the assigned issue.", "type": "string" + }, + "score": { + "description": "Score indicating the likelihood of the issue assignment. currently bounded on [0,1].", + "format": "double", + "type": "number" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1HoldData": { - "description": "The data for a hold annotation.", - "id": "GoogleCloudContactcenterinsightsV1HoldData", - "properties": {}, + "GoogleCloudContactcenterinsightsV1IssueMatchData": { + "description": "The data for an issue match annotation.", + "id": "GoogleCloudContactcenterinsightsV1IssueMatchData", + "properties": { + "issueAssignment": { + "$ref": "GoogleCloudContactcenterinsightsV1IssueAssignment", + "description": "Information about the issue's assignment." + } + }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata": { - "description": "Metadata used for import issue model.", - "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata", + "GoogleCloudContactcenterinsightsV1IssueModel": { + "description": "The issue model resource.", + "id": "GoogleCloudContactcenterinsightsV1IssueModel", "properties": { "createTime": { - "description": "The time the operation was created.", + "description": "Output only. The time at which this issue model was created.", "format": "google-datetime", + "readOnly": true, "type": "string" }, - "endTime": { - "description": "The time the operation finished running.", - "format": "google-datetime", + "displayName": { + "description": "The representative name for the issue model.", "type": "string" }, - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest", - "description": "The original import request." - } - }, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest": { - "description": "Request to import an issue model.", - "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest", - "properties": { - "createNewModel": { - "description": "Optional. If set to true, will create an issue model from the imported file with randomly generated IDs for the issue model and corresponding issues. Otherwise, replaces an existing model with the same ID as the file.", - "type": "boolean" + "inputDataConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig", + "description": "Configs for the input data that used to create the issue model." }, - "gcsSource": { - "$ref": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource", - "description": "Google Cloud Storage source message." + "issueCount": { + "description": "Output only. Number of issues in this issue model.", + "format": "int64", + "readOnly": true, + "type": "string" }, - "parent": { - "description": "Required. The parent resource of the issue model.", + "languageCode": { + "description": "Language of the model.", + "type": "string" + }, + "modelType": { + "description": "Type of the model.", + "enum": [ + "MODEL_TYPE_UNSPECIFIED", + "TYPE_V1", + "TYPE_V2" + ], + "enumDescriptions": [ + "Unspecified model type.", + "Type V1.", + "Type V2." + ], + "type": "string" + }, + "name": { + "description": "Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}", + "type": "string" + }, + "state": { + "description": "Output only. State of the model.", + "enum": [ + "STATE_UNSPECIFIED", + "UNDEPLOYED", + "DEPLOYING", + "DEPLOYED", + "UNDEPLOYING", + "DELETING" + ], + "enumDescriptions": [ + "Unspecified.", + "Model is not deployed but is ready to deploy.", + "Model is being deployed.", + "Model is deployed and is ready to be used. A model can only be used in analysis if it's in this state.", + "Model is being undeployed.", + "Model is being deleted." + ], + "readOnly": true, + "type": "string" + }, + "trainingStats": { + "$ref": "GoogleCloudContactcenterinsightsV1IssueModelLabelStats", + "description": "Output only. Immutable. The issue model's label statistics on its training data.", + "readOnly": true + }, + "updateTime": { + "description": "Output only. The most recent time at which the issue model was updated.", + "format": "google-datetime", + "readOnly": true, "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource": { - "description": "Google Cloud Storage Object URI to get the issue model file from.", - "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource", + "GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig": { + "description": "Configs for the input data used to create the issue model.", + "id": "GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig", "properties": { - "objectUri": { - "description": "Required. Format: `gs:///`", + "filter": { + "description": "A filter to reduce the conversations used for training the model to a specific subset.", + "type": "string" + }, + "medium": { + "deprecated": true, + "description": "Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the `medium` field on `filter`.", + "enum": [ + "MEDIUM_UNSPECIFIED", + "PHONE_CALL", + "CHAT" + ], + "enumDescriptions": [ + "Default value, if unspecified will default to PHONE_CALL.", + "The format for conversations that took place over the phone.", + "The format for conversations that took place over chat." + ], + "type": "string" + }, + "trainingConversationsCount": { + "description": "Output only. Number of conversations used in training. Output only.", + "format": "int64", + "readOnly": true, "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ImportIssueModelResponse": { - "description": "Response from import issue model", - "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1IngestConversationsMetadata": { - "description": "The metadata for an IngestConversations operation.", - "id": "GoogleCloudContactcenterinsightsV1IngestConversationsMetadata", + "GoogleCloudContactcenterinsightsV1IssueModelLabelStats": { + "description": "Aggregated statistics about an issue model.", + "id": "GoogleCloudContactcenterinsightsV1IssueModelLabelStats", "properties": { - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, + "analyzedConversationsCount": { + "description": "Number of conversations the issue model has analyzed at this point in time.", + "format": "int64", "type": "string" }, - "ingestConversationsStats": { - "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats", - "description": "Output only. Statistics for IngestConversations operation.", - "readOnly": true - }, - "partialErrors": { - "description": "Output only. Partial errors during ingest operation that might cause the operation output to be incomplete.", - "items": { - "$ref": "GoogleRpcStatus" + "issueStats": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats" }, - "readOnly": true, - "type": "array" + "description": "Statistics on each issue. Key is the issue's resource name.", + "type": "object" }, - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsRequest", - "description": "Output only. The original request for ingest.", - "readOnly": true + "unclassifiedConversationsCount": { + "description": "Number of analyzed conversations for which no issue was applicable at this point in time.", + "format": "int64", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats": { - "description": "Statistics for IngestConversations operation.", - "id": "GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats", + "GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats": { + "description": "Aggregated statistics about an issue.", + "id": "GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats", "properties": { - "duplicatesSkippedCount": { - "description": "Output only. The number of objects skipped because another conversation with the same transcript uri had already been ingested.", - "format": "int32", - "readOnly": true, - "type": "integer" - }, - "failedIngestCount": { - "description": "Output only. The number of objects which were unable to be ingested due to errors. The errors are populated in the partial_errors field.", - "format": "int32", - "readOnly": true, - "type": "integer" + "displayName": { + "description": "Display name of the issue.", + "type": "string" }, - "processedObjectCount": { - "description": "Output only. The number of objects processed during the ingest operation.", - "format": "int32", - "readOnly": true, - "type": "integer" + "issue": { + "description": "Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}", + "type": "string" }, - "successfulIngestCount": { - "description": "Output only. The number of new conversations added during this ingest operation.", - "format": "int32", - "readOnly": true, - "type": "integer" + "labeledConversationsCount": { + "description": "Number of conversations attached to the issue at this point in time.", + "format": "int64", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IngestConversationsRequest": { - "description": "The request to ingest conversations.", - "id": "GoogleCloudContactcenterinsightsV1IngestConversationsRequest", + "GoogleCloudContactcenterinsightsV1IssueModelResult": { + "description": "Issue Modeling result on a conversation.", + "id": "GoogleCloudContactcenterinsightsV1IssueModelResult", "properties": { - "conversationConfig": { - "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig", - "description": "Configuration that applies to all conversations." - }, - "gcsSource": { - "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource", - "description": "A cloud storage bucket source. Note that any previously ingested objects from the source will be skipped to avoid duplication." - }, - "parent": { - "description": "Required. The parent resource for new conversations.", + "issueModel": { + "description": "Issue model that generates the result. Format: projects/{project}/locations/{location}/issueModels/{issue_model}", "type": "string" }, - "redactionConfig": { - "$ref": "GoogleCloudContactcenterinsightsV1RedactionConfig", - "description": "Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings." - }, - "sampleSize": { - "description": "Optional. If set, this fields indicates the number of objects to ingest from the Cloud Storage bucket. If empty, the entire bucket will be ingested. Unless they are first deleted, conversations produced through sampling won't be ingested by subsequent ingest requests.", - "format": "int32", - "type": "integer" - }, - "speechConfig": { - "$ref": "GoogleCloudContactcenterinsightsV1SpeechConfig", - "description": "Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings." - }, - "transcriptObjectConfig": { - "$ref": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig", - "description": "Configuration for when `source` contains conversation transcripts." + "issues": { + "description": "All the matched issues.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1IssueAssignment" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig": { - "description": "Configuration that applies to all conversations.", - "id": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig", + "GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse": { + "description": "The response for listing all feedback labels.", + "id": "GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse", "properties": { - "agentChannel": { - "description": "Optional. Indicates which of the channels, 1 or 2, contains the agent. Note that this must be set for conversations to be properly displayed and analyzed.", - "format": "int32", - "type": "integer" + "feedbackLabels": { + "description": "The feedback labels that match the request.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" + }, + "type": "array" }, - "agentId": { - "description": "Optional. An opaque, user-specified string representing a human agent who handled all conversations in the import. Note that this will be overridden if per-conversation metadata is provided through the `metadata_bucket_uri`.", + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "type": "string" - }, - "customerChannel": { - "description": "Optional. Indicates which of the channels, 1 or 2, contains the agent. Note that this must be set for conversations to be properly displayed and analyzed.", - "format": "int32", - "type": "integer" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource": { - "description": "Configuration for Cloud Storage bucket sources.", - "id": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource", + "GoogleCloudContactcenterinsightsV1ListAnalysesResponse": { + "description": "The response to list analyses.", + "id": "GoogleCloudContactcenterinsightsV1ListAnalysesResponse", "properties": { - "bucketObjectType": { - "description": "Optional. Specifies the type of the objects in `bucket_uri`.", - "enum": [ - "BUCKET_OBJECT_TYPE_UNSPECIFIED", - "TRANSCRIPT", - "AUDIO" - ], - "enumDescriptions": [ - "The object type is unspecified and will default to `TRANSCRIPT`.", - "The object is a transcript.", - "The object is an audio file." - ], - "type": "string" - }, - "bucketUri": { - "description": "Required. The Cloud Storage bucket containing source objects.", - "type": "string" - }, - "customMetadataKeys": { - "description": "Optional. Custom keys to extract as conversation labels from metadata files in `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a limit of 20 labels per conversation.", + "analyses": { + "description": "The analyses that match the request.", "items": { - "type": "string" + "$ref": "GoogleCloudContactcenterinsightsV1Analysis" }, "type": "array" }, - "metadataBucketUri": { - "description": "Optional. The Cloud Storage path to the conversation metadata. Note that: [1] Metadata files are expected to be in JSON format. [2] Metadata and source files (transcripts or audio) must be in separate buckets. [3] A source file and its corresponding metadata file must share the same name to be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and `gs://bucket/metadata/conversation1.json`.", + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig": { - "description": "Configuration for processing transcript objects.", - "id": "GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig", + "GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse": { + "description": "The response of listing views.", + "id": "GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse", "properties": { - "medium": { - "description": "Required. The medium transcript objects represent.", - "enum": [ - "MEDIUM_UNSPECIFIED", - "PHONE_CALL", - "CHAT" - ], - "enumDescriptions": [ - "Default value, if unspecified will default to PHONE_CALL.", - "The format for conversations that took place over the phone.", - "The format for conversations that took place over chat." - ], + "analysisRules": { + "description": "The analysis_rule that match the request.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1AnalysisRule" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IngestConversationsResponse": { - "description": "The response to an IngestConversations operation.", - "id": "GoogleCloudContactcenterinsightsV1IngestConversationsResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata": { - "description": "Metadata for initializing a location-level encryption specification.", - "id": "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata", + "GoogleCloudContactcenterinsightsV1ListConversationsResponse": { + "description": "The response of listing conversations.", + "id": "GoogleCloudContactcenterinsightsV1ListConversationsResponse", "properties": { - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" + "conversations": { + "description": "The conversations that match the request.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" + }, + "type": "array" }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, + "nextPageToken": { + "description": "A token which can be sent as `page_token` to retrieve the next page. If this field is set, it means there is another page available. If it is not set, it means no other pages are available.", "type": "string" - }, - "partialErrors": { - "description": "Partial errors during initializing operation that might cause the operation output to be incomplete.", + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse": { + "description": "The response for listing feedback labels.", + "id": "GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse", + "properties": { + "feedbackLabels": { + "description": "The feedback labels that match the request.", "items": { - "$ref": "GoogleRpcStatus" + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" }, "type": "array" }, - "request": { - "$ref": "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest", - "description": "Output only. The original request for initialization.", - "readOnly": true + "nextPageToken": { + "description": "The next page token.", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest": { - "description": "The request to initialize a location-level encryption specification.", - "id": "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest", + "GoogleCloudContactcenterinsightsV1ListIssueModelsResponse": { + "description": "The response of listing issue models.", + "id": "GoogleCloudContactcenterinsightsV1ListIssueModelsResponse", "properties": { - "encryptionSpec": { - "$ref": "GoogleCloudContactcenterinsightsV1EncryptionSpec", - "description": "Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the `kms_key_name` field is left empty, no encryption will be enforced." + "issueModels": { + "description": "The issue models that match the request.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1IssueModel" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse": { - "description": "The response to initialize a location-level encryption specification.", - "id": "GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse", - "properties": {}, + "GoogleCloudContactcenterinsightsV1ListIssuesResponse": { + "description": "The response of listing issues.", + "id": "GoogleCloudContactcenterinsightsV1ListIssuesResponse", + "properties": { + "issues": { + "description": "The issues that match the request.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1Issue" + }, + "type": "array" + } + }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1Intent": { - "description": "The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE.", - "id": "GoogleCloudContactcenterinsightsV1Intent", + "GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse": { + "description": "The response of listing phrase matchers.", + "id": "GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse", "properties": { - "displayName": { - "description": "The human-readable name of the intent.", + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "type": "string" }, - "id": { - "description": "The unique identifier of the intent.", - "type": "string" + "phraseMatchers": { + "description": "The phrase matchers that match the request.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IntentMatchData": { - "description": "The data for an intent match. Represents an intent match for a text segment in the conversation. A text segment can be part of a sentence, a complete sentence, or an utterance with multiple sentences.", - "id": "GoogleCloudContactcenterinsightsV1IntentMatchData", + "GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse": { + "description": "The response from a ListQaQuestions request.", + "id": "GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse", "properties": { - "intentUniqueId": { - "description": "The id of the matched intent. Can be used to retrieve the corresponding intent information.", + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "type": "string" + }, + "qaQuestions": { + "description": "The QaQuestions under the parent.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1QaQuestion" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1InterruptionData": { - "description": "The data for an interruption annotation.", - "id": "GoogleCloudContactcenterinsightsV1InterruptionData", - "properties": {}, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1Issue": { - "description": "The issue resource.", - "id": "GoogleCloudContactcenterinsightsV1Issue", + "GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse": { + "description": "The response from a ListQaScorecardRevisions request.", + "id": "GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse", "properties": { - "createTime": { - "description": "Output only. The time at which this issue was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "displayDescription": { - "description": "Representative description of the issue.", - "type": "string" - }, - "displayName": { - "description": "The representative name for the issue.", + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "type": "string" }, - "name": { - "description": "Immutable. The resource name of the issue. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}", + "qaScorecardRevisions": { + "description": "The QaScorecards under the parent.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecardRevision" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse": { + "description": "The response from a ListQaScorecards request.", + "id": "GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "type": "string" }, - "sampleUtterances": { - "description": "Output only. Resource names of the sample representative utterances that match to this issue.", + "qaScorecards": { + "description": "The QaScorecards under the parent.", "items": { - "type": "string" + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecard" }, - "readOnly": true, "type": "array" - }, - "updateTime": { - "description": "Output only. The most recent time that this issue was updated.", - "format": "google-datetime", - "readOnly": true, + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ListViewsResponse": { + "description": "The response of listing views.", + "id": "GoogleCloudContactcenterinsightsV1ListViewsResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "type": "string" + }, + "views": { + "description": "The views that match the request.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1View" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IssueAssignment": { - "description": "Information about the issue.", - "id": "GoogleCloudContactcenterinsightsV1IssueAssignment", + "GoogleCloudContactcenterinsightsV1PhraseMatchData": { + "description": "The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match.", + "id": "GoogleCloudContactcenterinsightsV1PhraseMatchData", "properties": { "displayName": { - "description": "Immutable. Display name of the assigned issue. This field is set at time of analyis and immutable since then.", + "description": "The human-readable name of the phrase matcher.", "type": "string" }, - "issue": { - "description": "Resource name of the assigned issue.", + "phraseMatcher": { + "description": "The unique identifier (the resource name) of the phrase matcher.", "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1PhraseMatchRule": { + "description": "The data for a phrase match rule.", + "id": "GoogleCloudContactcenterinsightsV1PhraseMatchRule", + "properties": { + "config": { + "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig", + "description": "Provides additional information about the rule that specifies how to apply the rule." }, - "score": { - "description": "Score indicating the likelihood of the issue assignment. currently bounded on [0,1].", - "format": "double", - "type": "number" + "negated": { + "description": "Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.", + "type": "boolean" + }, + "query": { + "description": "Required. The phrase to be matched.", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IssueMatchData": { - "description": "The data for an issue match annotation.", - "id": "GoogleCloudContactcenterinsightsV1IssueMatchData", + "GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig": { + "description": "Configuration information of a phrase match rule.", + "id": "GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig", "properties": { - "issueAssignment": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueAssignment", - "description": "Information about the issue's assignment." + "exactMatchConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1ExactMatchConfig", + "description": "The configuration for the exact match rule." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IssueModel": { - "description": "The issue model resource.", - "id": "GoogleCloudContactcenterinsightsV1IssueModel", + "GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup": { + "description": "A message representing a rule in the phrase matcher.", + "id": "GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup", "properties": { - "createTime": { - "description": "Output only. The time at which this issue model was created.", + "phraseMatchRules": { + "description": "A list of phrase match rules that are included in this group.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatchRule" + }, + "type": "array" + }, + "type": { + "description": "Required. The type of this phrase match rule group.", + "enum": [ + "PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED", + "ALL_OF", + "ANY_OF" + ], + "enumDescriptions": [ + "Unspecified.", + "Must meet all phrase match rules or there is no match.", + "If any of the phrase match rules are met, there is a match." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1PhraseMatcher": { + "description": "The phrase matcher resource.", + "id": "GoogleCloudContactcenterinsightsV1PhraseMatcher", + "properties": { + "activationUpdateTime": { + "description": "Output only. The most recent time at which the activation status was updated.", "format": "google-datetime", "readOnly": true, "type": "string" }, + "active": { + "description": "Applies the phrase matcher only when it is active.", + "type": "boolean" + }, "displayName": { - "description": "The representative name for the issue model.", + "description": "The human-readable name of the phrase matcher.", "type": "string" }, - "inputDataConfig": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig", - "description": "Configs for the input data that used to create the issue model." + "name": { + "description": "The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}", + "type": "string" }, - "issueCount": { - "description": "Output only. Number of issues in this issue model.", - "format": "int64", + "phraseMatchRuleGroups": { + "description": "A list of phase match rule groups that are included in this matcher.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup" + }, + "type": "array" + }, + "revisionCreateTime": { + "description": "Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.", + "format": "google-datetime", "readOnly": true, "type": "string" }, - "languageCode": { - "description": "Language of the model.", + "revisionId": { + "description": "Output only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567", + "readOnly": true, "type": "string" }, - "modelType": { - "description": "Type of the model.", + "roleMatch": { + "description": "The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript.", "enum": [ - "MODEL_TYPE_UNSPECIFIED", - "TYPE_V1", - "TYPE_V2" + "ROLE_UNSPECIFIED", + "HUMAN_AGENT", + "AUTOMATED_AGENT", + "END_USER", + "ANY_AGENT" ], "enumDescriptions": [ - "Unspecified model type.", - "Type V1.", - "Type V2." + "Participant's role is not set.", + "Participant is a human agent.", + "Participant is an automated agent.", + "Participant is an end user who conversed with the contact center.", + "Participant is either a human or automated agent." ], "type": "string" }, - "name": { - "description": "Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}", - "type": "string" - }, - "state": { - "description": "Output only. State of the model.", + "type": { + "description": "Required. The type of this phrase matcher.", "enum": [ - "STATE_UNSPECIFIED", - "UNDEPLOYED", - "DEPLOYING", - "DEPLOYED", - "UNDEPLOYING", - "DELETING" + "PHRASE_MATCHER_TYPE_UNSPECIFIED", + "ALL_OF", + "ANY_OF" ], "enumDescriptions": [ "Unspecified.", - "Model is not deployed but is ready to deploy.", - "Model is being deployed.", - "Model is deployed and is ready to be used. A model can only be used in analysis if it's in this state.", - "Model is being undeployed.", - "Model is being deleted." + "Must meet all phrase match rule groups or there is no match.", + "If any of the phrase match rule groups are met, there is a match." ], - "readOnly": true, "type": "string" }, - "trainingStats": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueModelLabelStats", - "description": "Output only. Immutable. The issue model's label statistics on its training data.", - "readOnly": true - }, "updateTime": { - "description": "Output only. The most recent time at which the issue model was updated.", + "description": "Output only. The most recent time at which the phrase matcher was updated.", "format": "google-datetime", "readOnly": true, "type": "string" + }, + "versionTag": { + "description": "The customized version tag to use for the phrase matcher. If not specified, it will default to `revision_id`.", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig": { - "description": "Configs for the input data used to create the issue model.", - "id": "GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig", + "GoogleCloudContactcenterinsightsV1QaAnswer": { + "description": "An answer to a QaQuestion.", + "id": "GoogleCloudContactcenterinsightsV1QaAnswer", "properties": { - "filter": { - "description": "A filter to reduce the conversations used for training the model to a specific subset.", + "answerSources": { + "description": "List of all individual answers given to the question.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource" + }, + "type": "array" + }, + "answerValue": { + "$ref": "GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue", + "description": "The main answer value, incorporating any manual edits if they exist." + }, + "conversation": { + "description": "The conversation the answer applies to.", "type": "string" }, - "medium": { - "deprecated": true, - "description": "Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the `medium` field on `filter`.", - "enum": [ - "MEDIUM_UNSPECIFIED", - "PHONE_CALL", - "CHAT" - ], - "enumDescriptions": [ - "Default value, if unspecified will default to PHONE_CALL.", - "The format for conversations that took place over the phone.", - "The format for conversations that took place over chat." - ], + "potentialScore": { + "description": "The maximum potential score of the question. If the question was answered using `na_value`, this field will be zero.", + "format": "double", + "type": "number" + }, + "qaQuestion": { + "description": "The QaQuestion answered by this answer.", "type": "string" }, - "trainingConversationsCount": { - "description": "Output only. Number of conversations used in training. Output only.", - "format": "int64", - "readOnly": true, + "questionBody": { + "description": "Question text. E.g., \"Did the agent greet the customer?\"", "type": "string" + }, + "tags": { + "description": "User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IssueModelLabelStats": { - "description": "Aggregated statistics about an issue model.", - "id": "GoogleCloudContactcenterinsightsV1IssueModelLabelStats", + "GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource": { + "description": "A question may have multiple answers from varying sources, one of which becomes the \"main\" answer above. AnswerSource represents each individual answer.", + "id": "GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource", "properties": { - "analyzedConversationsCount": { - "description": "Number of conversations the issue model has analyzed at this point in time.", - "format": "int64", - "type": "string" - }, - "issueStats": { - "additionalProperties": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats" - }, - "description": "Statistics on each issue. Key is the issue's resource name.", - "type": "object" + "answerValue": { + "$ref": "GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue", + "description": "The answer value from this source." }, - "unclassifiedConversationsCount": { - "description": "Number of analyzed conversations for which no issue was applicable at this point in time.", - "format": "int64", + "sourceType": { + "description": "What created the answer.", + "enum": [ + "SOURCE_TYPE_UNSPECIFIED", + "SYSTEM_GENERATED", + "MANUAL_EDIT" + ], + "enumDescriptions": [ + "Source type is unspecified.", + "Answer was system-generated; created during an Insights analysis.", + "Answer was created by a human via manual edit." + ], "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats": { - "description": "Aggregated statistics about an issue.", - "id": "GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats", + "GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue": { + "description": "Message for holding the value of the answer. QaQuestion.AnswerChoice defines the possible answer values for a question.", + "id": "GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue", "properties": { - "displayName": { - "description": "Display name of the issue.", - "type": "string" + "boolValue": { + "description": "Boolean value.", + "type": "boolean" }, - "issue": { - "description": "Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}", + "key": { + "description": "A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.", "type": "string" }, - "labeledConversationsCount": { - "description": "Number of conversations attached to the issue at this point in time.", - "format": "int64", + "naValue": { + "description": "A value of \"Not Applicable (N/A)\".", + "type": "boolean" + }, + "numValue": { + "description": "Numerical value.", + "format": "double", + "type": "number" + }, + "score": { + "description": "Numerical score of the answer.", + "format": "double", + "type": "number" + }, + "strValue": { + "description": "String value.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1IssueModelResult": { - "description": "Issue Modeling result on a conversation.", - "id": "GoogleCloudContactcenterinsightsV1IssueModelResult", + "GoogleCloudContactcenterinsightsV1QaQuestion": { + "description": "A single question to be scored by the Insights QA feature.", + "id": "GoogleCloudContactcenterinsightsV1QaQuestion", "properties": { - "issueModel": { - "description": "Issue model that generates the result. Format: projects/{project}/locations/{location}/issueModels/{issue_model}", + "abbreviation": { + "description": "Short, descriptive string, used in the UI where it's not practical to display the full question body. E.g., \"Greeting\".", "type": "string" }, - "issues": { - "description": "All the matched issues.", + "answerChoices": { + "description": "A list of valid answers to the question, which the LLM must choose from.", "items": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueAssignment" + "$ref": "GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice" }, "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudContactcenterinsightsV1ListAnalysesResponse": { - "description": "The response to list analyses.", - "id": "GoogleCloudContactcenterinsightsV1ListAnalysesResponse", - "properties": { - "analyses": { - "description": "The analyses that match the request.", + }, + "answerInstructions": { + "description": "Instructions describing how to determine the answer.", + "type": "string" + }, + "createTime": { + "description": "Output only. The time at which this question was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "metrics": { + "$ref": "GoogleCloudContactcenterinsightsV1QaQuestionMetrics", + "description": "Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying LLM for the given question. This field will only be populated if and only if the question is part of a scorecard revision that has been tuned." + }, + "name": { + "description": "Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}", + "type": "string" + }, + "order": { + "description": "Defines the order of the question within its parent scorecard revision.", + "format": "int32", + "type": "integer" + }, + "questionBody": { + "description": "Question text. E.g., \"Did the agent greet the customer?\"", + "type": "string" + }, + "tags": { + "description": "User-defined list of arbitrary tags for the question. Used for grouping/organization and for weighting the score of each question.", "items": { - "$ref": "GoogleCloudContactcenterinsightsV1Analysis" + "type": "string" }, "type": "array" }, - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "tuningMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata", + "description": "Metadata about the tuning operation for the question.This field will only be populated if and only if the question is part of a scorecard revision that has been tuned." + }, + "updateTime": { + "description": "Output only. The most recent time at which the question was updated.", + "format": "google-datetime", + "readOnly": true, "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ListConversationsResponse": { - "description": "The response of listing conversations.", - "id": "GoogleCloudContactcenterinsightsV1ListConversationsResponse", + "GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice": { + "description": "Message representing a possible answer to the question.", + "id": "GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice", "properties": { - "conversations": { - "description": "The conversations that match the request.", - "items": { - "$ref": "GoogleCloudContactcenterinsightsV1Conversation" - }, - "type": "array" + "boolValue": { + "description": "Boolean value.", + "type": "boolean" }, - "nextPageToken": { - "description": "A token which can be sent as `page_token` to retrieve the next page. If this field is set, it means there is another page available. If it is not set, it means no other pages are available.", + "key": { + "description": "A short string used as an identifier.", + "type": "string" + }, + "naValue": { + "description": "A value of \"Not Applicable (N/A)\". If provided, this field may only be set to `true`. If a question receives this answer, it will be excluded from any score calculations.", + "type": "boolean" + }, + "numValue": { + "description": "Numerical value.", + "format": "double", + "type": "number" + }, + "score": { + "description": "Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If the answer uses na_value, this field is unused.", + "format": "double", + "type": "number" + }, + "strValue": { + "description": "String value.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ListIssueModelsResponse": { - "description": "The response of listing issue models.", - "id": "GoogleCloudContactcenterinsightsV1ListIssueModelsResponse", + "GoogleCloudContactcenterinsightsV1QaQuestionMetrics": { + "description": "A wrapper representing metrics calculated against a test-set on a LLM that was fine tuned for this question.", + "id": "GoogleCloudContactcenterinsightsV1QaQuestionMetrics", "properties": { - "issueModels": { - "description": "The issue models that match the request.", - "items": { - "$ref": "GoogleCloudContactcenterinsightsV1IssueModel" - }, - "type": "array" + "accuracy": { + "description": "Output only. Accuracy of the model. Measures the percentage of correct answers the model gave on the test set.", + "format": "double", + "readOnly": true, + "type": "number" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ListIssuesResponse": { - "description": "The response of listing issues.", - "id": "GoogleCloudContactcenterinsightsV1ListIssuesResponse", + "GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata": { + "description": "Metadata about the tuning operation for the question. Will only be set if a scorecard containing this question has been tuned.", + "id": "GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata", "properties": { - "issues": { - "description": "The issues that match the request.", + "datasetValidationWarnings": { + "description": "A list of any applicable data validation warnings about the question's feedback labels.", "items": { - "$ref": "GoogleCloudContactcenterinsightsV1Issue" + "enum": [ + "DATASET_VALIDATION_WARNING_UNSPECIFIED", + "TOO_MANY_INVALID_FEEDBACK_LABELS", + "INSUFFICIENT_FEEDBACK_LABELS", + "INSUFFICIENT_FEEDBACK_LABELS_PER_ANSWER", + "ALL_FEEDBACK_LABELS_HAVE_THE_SAME_ANSWER" + ], + "enumDescriptions": [ + "Unspecified data validation warning.", + "A non-trivial percentage of the feedback labels are invalid.", + "The quantity of valid feedback labels provided is less than the recommended minimum.", + "One or more of the answers have less than the recommended minimum of feedback labels.", + "All the labels in the dataset come from a single answer choice." + ], + "type": "string" }, "type": "array" + }, + "totalValidLabelCount": { + "description": "Total number of valid labels provided for the question at the time of tuining.", + "format": "int64", + "type": "string" + }, + "tuningError": { + "description": "Error status of the tuning operation for the question. Will only be set if the tuning operation failed.", + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse": { - "description": "The response of listing phrase matchers.", - "id": "GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse", + "GoogleCloudContactcenterinsightsV1QaScorecard": { + "description": "A QaScorecard represents a collection of questions to be scored during analysis.", + "id": "GoogleCloudContactcenterinsightsV1QaScorecard", "properties": { - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "createTime": { + "description": "Output only. The time at which this scorecard was created.", + "format": "google-datetime", + "readOnly": true, "type": "string" }, - "phraseMatchers": { - "description": "The phrase matchers that match the request.", - "items": { - "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatcher" - }, - "type": "array" + "description": { + "description": "A text description explaining the intent of the scorecard.", + "type": "string" + }, + "displayName": { + "description": "The user-specified display name of the scorecard.", + "type": "string" + }, + "name": { + "description": "Identifier. The scorecard name. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}", + "type": "string" + }, + "updateTime": { + "description": "Output only. The most recent time at which the scorecard was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1ListViewsResponse": { - "description": "The response of listing views.", - "id": "GoogleCloudContactcenterinsightsV1ListViewsResponse", + "GoogleCloudContactcenterinsightsV1QaScorecardResult": { + "description": "The results of scoring a single conversation against a QaScorecard. Contains a collection of QaAnswers and aggregate score.", + "id": "GoogleCloudContactcenterinsightsV1QaScorecardResult", "properties": { - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "agentId": { + "description": "ID of the agent that handled the conversation.", "type": "string" }, - "views": { - "description": "The views that match the request.", + "conversation": { + "description": "The conversation scored by this result.", + "type": "string" + }, + "createTime": { + "description": "Output only. The timestamp that the revision was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the scorecard result. Format: projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result}", + "type": "string" + }, + "normalizedScore": { + "description": "The normalized score, which is the score divided by the potential score. Any manual edits are included if they exist.", + "format": "double", + "type": "number" + }, + "potentialScore": { + "description": "The maximum potential overall score of the scorecard. Any questions answered using `na_value` are excluded from this calculation.", + "format": "double", + "type": "number" + }, + "qaAnswers": { + "description": "Set of QaAnswers represented in the result.", "items": { - "$ref": "GoogleCloudContactcenterinsightsV1View" + "$ref": "GoogleCloudContactcenterinsightsV1QaAnswer" + }, + "type": "array" + }, + "qaScorecardRevision": { + "description": "The QaScorecardRevision scored by this result.", + "type": "string" + }, + "qaTagResults": { + "description": "Collection of tags and their scores.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult" + }, + "type": "array" + }, + "score": { + "description": "The overall numerical score of the result, incorporating any manual edits if they exist.", + "format": "double", + "type": "number" + }, + "scoreSources": { + "description": "List of all individual score sets.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource" }, "type": "array" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1PhraseMatchData": { - "description": "The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match.", - "id": "GoogleCloudContactcenterinsightsV1PhraseMatchData", + "GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult": { + "description": "Tags and their corresponding results.", + "id": "GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult", "properties": { - "displayName": { - "description": "The human-readable name of the phrase matcher.", - "type": "string" + "normalizedScore": { + "description": "The normalized score the tag applies to.", + "format": "double", + "type": "number" }, - "phraseMatcher": { - "description": "The unique identifier (the resource name) of the phrase matcher.", + "potentialScore": { + "description": "The potential score the tag applies to.", + "format": "double", + "type": "number" + }, + "score": { + "description": "The score the tag applies to.", + "format": "double", + "type": "number" + }, + "tag": { + "description": "The tag the score applies to.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1PhraseMatchRule": { - "description": "The data for a phrase match rule.", - "id": "GoogleCloudContactcenterinsightsV1PhraseMatchRule", + "GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource": { + "description": "A scorecard result may have multiple sets of scores from varying sources, one of which becomes the \"main\" answer above. A ScoreSource represents each individual set of scores.", + "id": "GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource", "properties": { - "config": { - "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig", - "description": "Provides additional information about the rule that specifies how to apply the rule." + "normalizedScore": { + "description": "The normalized score, which is the score divided by the potential score.", + "format": "double", + "type": "number" }, - "negated": { - "description": "Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.", - "type": "boolean" + "potentialScore": { + "description": "The maximum potential overall score of the scorecard. Any questions answered using `na_value` are excluded from this calculation.", + "format": "double", + "type": "number" }, - "query": { - "description": "Required. The phrase to be matched.", + "qaTagResults": { + "description": "Collection of tags and their scores.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult" + }, + "type": "array" + }, + "score": { + "description": "The overall numerical score of the result.", + "format": "double", + "type": "number" + }, + "sourceType": { + "description": "What created the score.", + "enum": [ + "SOURCE_TYPE_UNSPECIFIED", + "SYSTEM_GENERATED_ONLY", + "INCLUDES_MANUAL_EDITS" + ], + "enumDescriptions": [ + "Source type is unspecified.", + "Score is derived only from system-generated answers.", + "Score is derived from both system-generated answers, and includes any manual edits if they exist." + ], "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig": { - "description": "Configuration information of a phrase match rule.", - "id": "GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig", + "GoogleCloudContactcenterinsightsV1QaScorecardRevision": { + "description": "A revision of a QaScorecard. Modifying published scorecard fields would invalidate existing scorecard results — the questions may have changed, or the score weighting will make existing scores impossible to understand. So changes must create a new revision, rather than modifying the existing resource.", + "id": "GoogleCloudContactcenterinsightsV1QaScorecardRevision", "properties": { - "exactMatchConfig": { - "$ref": "GoogleCloudContactcenterinsightsV1ExactMatchConfig", - "description": "The configuration for the exact match rule." + "alternateIds": { + "description": "Output only. Alternative IDs for this revision of the scorecard, e.g., `latest`.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "createTime": { + "description": "Output only. The timestamp that the revision was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the scorecard revision. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}", + "type": "string" + }, + "snapshot": { + "$ref": "GoogleCloudContactcenterinsightsV1QaScorecard", + "description": "The snapshot of the scorecard at the time of this revision's creation." + }, + "state": { + "description": "Output only. State of the scorecard revision, indicating whether it's ready to be used in analysis.", + "enum": [ + "STATE_UNSPECIFIED", + "EDITABLE", + "TRAINING", + "TRAINING_FAILED", + "READY", + "DELETING", + "TRAINING_CANCELLED" + ], + "enumDescriptions": [ + "Unspecified.", + "The scorecard revision can be edited.", + "Scorecard model training is in progress.", + "Scorecard revision model training failed.", + "The revision can be used in analysis.", + "Scorecard is being deleted.", + "Scorecard model training was explicitly cancelled by the user." + ], + "readOnly": true, + "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup": { - "description": "A message representing a rule in the phrase matcher.", - "id": "GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup", + "GoogleCloudContactcenterinsightsV1QueryMetricsMetadata": { + "description": "The metadata from querying metrics.", + "id": "GoogleCloudContactcenterinsightsV1QueryMetricsMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1QueryMetricsRequest": { + "description": "The request for querying metrics.", + "id": "GoogleCloudContactcenterinsightsV1QueryMetricsRequest", "properties": { - "phraseMatchRules": { - "description": "A list of phrase match rules that are included in this group.", + "dimensions": { + "description": "The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.", "items": { - "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatchRule" + "$ref": "GoogleCloudContactcenterinsightsV1Dimension" }, "type": "array" }, - "type": { - "description": "Required. The type of this phrase match rule group.", + "filter": { + "description": "Required. Filter to select a subset of conversations to compute the metrics. Must specify a window of the conversation create time to compute the metrics. The returned metrics will be from the range [DATE(starting create time), DATE(ending create time)). ", + "type": "string" + }, + "measureMask": { + "description": "Measures to return. Defaults to all measures if this field is unspecified. A valid mask should traverse from the `measure` field from the response. For example, a path from a measure mask to get the conversation count is \"conversation_measure.count\".", + "format": "google-fieldmask", + "type": "string" + }, + "timeGranularity": { + "description": "The time granularity of each data point in the time series. Defaults to NONE if this field is unspecified.", "enum": [ - "PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED", - "ALL_OF", - "ANY_OF" + "TIME_GRANULARITY_UNSPECIFIED", + "NONE", + "DAILY", + "HOURLY", + "PER_MINUTE", + "PER_5_MINUTES" ], "enumDescriptions": [ - "Unspecified.", - "Must meet all phrase match rules or there is no match.", - "If any of the phrase match rules are met, there is a match." + "The time granularity is unspecified and will default to NONE.", + "No time granularity. The response won't contain a time series. This is the default value if no time granularity is specified.", + "Data points in the time series will aggregate at a daily granularity. 1 day means [midnight to midnight).", + "Data points in the time series will aggregate at a daily granularity. 1 HOUR means [01:00 to 02:00).", + "Data points in the time series will aggregate at a daily granularity. PER_MINUTE means [01:00 to 01:01).", + "Data points in the time series will aggregate at a 1 minute granularity. PER_5_MINUTES means [01:00 to 01:05)." ], "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1PhraseMatcher": { - "description": "The phrase matcher resource.", - "id": "GoogleCloudContactcenterinsightsV1PhraseMatcher", + "GoogleCloudContactcenterinsightsV1QueryMetricsResponse": { + "description": "The response for querying metrics.", + "id": "GoogleCloudContactcenterinsightsV1QueryMetricsResponse", "properties": { - "activationUpdateTime": { - "description": "Output only. The most recent time at which the activation status was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "active": { - "description": "Applies the phrase matcher only when it is active.", - "type": "boolean" - }, - "displayName": { - "description": "The human-readable name of the phrase matcher.", + "location": { + "description": "Required. The location of the data. \"projects/{project}/locations/{location}\"", "type": "string" }, - "name": { - "description": "The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}", - "type": "string" + "macroAverageSlice": { + "$ref": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice", + "description": "The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension." }, - "phraseMatchRuleGroups": { - "description": "A list of phase match rule groups that are included in this matcher.", + "slices": { + "description": "A slice contains a total and (if the request specified a time granularity) a time series of metric values. Each slice contains a unique combination of the cardinality of dimensions from the request.", "items": { - "$ref": "GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup" + "$ref": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice" }, "type": "array" }, - "revisionCreateTime": { - "description": "Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.", + "updateTime": { + "description": "The metrics last update time.", "format": "google-datetime", - "readOnly": true, "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice": { + "description": "A slice contains a total and (if the request specified a time granularity) a time series of metric values. Each slice contains a unique combination of the cardinality of dimensions from the request. For example, if the request specifies a single ISSUE dimension and it has a cardinality of 2 (i.e. the data used to compute the metrics has 2 issues in total), the response will have 2 slices: * Slice 1 -\u003e dimensions=[Issue 1] * Slice 2 -\u003e dimensions=[Issue 2]", + "id": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice", + "properties": { + "dimensions": { + "description": "A unique combination of dimensions that this slice represents.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1Dimension" + }, + "type": "array" }, - "revisionId": { - "description": "Output only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567", - "readOnly": true, - "type": "string" + "timeSeries": { + "$ref": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries", + "description": "A time series of metric values. This is only populated if the request specifies a time granularity other than NONE." }, - "roleMatch": { - "description": "The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript.", - "enum": [ - "ROLE_UNSPECIFIED", - "HUMAN_AGENT", - "AUTOMATED_AGENT", - "END_USER", - "ANY_AGENT" - ], - "enumDescriptions": [ - "Participant's role is not set.", - "Participant is a human agent.", - "Participant is an automated agent.", - "Participant is an end user who conversed with the contact center.", - "Participant is either a human or automated agent." - ], - "type": "string" + "total": { + "$ref": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint", + "description": "The total metric value. The interval of this data point is [starting create time, ending create time) from the request." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint": { + "description": "A data point contains the metric values mapped to an interval.", + "id": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint", + "properties": { + "conversationMeasure": { + "$ref": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure", + "description": "The measure related to conversations." }, - "type": { - "description": "Required. The type of this phrase matcher.", - "enum": [ - "PHRASE_MATCHER_TYPE_UNSPECIFIED", - "ALL_OF", - "ANY_OF" - ], - "enumDescriptions": [ - "Unspecified.", - "Must meet all phrase match rule groups or there is no match.", - "If any of the phrase match rule groups are met, there is a match." - ], - "type": "string" + "interval": { + "$ref": "GoogleTypeInterval", + "description": "The interval that this data point represents. * If this is the total data point, the interval is [starting create time, ending create time) from the request. * If this a data point from the time series, the interval is [time, time + time granularity from the request)." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure": { + "description": "The measure related to conversations.", + "id": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure", + "properties": { + "averageAgentSentimentScore": { + "description": "The average agent's sentiment score.", + "format": "float", + "type": "number" }, - "updateTime": { - "description": "Output only. The most recent time at which the phrase matcher was updated.", - "format": "google-datetime", - "readOnly": true, + "averageClientSentimentScore": { + "description": "The average client's sentiment score.", + "format": "float", + "type": "number" + }, + "averageCustomerSatisfactionRating": { + "description": "The average customer satisfaction rating.", + "format": "double", + "type": "number" + }, + "averageDuration": { + "description": "The average duration.", + "format": "google-duration", "type": "string" }, - "versionTag": { - "description": "The customized version tag to use for the phrase matcher. If not specified, it will default to `revision_id`.", + "averageQaNormalizedScore": { + "description": "Average QA normalized score. Will exclude 0's in average calculation.", + "format": "double", + "type": "number" + }, + "averageQaQuestionNormalizedScore": { + "description": "Average QA normalized score averaged for questions averaged across all revisions of the parent scorecard. Will be only populated if the request specifies a dimension of QA_QUESTION_ID.", + "format": "double", + "type": "number" + }, + "averageSilencePercentage": { + "description": "The average silence percentage.", + "format": "float", + "type": "number" + }, + "averageTurnCount": { + "description": "The average turn count.", + "format": "float", + "type": "number" + }, + "conversationCount": { + "description": "The conversation count.", + "format": "int32", + "type": "integer" + }, + "qaTagScores": { + "description": "Average QA normalized score for all the tags.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore": { + "description": "Average QA normalized score for the tag.", + "id": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore", + "properties": { + "averageTagNormalizedScore": { + "description": "Average tag normalized score per tag.", + "format": "double", + "type": "number" + }, + "tag": { + "description": "Tag name.", "type": "string" } }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries": { + "description": "A time series of metric values.", + "id": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries", + "properties": { + "dataPoints": { + "description": "The data points that make up the time series .", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1RedactionConfig": { "description": "DLP resources used for redaction while ingesting conversations. DLP settings are applied to conversations ingested from the `UploadConversation` and `IngestConversations` endpoints, including conversation coming from CCAI Platform. They are not applied to conversations ingested from the `CreateConversation` endpoint or the Dialogflow / Agent Assist runtime integrations. When using Dialogflow / Agent Assist runtime integrations, redaction should be performed in Dialogflow / Agent Assist.", "id": "GoogleCloudContactcenterinsightsV1RedactionConfig", @@ -4111,6 +7118,21 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest": { + "description": "Request for TuneQaScorecardRevision endpoint.", + "id": "GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest", + "properties": { + "filter": { + "description": "Required. Filter for selecting the feedback labels that needs to be used for training. This filter can be used to limit the feedback labels used for tuning to a feedback labels created or updated for a specific time-window etc.", + "type": "string" + }, + "validateOnly": { + "description": "Optional. Run in validate only mode, no fine tuning will actually run. Data quality validations like training data distributions will run. Even when set to false, the data quality validations will still run but once the validations complete we will proceed with the fine tune, if applicable.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata": { "description": "Metadata for undeploying an issue model.", "id": "GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata", @@ -4151,6 +7173,12 @@ "properties": {}, "type": "object" }, + "GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest": { + "description": "The request to undeploy a QaScorecardRevision", + "id": "GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest", + "properties": {}, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1UploadConversationMetadata": { "description": "The metadata for an `UploadConversation` operation.", "id": "GoogleCloudContactcenterinsightsV1UploadConversationMetadata", @@ -4327,6 +7355,13 @@ "description": "All the matched phrase matchers in the call.", "type": "object" }, + "qaScorecardResults": { + "description": "Results of scoring QaScorecards.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult" + }, + "type": "array" + }, "sentiments": { "description": "Overall conversation-level sentiment for each channel of the call.", "items": { @@ -4376,6 +7411,10 @@ }, "type": "array" }, + "qaConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig", + "description": "Configuration for the QA annotator." + }, "runEntityAnnotator": { "description": "Whether to run the entity annotator.", "type": "boolean" @@ -4396,6 +7435,10 @@ "description": "Whether to run the active phrase matcher annotator(s).", "type": "boolean" }, + "runQaAnnotator": { + "description": "Whether to run the QA annotator.", + "type": "boolean" + }, "runSentimentAnnotator": { "description": "Whether to run the sentiment annotator.", "type": "boolean" @@ -4415,6 +7458,31 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig": { + "description": "Configuration for the QA feature.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig", + "properties": { + "scorecardList": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList", + "description": "A manual list of scorecards to score." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList": { + "description": "Container for a list of scorecards.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList", + "properties": { + "qaScorecardRevisions": { + "description": "List of QaScorecardRevisions.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig": { "description": "Configuration for summarization.", "id": "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig", @@ -5311,6 +8379,135 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1Dimension": { + "description": "A dimension determines the grouping key for the query. In SQL terms, these would be part of both the \"SELECT\" and \"GROUP BY\" clauses.", + "id": "GoogleCloudContactcenterinsightsV1alpha1Dimension", + "properties": { + "agentDimensionMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata", + "description": "Output only. Metadata about the agent dimension.", + "readOnly": true + }, + "dimensionKey": { + "description": "The key of the dimension.", + "enum": [ + "DIMENSION_KEY_UNSPECIFIED", + "ISSUE", + "AGENT", + "AGENT_TEAM", + "QA_QUESTION_ID", + "QA_QUESTION_ANSWER_VALUE", + "CONVERSATION_PROFILE_ID" + ], + "enumDescriptions": [ + "The key of the dimension is unspecified.", + "The dimension is keyed by issues.", + "The dimension is keyed by agents.", + "The dimension is keyed by agent teams.", + "The dimension is keyed by QaQuestionIds. Note that: We only group by the QuestionId and not the revision-id of the scorecard this question is a part of. This allows for showing stats for the same question across different scorecard revisions.", + "The dimension is keyed by QaQuestionIds-Answer value pairs. Note that: We only group by the QuestionId and not the revision-id of the scorecard this question is a part of. This allows for showing distribution of answers per question across different scorecard revisions.", + "The dimension is keyed by the conversation profile ID." + ], + "type": "string" + }, + "issueDimensionMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata", + "description": "Output only. Metadata about the issue dimension.", + "readOnly": true + }, + "qaQuestionAnswerDimensionMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata", + "description": "Output only. Metadata about the QA question-answer dimension.", + "readOnly": true + }, + "qaQuestionDimensionMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata", + "description": "Output only. Metadata about the QA question dimension.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata": { + "description": "Metadata about the agent dimension.", + "id": "GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata", + "properties": { + "agentDisplayName": { + "description": "Optional. The agent's name", + "type": "string" + }, + "agentId": { + "description": "Optional. A user-specified string representing the agent.", + "type": "string" + }, + "agentTeam": { + "description": "Optional. A user-specified string representing the agent's team.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata": { + "description": "Metadata about the issue dimension.", + "id": "GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata", + "properties": { + "issueDisplayName": { + "description": "The issue display name.", + "type": "string" + }, + "issueId": { + "description": "The issue ID.", + "type": "string" + }, + "issueModelId": { + "description": "The parent issue model ID.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata": { + "description": "Metadata about the QA question-answer dimension. This is useful for showing the answer distribution for questions for a given scorecard.", + "id": "GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata", + "properties": { + "answerValue": { + "description": "Optional. The full body of the question.", + "type": "string" + }, + "qaQuestionId": { + "description": "Optional. The QA question ID.", + "type": "string" + }, + "qaScorecardId": { + "description": "Optional. The QA scorecard ID.", + "type": "string" + }, + "questionBody": { + "description": "Optional. The full body of the question.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata": { + "description": "Metadata about the QA question dimension.", + "id": "GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata", + "properties": { + "qaQuestionId": { + "description": "Optional. The QA question ID.", + "type": "string" + }, + "qaScorecardId": { + "description": "Optional. The QA scorecard ID.", + "type": "string" + }, + "questionBody": { + "description": "Optional. The full body of the question.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec": { "description": "A customer-managed encryption key specification that can be applied to all created resources (e.g. `Conversation`).", "id": "GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec", @@ -5581,16 +8778,51 @@ "description": "Map that contains metadata about the FAQ answer and the document that it originates from.", "type": "object" }, - "queryRecord": { - "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", + "queryRecord": { + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", + "type": "string" + }, + "question": { + "description": "The corresponding FAQ question.", + "type": "string" + }, + "source": { + "description": "The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel": { + "description": "Represents a conversation, resource, and label provided by the user.", + "id": "GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel", + "properties": { + "createTime": { + "description": "Output only. Create time of the label.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "label": { + "description": "String label.", "type": "string" }, - "question": { - "description": "The corresponding FAQ question.", + "labeledResource": { + "description": "Resource name of the resource to be labeled.", "type": "string" }, - "source": { - "description": "The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}.", + "name": { + "description": "Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}", + "type": "string" + }, + "qaAnswerLabel": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue", + "description": "QaAnswer label." + }, + "updateTime": { + "description": "Output only. Update time of the label.", + "format": "google-datetime", + "readOnly": true, "type": "string" } }, @@ -6040,129 +9272,558 @@ "readOnly": true, "type": "string" }, - "trainingStats": { - "$ref": "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats", - "description": "Output only. Immutable. The issue model's label statistics on its training data.", - "readOnly": true + "trainingStats": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats", + "description": "Output only. Immutable. The issue model's label statistics on its training data.", + "readOnly": true + }, + "updateTime": { + "description": "Output only. The most recent time at which the issue model was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig": { + "description": "Configs for the input data used to create the issue model.", + "id": "GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig", + "properties": { + "filter": { + "description": "A filter to reduce the conversations used for training the model to a specific subset.", + "type": "string" + }, + "medium": { + "deprecated": true, + "description": "Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the `medium` field on `filter`.", + "enum": [ + "MEDIUM_UNSPECIFIED", + "PHONE_CALL", + "CHAT" + ], + "enumDescriptions": [ + "Default value, if unspecified will default to PHONE_CALL.", + "The format for conversations that took place over the phone.", + "The format for conversations that took place over chat." + ], + "type": "string" + }, + "trainingConversationsCount": { + "description": "Output only. Number of conversations used in training. Output only.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats": { + "description": "Aggregated statistics about an issue model.", + "id": "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats", + "properties": { + "analyzedConversationsCount": { + "description": "Number of conversations the issue model has analyzed at this point in time.", + "format": "int64", + "type": "string" + }, + "issueStats": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats" + }, + "description": "Statistics on each issue. Key is the issue's resource name.", + "type": "object" + }, + "unclassifiedConversationsCount": { + "description": "Number of analyzed conversations for which no issue was applicable at this point in time.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats": { + "description": "Aggregated statistics about an issue.", + "id": "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats", + "properties": { + "displayName": { + "description": "Display name of the issue.", + "type": "string" + }, + "issue": { + "description": "Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}", + "type": "string" + }, + "labeledConversationsCount": { + "description": "Number of conversations attached to the issue at this point in time.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1IssueModelResult": { + "description": "Issue Modeling result on a conversation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1IssueModelResult", + "properties": { + "issueModel": { + "description": "Issue model that generates the result. Format: projects/{project}/locations/{location}/issueModels/{issue_model}", + "type": "string" + }, + "issues": { + "description": "All the matched issues.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1IssueAssignment" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse": { + "description": "The response for listing all feedback labels.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse", + "properties": { + "feedbackLabels": { + "description": "The feedback labels that match the request.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse": { + "description": "The response for listing feedback labels.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse", + "properties": { + "feedbackLabels": { + "description": "The feedback labels that match the request.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The next page token.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData": { + "description": "The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match.", + "id": "GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData", + "properties": { + "displayName": { + "description": "The human-readable name of the phrase matcher.", + "type": "string" + }, + "phraseMatcher": { + "description": "The unique identifier (the resource name) of the phrase matcher.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1QaAnswer": { + "description": "An answer to a QaQuestion.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QaAnswer", + "properties": { + "answerSources": { + "description": "List of all individual answers given to the question.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource" + }, + "type": "array" + }, + "answerValue": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue", + "description": "The main answer value, incorporating any manual edits if they exist." + }, + "conversation": { + "description": "The conversation the answer applies to.", + "type": "string" + }, + "potentialScore": { + "description": "The maximum potential score of the question. If the question was answered using `na_value`, this field will be zero.", + "format": "double", + "type": "number" + }, + "qaQuestion": { + "description": "The QaQuestion answered by this answer.", + "type": "string" + }, + "questionBody": { + "description": "Question text. E.g., \"Did the agent greet the customer?\"", + "type": "string" + }, + "tags": { + "description": "User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource": { + "description": "A question may have multiple answers from varying sources, one of which becomes the \"main\" answer above. AnswerSource represents each individual answer.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource", + "properties": { + "answerValue": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue", + "description": "The answer value from this source." + }, + "sourceType": { + "description": "What created the answer.", + "enum": [ + "SOURCE_TYPE_UNSPECIFIED", + "SYSTEM_GENERATED", + "MANUAL_EDIT" + ], + "enumDescriptions": [ + "Source type is unspecified.", + "Answer was system-generated; created during an Insights analysis.", + "Answer was created by a human via manual edit." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue": { + "description": "Message for holding the value of the answer. QaQuestion.AnswerChoice defines the possible answer values for a question.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue", + "properties": { + "boolValue": { + "description": "Boolean value.", + "type": "boolean" + }, + "key": { + "description": "A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.", + "type": "string" + }, + "naValue": { + "description": "A value of \"Not Applicable (N/A)\".", + "type": "boolean" + }, + "numValue": { + "description": "Numerical value.", + "format": "double", + "type": "number" + }, + "score": { + "description": "Numerical score of the answer.", + "format": "double", + "type": "number" + }, + "strValue": { + "description": "String value.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult": { + "description": "The results of scoring a single conversation against a QaScorecard. Contains a collection of QaAnswers and aggregate score.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult", + "properties": { + "agentId": { + "description": "ID of the agent that handled the conversation.", + "type": "string" + }, + "conversation": { + "description": "The conversation scored by this result.", + "type": "string" + }, + "createTime": { + "description": "Output only. The timestamp that the revision was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the scorecard result. Format: projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result}", + "type": "string" + }, + "normalizedScore": { + "description": "The normalized score, which is the score divided by the potential score. Any manual edits are included if they exist.", + "format": "double", + "type": "number" + }, + "potentialScore": { + "description": "The maximum potential overall score of the scorecard. Any questions answered using `na_value` are excluded from this calculation.", + "format": "double", + "type": "number" + }, + "qaAnswers": { + "description": "Set of QaAnswers represented in the result.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QaAnswer" + }, + "type": "array" + }, + "qaScorecardRevision": { + "description": "The QaScorecardRevision scored by this result.", + "type": "string" + }, + "qaTagResults": { + "description": "Collection of tags and their scores.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult" + }, + "type": "array" + }, + "score": { + "description": "The overall numerical score of the result, incorporating any manual edits if they exist.", + "format": "double", + "type": "number" + }, + "scoreSources": { + "description": "List of all individual score sets.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult": { + "description": "Tags and their corresponding results.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult", + "properties": { + "normalizedScore": { + "description": "The normalized score the tag applies to.", + "format": "double", + "type": "number" + }, + "potentialScore": { + "description": "The potential score the tag applies to.", + "format": "double", + "type": "number" }, - "updateTime": { - "description": "Output only. The most recent time at which the issue model was updated.", - "format": "google-datetime", - "readOnly": true, + "score": { + "description": "The score the tag applies to.", + "format": "double", + "type": "number" + }, + "tag": { + "description": "The tag the score applies to.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig": { - "description": "Configs for the input data used to create the issue model.", - "id": "GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig", + "GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource": { + "description": "A scorecard result may have multiple sets of scores from varying sources, one of which becomes the \"main\" answer above. A ScoreSource represents each individual set of scores.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource", "properties": { - "filter": { - "description": "A filter to reduce the conversations used for training the model to a specific subset.", - "type": "string" + "normalizedScore": { + "description": "The normalized score, which is the score divided by the potential score.", + "format": "double", + "type": "number" }, - "medium": { - "deprecated": true, - "description": "Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the `medium` field on `filter`.", + "potentialScore": { + "description": "The maximum potential overall score of the scorecard. Any questions answered using `na_value` are excluded from this calculation.", + "format": "double", + "type": "number" + }, + "qaTagResults": { + "description": "Collection of tags and their scores.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult" + }, + "type": "array" + }, + "score": { + "description": "The overall numerical score of the result.", + "format": "double", + "type": "number" + }, + "sourceType": { + "description": "What created the score.", "enum": [ - "MEDIUM_UNSPECIFIED", - "PHONE_CALL", - "CHAT" + "SOURCE_TYPE_UNSPECIFIED", + "SYSTEM_GENERATED_ONLY", + "INCLUDES_MANUAL_EDITS" ], "enumDescriptions": [ - "Default value, if unspecified will default to PHONE_CALL.", - "The format for conversations that took place over the phone.", - "The format for conversations that took place over chat." + "Source type is unspecified.", + "Score is derived only from system-generated answers.", + "Score is derived from both system-generated answers, and includes any manual edits if they exist." ], "type": "string" - }, - "trainingConversationsCount": { - "description": "Output only. Number of conversations used in training. Output only.", - "format": "int64", - "readOnly": true, - "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats": { - "description": "Aggregated statistics about an issue model.", - "id": "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats", + "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata": { + "description": "The metadata from querying metrics.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse": { + "description": "The response for querying metrics.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse", "properties": { - "analyzedConversationsCount": { - "description": "Number of conversations the issue model has analyzed at this point in time.", - "format": "int64", + "location": { + "description": "Required. The location of the data. \"projects/{project}/locations/{location}\"", "type": "string" }, - "issueStats": { - "additionalProperties": { - "$ref": "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats" + "macroAverageSlice": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice", + "description": "The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension." + }, + "slices": { + "description": "A slice contains a total and (if the request specified a time granularity) a time series of metric values. Each slice contains a unique combination of the cardinality of dimensions from the request.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice" }, - "description": "Statistics on each issue. Key is the issue's resource name.", - "type": "object" + "type": "array" }, - "unclassifiedConversationsCount": { - "description": "Number of analyzed conversations for which no issue was applicable at this point in time.", - "format": "int64", + "updateTime": { + "description": "The metrics last update time.", + "format": "google-datetime", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats": { - "description": "Aggregated statistics about an issue.", - "id": "GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats", + "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice": { + "description": "A slice contains a total and (if the request specified a time granularity) a time series of metric values. Each slice contains a unique combination of the cardinality of dimensions from the request. For example, if the request specifies a single ISSUE dimension and it has a cardinality of 2 (i.e. the data used to compute the metrics has 2 issues in total), the response will have 2 slices: * Slice 1 -\u003e dimensions=[Issue 1] * Slice 2 -\u003e dimensions=[Issue 2]", + "id": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice", "properties": { - "displayName": { - "description": "Display name of the issue.", - "type": "string" + "dimensions": { + "description": "A unique combination of dimensions that this slice represents.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1Dimension" + }, + "type": "array" }, - "issue": { - "description": "Issue resource. Format: projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}", - "type": "string" + "timeSeries": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries", + "description": "A time series of metric values. This is only populated if the request specifies a time granularity other than NONE." }, - "labeledConversationsCount": { - "description": "Number of conversations attached to the issue at this point in time.", - "format": "int64", - "type": "string" + "total": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint", + "description": "The total metric value. The interval of this data point is [starting create time, ending create time) from the request." } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1alpha1IssueModelResult": { - "description": "Issue Modeling result on a conversation.", - "id": "GoogleCloudContactcenterinsightsV1alpha1IssueModelResult", + "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint": { + "description": "A data point contains the metric values mapped to an interval.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint", "properties": { - "issueModel": { - "description": "Issue model that generates the result. Format: projects/{project}/locations/{location}/issueModels/{issue_model}", + "conversationMeasure": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure", + "description": "The measure related to conversations." + }, + "interval": { + "$ref": "GoogleTypeInterval", + "description": "The interval that this data point represents. * If this is the total data point, the interval is [starting create time, ending create time) from the request. * If this a data point from the time series, the interval is [time, time + time granularity from the request)." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure": { + "description": "The measure related to conversations.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure", + "properties": { + "averageAgentSentimentScore": { + "description": "The average agent's sentiment score.", + "format": "float", + "type": "number" + }, + "averageClientSentimentScore": { + "description": "The average client's sentiment score.", + "format": "float", + "type": "number" + }, + "averageCustomerSatisfactionRating": { + "description": "The average customer satisfaction rating.", + "format": "double", + "type": "number" + }, + "averageDuration": { + "description": "The average duration.", + "format": "google-duration", "type": "string" }, - "issues": { - "description": "All the matched issues.", + "averageQaNormalizedScore": { + "description": "Average QA normalized score. Will exclude 0's in average calculation.", + "format": "double", + "type": "number" + }, + "averageQaQuestionNormalizedScore": { + "description": "Average QA normalized score averaged for questions averaged across all revisions of the parent scorecard. Will be only populated if the request specifies a dimension of QA_QUESTION_ID.", + "format": "double", + "type": "number" + }, + "averageSilencePercentage": { + "description": "The average silence percentage.", + "format": "float", + "type": "number" + }, + "averageTurnCount": { + "description": "The average turn count.", + "format": "float", + "type": "number" + }, + "conversationCount": { + "description": "The conversation count.", + "format": "int32", + "type": "integer" + }, + "qaTagScores": { + "description": "Average QA normalized score for all the tags.", "items": { - "$ref": "GoogleCloudContactcenterinsightsV1alpha1IssueAssignment" + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore" }, "type": "array" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData": { - "description": "The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match.", - "id": "GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData", + "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore": { + "description": "Average QA normalized score for the tag.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore", "properties": { - "displayName": { - "description": "The human-readable name of the phrase matcher.", - "type": "string" + "averageTagNormalizedScore": { + "description": "Average tag normalized score per tag.", + "format": "double", + "type": "number" }, - "phraseMatcher": { - "description": "The unique identifier (the resource name) of the phrase matcher.", + "tag": { + "description": "Tag name.", "type": "string" } }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries": { + "description": "A time series of metric values.", + "id": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries", + "properties": { + "dataPoints": { + "description": "The data points that make up the time series .", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1RedactionConfig": { "description": "DLP resources used for redaction while ingesting conversations. DLP settings are applied to conversations ingested from the `UploadConversation` and `IngestConversations` endpoints, including conversation coming from CCAI Platform. They are not applied to conversations ingested from the `CreateConversation` endpoint or the Dialogflow / Agent Assist runtime integrations. When using Dialogflow / Agent Assist runtime integrations, redaction should be performed in Dialogflow / Agent Assist.", "id": "GoogleCloudContactcenterinsightsV1alpha1RedactionConfig", @@ -6452,6 +10113,151 @@ }, "type": "object" }, + "GoogleIamV1AuditConfig": { + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", + "id": "GoogleIamV1AuditConfig", + "properties": { + "auditLogConfigs": { + "description": "The configuration for logging of each type of permission.", + "items": { + "$ref": "GoogleIamV1AuditLogConfig" + }, + "type": "array" + }, + "service": { + "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1AuditLogConfig": { + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "id": "GoogleIamV1AuditLogConfig", + "properties": { + "exemptedMembers": { + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", + "items": { + "type": "string" + }, + "type": "array" + }, + "logType": { + "description": "The log type that this config enables.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1Binding": { + "description": "Associates `members`, or principals, with a `role`.", + "id": "GoogleIamV1Binding", + "properties": { + "condition": { + "$ref": "GoogleTypeExpr", + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + }, + "members": { + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1Policy": { + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "id": "GoogleIamV1Policy", + "properties": { + "auditConfigs": { + "description": "Specifies cloud audit logging configuration for this policy.", + "items": { + "$ref": "GoogleIamV1AuditConfig" + }, + "type": "array" + }, + "bindings": { + "description": "Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.", + "items": { + "$ref": "GoogleIamV1Binding" + }, + "type": "array" + }, + "etag": { + "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", + "format": "byte", + "type": "string" + }, + "version": { + "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleIamV1SetIamPolicyRequest": { + "description": "Request message for `SetIamPolicy` method.", + "id": "GoogleIamV1SetIamPolicyRequest", + "properties": { + "policy": { + "$ref": "GoogleIamV1Policy", + "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them." + }, + "updateMask": { + "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, + "GoogleIamV1TestIamPermissionsRequest": { + "description": "Request message for `TestIamPermissions` method.", + "id": "GoogleIamV1TestIamPermissionsRequest", + "properties": { + "permissions": { + "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleIamV1TestIamPermissionsResponse": { + "description": "Response message for `TestIamPermissions` method.", + "id": "GoogleIamV1TestIamPermissionsResponse", + "properties": { + "permissions": { + "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleLongrunningListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "GoogleLongrunningListOperationsResponse", @@ -6537,6 +10343,46 @@ } }, "type": "object" + }, + "GoogleTypeExpr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "GoogleTypeExpr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleTypeInterval": { + "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", + "id": "GoogleTypeInterval", + "properties": { + "endTime": { + "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index a40e9492929..ddae4756f9e 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -168,12 +168,16 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} + rs.AnalysisRules = NewProjectsLocationsAnalysisRulesService(s) + rs.AuthorizedViewSet = NewProjectsLocationsAuthorizedViewSetService(s) + rs.AuthorizedViewSets = NewProjectsLocationsAuthorizedViewSetsService(s) rs.Conversations = NewProjectsLocationsConversationsService(s) rs.EncryptionSpec = NewProjectsLocationsEncryptionSpecService(s) rs.Insightsdata = NewProjectsLocationsInsightsdataService(s) rs.IssueModels = NewProjectsLocationsIssueModelsService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.PhraseMatchers = NewProjectsLocationsPhraseMatchersService(s) + rs.QaScorecards = NewProjectsLocationsQaScorecardsService(s) rs.Views = NewProjectsLocationsViewsService(s) return rs } @@ -181,6 +185,12 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service + AnalysisRules *ProjectsLocationsAnalysisRulesService + + AuthorizedViewSet *ProjectsLocationsAuthorizedViewSetService + + AuthorizedViewSets *ProjectsLocationsAuthorizedViewSetsService + Conversations *ProjectsLocationsConversationsService EncryptionSpec *ProjectsLocationsEncryptionSpecService @@ -193,12 +203,138 @@ type ProjectsLocationsService struct { PhraseMatchers *ProjectsLocationsPhraseMatchersService + QaScorecards *ProjectsLocationsQaScorecardsService + Views *ProjectsLocationsViewsService } +func NewProjectsLocationsAnalysisRulesService(s *Service) *ProjectsLocationsAnalysisRulesService { + rs := &ProjectsLocationsAnalysisRulesService{s: s} + return rs +} + +type ProjectsLocationsAnalysisRulesService struct { + s *Service +} + +func NewProjectsLocationsAuthorizedViewSetService(s *Service) *ProjectsLocationsAuthorizedViewSetService { + rs := &ProjectsLocationsAuthorizedViewSetService{s: s} + rs.AuthorizedView = NewProjectsLocationsAuthorizedViewSetAuthorizedViewService(s) + rs.AuthorizedViews = NewProjectsLocationsAuthorizedViewSetAuthorizedViewsService(s) + return rs +} + +type ProjectsLocationsAuthorizedViewSetService struct { + s *Service + + AuthorizedView *ProjectsLocationsAuthorizedViewSetAuthorizedViewService + + AuthorizedViews *ProjectsLocationsAuthorizedViewSetAuthorizedViewsService +} + +func NewProjectsLocationsAuthorizedViewSetAuthorizedViewService(s *Service) *ProjectsLocationsAuthorizedViewSetAuthorizedViewService { + rs := &ProjectsLocationsAuthorizedViewSetAuthorizedViewService{s: s} + return rs +} + +type ProjectsLocationsAuthorizedViewSetAuthorizedViewService struct { + s *Service +} + +func NewProjectsLocationsAuthorizedViewSetAuthorizedViewsService(s *Service) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsService { + rs := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsService{s: s} + rs.Conversations = NewProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService(s) + return rs +} + +type ProjectsLocationsAuthorizedViewSetAuthorizedViewsService struct { + s *Service + + Conversations *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService +} + +func NewProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService(s *Service) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService { + rs := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService{s: s} + rs.FeedbackLabels = NewProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService(s) + return rs +} + +type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsService struct { + s *Service + + FeedbackLabels *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService +} + +func NewProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService(s *Service) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService { + rs := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService{s: s} + return rs +} + +type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService struct { + s *Service +} + +func NewProjectsLocationsAuthorizedViewSetsService(s *Service) *ProjectsLocationsAuthorizedViewSetsService { + rs := &ProjectsLocationsAuthorizedViewSetsService{s: s} + rs.AuthorizedViews = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsService(s) + return rs +} + +type ProjectsLocationsAuthorizedViewSetsService struct { + s *Service + + AuthorizedViews *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService +} + +func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService { + rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService{s: s} + rs.Conversations = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService(s) + rs.Operations = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService(s) + return rs +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService struct { + s *Service + + Conversations *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService + + Operations *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService +} + +func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService { + rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService{s: s} + rs.Analyses = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService(s) + return rs +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService struct { + s *Service + + Analyses *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService +} + +func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService { + rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService{s: s} + return rs +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService struct { + s *Service +} + +func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService { + rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService{s: s} + return rs +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService struct { + s *Service +} + func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConversationsService { rs := &ProjectsLocationsConversationsService{s: s} rs.Analyses = NewProjectsLocationsConversationsAnalysesService(s) + rs.FeedbackLabels = NewProjectsLocationsConversationsFeedbackLabelsService(s) return rs } @@ -206,6 +342,8 @@ type ProjectsLocationsConversationsService struct { s *Service Analyses *ProjectsLocationsConversationsAnalysesService + + FeedbackLabels *ProjectsLocationsConversationsFeedbackLabelsService } func NewProjectsLocationsConversationsAnalysesService(s *Service) *ProjectsLocationsConversationsAnalysesService { @@ -217,6 +355,15 @@ type ProjectsLocationsConversationsAnalysesService struct { s *Service } +func NewProjectsLocationsConversationsFeedbackLabelsService(s *Service) *ProjectsLocationsConversationsFeedbackLabelsService { + rs := &ProjectsLocationsConversationsFeedbackLabelsService{s: s} + return rs +} + +type ProjectsLocationsConversationsFeedbackLabelsService struct { + s *Service +} + func NewProjectsLocationsEncryptionSpecService(s *Service) *ProjectsLocationsEncryptionSpecService { rs := &ProjectsLocationsEncryptionSpecService{s: s} return rs @@ -274,6 +421,39 @@ type ProjectsLocationsPhraseMatchersService struct { s *Service } +func NewProjectsLocationsQaScorecardsService(s *Service) *ProjectsLocationsQaScorecardsService { + rs := &ProjectsLocationsQaScorecardsService{s: s} + rs.Revisions = NewProjectsLocationsQaScorecardsRevisionsService(s) + return rs +} + +type ProjectsLocationsQaScorecardsService struct { + s *Service + + Revisions *ProjectsLocationsQaScorecardsRevisionsService +} + +func NewProjectsLocationsQaScorecardsRevisionsService(s *Service) *ProjectsLocationsQaScorecardsRevisionsService { + rs := &ProjectsLocationsQaScorecardsRevisionsService{s: s} + rs.QaQuestions = NewProjectsLocationsQaScorecardsRevisionsQaQuestionsService(s) + return rs +} + +type ProjectsLocationsQaScorecardsRevisionsService struct { + s *Service + + QaQuestions *ProjectsLocationsQaScorecardsRevisionsQaQuestionsService +} + +func NewProjectsLocationsQaScorecardsRevisionsQaQuestionsService(s *Service) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsService { + rs := &ProjectsLocationsQaScorecardsRevisionsQaQuestionsService{s: s} + return rs +} + +type ProjectsLocationsQaScorecardsRevisionsQaQuestionsService struct { + s *Service +} + func NewProjectsLocationsViewsService(s *Service) *ProjectsLocationsViewsService { rs := &ProjectsLocationsViewsService{s: s} return rs @@ -358,6 +538,8 @@ type GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata struct IssueModelResult *GoogleCloudContactcenterinsightsV1IssueModelResult `json:"issueModelResult,omitempty"` // PhraseMatchers: All the matched phrase matchers in the call. PhraseMatchers map[string]GoogleCloudContactcenterinsightsV1PhraseMatchData `json:"phraseMatchers,omitempty"` + // QaScorecardResults: Results of scoring QaScorecards. + QaScorecardResults []*GoogleCloudContactcenterinsightsV1QaScorecardResult `json:"qaScorecardResults,omitempty"` // Sentiments: Overall conversation-level sentiment for each channel of the // call. Sentiments []*GoogleCloudContactcenterinsightsV1ConversationLevelSentiment `json:"sentiments,omitempty"` @@ -381,6 +563,75 @@ func (s GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata) Ma return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1AnalysisRule: The CCAI Insights project +// wide analysis rule. This rule will be applied to all conversations that +// match the filter defined in the rule. For a conversation matches the filter, +// the annotators specified in the rule will be run. If a conversation matches +// multiple rules, a union of all the annotators will be run. One project can +// have multiple analysis rules. +type GoogleCloudContactcenterinsightsV1AnalysisRule struct { + // Active: If true, apply this rule to conversations. Otherwise, this rule is + // inactive and saved as a draft. + Active bool `json:"active,omitempty"` + // AnalysisPercentage: Percentage of conversations that we should apply this + // analysis setting automatically, between [0, 1]. For example, 0.1 means 10%. + // Conversations are sampled in a determenestic way. The original + // runtime_percentage & upload percentage will be replaced by defining filters + // on the conversation. + AnalysisPercentage float64 `json:"analysisPercentage,omitempty"` + // AnnotatorSelector: Selector of annotators to run and the phrase matchers to + // use for conversations that matches the conversation_filter. If not + // specified, NO annotators will be run. + AnnotatorSelector *GoogleCloudContactcenterinsightsV1AnnotatorSelector `json:"annotatorSelector,omitempty"` + // ConversationFilter: Filter for the conversations that should apply this + // analysis rule. An empty filter means this analysis rule applies to all + // conversations. + ConversationFilter string `json:"conversationFilter,omitempty"` + // CreateTime: Output only. The time at which this analysis rule was created. + CreateTime string `json:"createTime,omitempty"` + // DisplayName: Display Name of the analysis rule. + DisplayName string `json:"displayName,omitempty"` + // Name: Identifier. The resource name of the analysis rule. Format: + // projects/{project}/locations/{location}/analysisRules/{analysis_rule} + Name string `json:"name,omitempty"` + // UpdateTime: Output only. The most recent time at which this analysis rule + // was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Active") 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. "Active") 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 GoogleCloudContactcenterinsightsV1AnalysisRule) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1AnalysisRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1AnalysisRule) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1AnalysisRule + var s1 struct { + AnalysisPercentage gensupport.JSONFloat64 `json:"analysisPercentage"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AnalysisPercentage = float64(s1.AnalysisPercentage) + return nil +} + // GoogleCloudContactcenterinsightsV1AnnotationBoundary: A point in a // conversation that marks the start or the end of an annotation. type GoogleCloudContactcenterinsightsV1AnnotationBoundary struct { @@ -423,6 +674,8 @@ type GoogleCloudContactcenterinsightsV1AnnotatorSelector struct { // run_phrase_matcher_annotator is set to true. Format: // projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} PhraseMatchers []string `json:"phraseMatchers,omitempty"` + // QaConfig: Configuration for the QA annotator. + QaConfig *GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig `json:"qaConfig,omitempty"` // RunEntityAnnotator: Whether to run the entity annotator. RunEntityAnnotator bool `json:"runEntityAnnotator,omitempty"` // RunIntentAnnotator: Whether to run the intent annotator. @@ -435,6 +688,8 @@ type GoogleCloudContactcenterinsightsV1AnnotatorSelector struct { // RunPhraseMatcherAnnotator: Whether to run the active phrase matcher // annotator(s). RunPhraseMatcherAnnotator bool `json:"runPhraseMatcherAnnotator,omitempty"` + // RunQaAnnotator: Whether to run the QA annotator. + RunQaAnnotator bool `json:"runQaAnnotator,omitempty"` // RunSentimentAnnotator: Whether to run the sentiment annotator. RunSentimentAnnotator bool `json:"runSentimentAnnotator,omitempty"` // RunSilenceAnnotator: Whether to run the silence annotator. @@ -461,6 +716,52 @@ func (s GoogleCloudContactcenterinsightsV1AnnotatorSelector) MarshalJSON() ([]by return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig: Configuration +// for the QA feature. +type GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig struct { + // ScorecardList: A manual list of scorecards to score. + ScorecardList *GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList `json:"scorecardList,omitempty"` + // ForceSendFields is a list of field names (e.g. "ScorecardList") 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. "ScorecardList") 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 GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList: +// Container for a list of scorecards. +type GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList struct { + // QaScorecardRevisions: List of QaScorecardRevisions. + QaScorecardRevisions []string `json:"qaScorecardRevisions,omitempty"` + // ForceSendFields is a list of field names (e.g. "QaScorecardRevisions") 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. "QaScorecardRevisions") 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 GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig: // Configuration for summarization. type GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig struct { @@ -758,111 +1059,339 @@ func (s GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest) Marsha type GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse struct { } -// GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse: Response -// of querying an issue model's statistics. -type GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse struct { - // CurrentStats: The latest label statistics for the queried issue model. - // Includes results on both training data and data labeled after deployment. - CurrentStats *GoogleCloudContactcenterinsightsV1IssueModelLabelStats `json:"currentStats,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CurrentStats") to +// GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata: +// Metadata for the BulkDownloadFeedbackLabel endpoint. +type GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // DownloadStats: Output only. Statistics for BulkDownloadFeedbackLabels + // operation. + DownloadStats *GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats `json:"downloadStats,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // PartialErrors: Partial errors during ingest operation that might cause the + // operation output to be incomplete. + PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` + // Request: Output only. The original request for download. + Request *GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CurrentStats") to include in API + // NullFields is a list of field names (e.g. "CreateTime") 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 GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse +func (s GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1CalculateStatsResponse: The response for -// calculating conversation statistics. -type GoogleCloudContactcenterinsightsV1CalculateStatsResponse struct { - // AverageDuration: The average duration of all conversations. The average is - // calculated using only conversations that have a time duration. - AverageDuration string `json:"averageDuration,omitempty"` - // AverageTurnCount: The average number of turns per conversation. - AverageTurnCount int64 `json:"averageTurnCount,omitempty"` - // ConversationCount: The total number of conversations. - ConversationCount int64 `json:"conversationCount,omitempty"` - // ConversationCountTimeSeries: A time series representing the count of - // conversations created over time that match that requested filter criteria. - ConversationCountTimeSeries *GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries `json:"conversationCountTimeSeries,omitempty"` - // CustomHighlighterMatches: A map associating each custom highlighter resource - // name with its respective number of matches in the set of conversations. - CustomHighlighterMatches map[string]int64 `json:"customHighlighterMatches,omitempty"` - // IssueMatches: A map associating each issue resource name with its respective - // number of matches in the set of conversations. Key has the format: - // `projects//locations//issueModels//issues/` Deprecated, use - // `issue_matches_stats` field instead. - IssueMatches map[string]int64 `json:"issueMatches,omitempty"` - // IssueMatchesStats: A map associating each issue resource name with its - // respective number of matches in the set of conversations. Key has the - // format: `projects//locations//issueModels//issues/` - IssueMatchesStats map[string]GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats `json:"issueMatchesStats,omitempty"` - // SmartHighlighterMatches: A map associating each smart highlighter display - // name with its respective number of matches in the set of conversations. - SmartHighlighterMatches map[string]int64 `json:"smartHighlighterMatches,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AverageDuration") to +// GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadS +// tats: Statistics for BulkDownloadFeedbackLabels operation. +type GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats struct { + // FileNames: Output only. Full name of the files written to Cloud storage. + FileNames []string `json:"fileNames,omitempty"` + // ProcessedObjectCount: The number of objects processed during the download + // operation. + ProcessedObjectCount int64 `json:"processedObjectCount,omitempty"` + // SuccessfulDownloadCount: The number of new feedback labels downloaded during + // this operation. Different from "processed" because some labels might not be + // downloaded because an error. + SuccessfulDownloadCount int64 `json:"successfulDownloadCount,omitempty"` + // TotalFilesWritten: Total number of files written to the provided Cloud + // Storage bucket. + TotalFilesWritten int64 `json:"totalFilesWritten,omitempty"` + // ForceSendFields is a list of field names (e.g. "FileNames") 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. "AverageDuration") 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. "FileNames") 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 GoogleCloudContactcenterinsightsV1CalculateStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1CalculateStatsResponse +func (s GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries: A time -// series representing conversations over time. -type GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries struct { - // IntervalDuration: The duration of each interval. - IntervalDuration string `json:"intervalDuration,omitempty"` - // Points: An ordered list of intervals from earliest to latest, where each - // interval represents the number of conversations that transpired during the - // time window. - Points []*GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval `json:"points,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntervalDuration") to +// GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest: Request +// for the BulkDownloadFeedbackLabel endpoint. +type GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest struct { + // ConversationFilter: Optional. Filter parent conversations to download + // feedback labels for. When specified, the feedback labels will be downloaded + // for the conversations that match the filter. If `template_qa_scorecard_id` + // is set, all the conversations that match the filter will be paired with the + // questions under the scorecard for labeling. + ConversationFilter string `json:"conversationFilter,omitempty"` + // FeedbackLabelType: Optional. The type of feedback labels that will be + // downloaded. + // + // Possible values: + // "FEEDBACK_LABEL_TYPE_UNSPECIFIED" - Unspecified format + // "QUALITY_AI" - Downloaded file will contain all Quality AI labels from the + // latest scorecard revision. + // "TOPIC_MODELING" - Downloaded file will contain only Topic Modeling + // 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: * + // `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 + Filter string `json:"filter,omitempty"` + // GcsDestination: A cloud storage bucket destination. + GcsDestination *GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination `json:"gcsDestination,omitempty"` + // MaxDownloadCount: Optional. Limits the maximum number of feedback labels + // that will be downloaded. The first `N` feedback labels will be downloaded. + MaxDownloadCount int64 `json:"maxDownloadCount,omitempty"` + // Parent: Required. The parent resource for new feedback labels. + Parent string `json:"parent,omitempty"` + // TemplateQaScorecardId: Optional. If set, a template for labeling + // conversations and scorecard questions will be created from the + // conversation_filter and the questions under the scorecard(s). The feedback + // label `filter` will be ignored. + TemplateQaScorecardId []string `json:"templateQaScorecardId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConversationFilter") 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. "IntervalDuration") 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. "ConversationFilter") 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 GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries +func (s GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval: -// A single interval in a time series. +// GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestina +// tion: Google Cloud Storage Object details to write the feedback labels to. +type GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination struct { + // AddWhitespace: Optional. Add whitespace to the JSON file. Makes easier to + // read, but increases file size. Only applicable for JSON format. + AddWhitespace bool `json:"addWhitespace,omitempty"` + // AlwaysPrintEmptyFields: Optional. Always print fields with no presence. This + // is useful for printing fields that are not set, like implicit 0 value or + // empty lists/maps. Only applicable for JSON format. + AlwaysPrintEmptyFields bool `json:"alwaysPrintEmptyFields,omitempty"` + // Format: Required. File format in which the labels will be exported. + // + // Possible values: + // "FORMAT_UNSPECIFIED" - Unspecified format. + // "CSV" - CSV format. 1,000 labels are stored per CSV file by default. + // "JSON" - JSON format. 1 label stored per JSON file by default. + Format string `json:"format,omitempty"` + // ObjectUri: Required. The Google Cloud Storage URI to write the feedback + // labels to. The file name will be used as a prefix for the files written to + // the bucket if the output needs to be split across multiple files, otherwise + // it will be used as is. The file extension will be appended to the file name + // based on the format selected. E.g. `gs://bucket_name/object_uri_prefix` + ObjectUri string `json:"objectUri,omitempty"` + // RecordsPerFileCount: Optional. The number of records per file. Applicable + // for either format. + RecordsPerFileCount int64 `json:"recordsPerFileCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "AddWhitespace") 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. "AddWhitespace") 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 GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse: +// Response for the BulkDownloadFeedbackLabel endpoint. +type GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse struct { +} + +// GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest: The +// request for bulk uploading feedback labels. +type GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest struct { + // GcsSource: A cloud storage bucket source. + GcsSource *GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource `json:"gcsSource,omitempty"` + // ValidateOnly: Optional. If set, upload will not happen and the labels will + // be validated. If not set, then default behavior will be to upload the labels + // after validation is complete. + ValidateOnly bool `json:"validateOnly,omitempty"` + // ForceSendFields is a list of field names (e.g. "GcsSource") 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. "GcsSource") 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 GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource: +// Google Cloud Storage Object details to get the feedback label file from. +type GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource struct { + // Format: Required. File format which will be ingested. + // + // Possible values: + // "FORMAT_UNSPECIFIED" - Unspecified format. + // "CSV" - CSV format. + // "JSON" - JSON format. + Format string `json:"format,omitempty"` + // ObjectUri: Required. The Google Cloud Storage URI of the file to import. + // Format: `gs://bucket_name/object_name` + ObjectUri string `json:"objectUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "Format") 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. "Format") 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 GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse: Response +// of querying an issue model's statistics. +type GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse struct { + // CurrentStats: The latest label statistics for the queried issue model. + // Includes results on both training data and data labeled after deployment. + CurrentStats *GoogleCloudContactcenterinsightsV1IssueModelLabelStats `json:"currentStats,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CurrentStats") 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. "CurrentStats") 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 GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1CalculateStatsResponse: The response for +// calculating conversation statistics. +type GoogleCloudContactcenterinsightsV1CalculateStatsResponse struct { + // AverageDuration: The average duration of all conversations. The average is + // calculated using only conversations that have a time duration. + AverageDuration string `json:"averageDuration,omitempty"` + // AverageTurnCount: The average number of turns per conversation. + AverageTurnCount int64 `json:"averageTurnCount,omitempty"` + // ConversationCount: The total number of conversations. + ConversationCount int64 `json:"conversationCount,omitempty"` + // ConversationCountTimeSeries: A time series representing the count of + // conversations created over time that match that requested filter criteria. + ConversationCountTimeSeries *GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries `json:"conversationCountTimeSeries,omitempty"` + // CustomHighlighterMatches: A map associating each custom highlighter resource + // name with its respective number of matches in the set of conversations. + CustomHighlighterMatches map[string]int64 `json:"customHighlighterMatches,omitempty"` + // IssueMatches: A map associating each issue resource name with its respective + // number of matches in the set of conversations. Key has the format: + // `projects//locations//issueModels//issues/` Deprecated, use + // `issue_matches_stats` field instead. + IssueMatches map[string]int64 `json:"issueMatches,omitempty"` + // IssueMatchesStats: A map associating each issue resource name with its + // respective number of matches in the set of conversations. Key has the + // format: `projects//locations//issueModels//issues/` + IssueMatchesStats map[string]GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats `json:"issueMatchesStats,omitempty"` + // SmartHighlighterMatches: A map associating each smart highlighter display + // name with its respective number of matches in the set of conversations. + SmartHighlighterMatches map[string]int64 `json:"smartHighlighterMatches,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AverageDuration") 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. "AverageDuration") 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 GoogleCloudContactcenterinsightsV1CalculateStatsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1CalculateStatsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries: A time +// series representing conversations over time. +type GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries struct { + // IntervalDuration: The duration of each interval. + IntervalDuration string `json:"intervalDuration,omitempty"` + // Points: An ordered list of intervals from earliest to latest, where each + // interval represents the number of conversations that transpired during the + // time window. + Points []*GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval `json:"points,omitempty"` + // ForceSendFields is a list of field names (e.g. "IntervalDuration") 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. "IntervalDuration") 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 GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval: +// A single interval in a time series. type GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval struct { // ConversationCount: The number of conversations created in this interval. ConversationCount int64 `json:"conversationCount,omitempty"` @@ -1639,6 +2168,11 @@ func (s GoogleCloudContactcenterinsightsV1DeployIssueModelRequest) MarshalJSON() type GoogleCloudContactcenterinsightsV1DeployIssueModelResponse struct { } +// GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest: The +// request to deploy a QaScorecardRevision +type GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest struct { +} + // GoogleCloudContactcenterinsightsV1DialogflowIntent: The data for a // Dialogflow intent. Represents a detected intent in the conversation, e.g. // MAKES_PROMISE. @@ -1732,6 +2266,170 @@ func (s GoogleCloudContactcenterinsightsV1DialogflowSource) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1Dimension: A dimension determines the +// grouping key for the query. In SQL terms, these would be part of both the +// "SELECT" and "GROUP BY" clauses. +type GoogleCloudContactcenterinsightsV1Dimension struct { + // AgentDimensionMetadata: Output only. Metadata about the agent dimension. + AgentDimensionMetadata *GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata `json:"agentDimensionMetadata,omitempty"` + // DimensionKey: The key of the dimension. + // + // Possible values: + // "DIMENSION_KEY_UNSPECIFIED" - The key of the dimension is unspecified. + // "ISSUE" - The dimension is keyed by issues. + // "AGENT" - The dimension is keyed by agents. + // "AGENT_TEAM" - The dimension is keyed by agent teams. + // "QA_QUESTION_ID" - The dimension is keyed by QaQuestionIds. Note that: We + // only group by the QuestionId and not the revision-id of the scorecard this + // question is a part of. This allows for showing stats for the same question + // across different scorecard revisions. + // "QA_QUESTION_ANSWER_VALUE" - The dimension is keyed by + // QaQuestionIds-Answer value pairs. Note that: We only group by the QuestionId + // and not the revision-id of the scorecard this question is a part of. This + // allows for showing distribution of answers per question across different + // scorecard revisions. + // "CONVERSATION_PROFILE_ID" - The dimension is keyed by the conversation + // profile ID. + DimensionKey string `json:"dimensionKey,omitempty"` + // IssueDimensionMetadata: Output only. Metadata about the issue dimension. + IssueDimensionMetadata *GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata `json:"issueDimensionMetadata,omitempty"` + // QaQuestionAnswerDimensionMetadata: Output only. Metadata about the QA + // question-answer dimension. + QaQuestionAnswerDimensionMetadata *GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata `json:"qaQuestionAnswerDimensionMetadata,omitempty"` + // QaQuestionDimensionMetadata: Output only. Metadata about the QA question + // dimension. + QaQuestionDimensionMetadata *GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata `json:"qaQuestionDimensionMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentDimensionMetadata") 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. "AgentDimensionMetadata") 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 GoogleCloudContactcenterinsightsV1Dimension) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1Dimension + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata: Metadata +// about the agent dimension. +type GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata struct { + // AgentDisplayName: Optional. The agent's name + AgentDisplayName string `json:"agentDisplayName,omitempty"` + // AgentId: Optional. A user-specified string representing the agent. + AgentId string `json:"agentId,omitempty"` + // AgentTeam: Optional. A user-specified string representing the agent's team. + AgentTeam string `json:"agentTeam,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentDisplayName") 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. "AgentDisplayName") 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 GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata: Metadata +// about the issue dimension. +type GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata struct { + // IssueDisplayName: The issue display name. + IssueDisplayName string `json:"issueDisplayName,omitempty"` + // IssueId: The issue ID. + IssueId string `json:"issueId,omitempty"` + // IssueModelId: The parent issue model ID. + IssueModelId string `json:"issueModelId,omitempty"` + // ForceSendFields is a list of field names (e.g. "IssueDisplayName") 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. "IssueDisplayName") 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 GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata: +// +// Metadata about the QA question-answer dimension. This is useful for showing +// +// the answer distribution for questions for a given scorecard. +type GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata struct { + // AnswerValue: Optional. The full body of the question. + AnswerValue string `json:"answerValue,omitempty"` + // QaQuestionId: Optional. The QA question ID. + QaQuestionId string `json:"qaQuestionId,omitempty"` + // QaScorecardId: Optional. The QA scorecard ID. + QaScorecardId string `json:"qaScorecardId,omitempty"` + // QuestionBody: Optional. The full body of the question. + QuestionBody string `json:"questionBody,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerValue") 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. "AnswerValue") 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 GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata: +// Metadata about the QA question dimension. +type GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata struct { + // QaQuestionId: Optional. The QA question ID. + QaQuestionId string `json:"qaQuestionId,omitempty"` + // QaScorecardId: Optional. The QA scorecard ID. + QaScorecardId string `json:"qaScorecardId,omitempty"` + // QuestionBody: Optional. The full body of the question. + QuestionBody string `json:"questionBody,omitempty"` + // ForceSendFields is a list of field names (e.g. "QaQuestionId") 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. "QaQuestionId") 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 GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1EncryptionSpec: A customer-managed // encryption key specification that can be applied to all created resources // (e.g. `Conversation`). @@ -2150,6 +2848,44 @@ func (s *GoogleCloudContactcenterinsightsV1FaqAnswerData) UnmarshalJSON(data []b return nil } +// GoogleCloudContactcenterinsightsV1FeedbackLabel: Represents a conversation, +// resource, and label provided by the user. +type GoogleCloudContactcenterinsightsV1FeedbackLabel struct { + // CreateTime: Output only. Create time of the label. + CreateTime string `json:"createTime,omitempty"` + // Label: String label. + Label string `json:"label,omitempty"` + // LabeledResource: Resource name of the resource to be labeled. + LabeledResource string `json:"labeledResource,omitempty"` + // Name: Immutable. Resource name of the FeedbackLabel. Format: + // projects/{project}/locations/{location}/conversations/{conversation}/feedback + // Labels/{feedback_label} + Name string `json:"name,omitempty"` + // QaAnswerLabel: QaAnswer label. + QaAnswerLabel *GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue `json:"qaAnswerLabel,omitempty"` + // UpdateTime: Output only. Update time of the label. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudContactcenterinsightsV1FeedbackLabel) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1FeedbackLabel + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1GcsSource: A Cloud Storage source of // conversation data. type GoogleCloudContactcenterinsightsV1GcsSource struct { @@ -2894,8 +3630,37 @@ func (s GoogleCloudContactcenterinsightsV1IssueModelResult) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1ListAnalysesResponse: The response to list -// analyses. +// GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse: The +// response for listing all feedback labels. +type GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse struct { + // FeedbackLabels: The feedback labels that match the request. + FeedbackLabels []*GoogleCloudContactcenterinsightsV1FeedbackLabel `json:"feedbackLabels,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "FeedbackLabels") 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. "FeedbackLabels") 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 GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ListAnalysesResponse: The response to list +// analyses. type GoogleCloudContactcenterinsightsV1ListAnalysesResponse struct { // Analyses: The analyses that match the request. Analyses []*GoogleCloudContactcenterinsightsV1Analysis `json:"analyses,omitempty"` @@ -2923,6 +3688,35 @@ func (s GoogleCloudContactcenterinsightsV1ListAnalysesResponse) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse: The response of +// listing views. +type GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse struct { + // AnalysisRules: The analysis_rule that match the request. + AnalysisRules []*GoogleCloudContactcenterinsightsV1AnalysisRule `json:"analysisRules,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AnalysisRules") 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. "AnalysisRules") 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 GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1ListConversationsResponse: The response of // listing conversations. type GoogleCloudContactcenterinsightsV1ListConversationsResponse struct { @@ -2953,6 +3747,34 @@ func (s GoogleCloudContactcenterinsightsV1ListConversationsResponse) MarshalJSON return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse: The response +// for listing feedback labels. +type GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse struct { + // FeedbackLabels: The feedback labels that match the request. + FeedbackLabels []*GoogleCloudContactcenterinsightsV1FeedbackLabel `json:"feedbackLabels,omitempty"` + // NextPageToken: The next page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "FeedbackLabels") 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. "FeedbackLabels") 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 GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1ListIssueModelsResponse: The response of // listing issue models. type GoogleCloudContactcenterinsightsV1ListIssueModelsResponse struct { @@ -3034,6 +3856,93 @@ func (s GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse) MarshalJSO return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse: The response from +// a ListQaQuestions request. +type GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + // QaQuestions: The QaQuestions under the parent. + QaQuestions []*GoogleCloudContactcenterinsightsV1QaQuestion `json:"qaQuestions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse: The +// response from a ListQaScorecardRevisions request. +type GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + // QaScorecardRevisions: The QaScorecards under the parent. + QaScorecardRevisions []*GoogleCloudContactcenterinsightsV1QaScorecardRevision `json:"qaScorecardRevisions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse: The response +// from a ListQaScorecards request. +type GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + // QaScorecards: The QaScorecards under the parent. + QaScorecards []*GoogleCloudContactcenterinsightsV1QaScorecard `json:"qaScorecards,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1ListViewsResponse: The response of listing // views. type GoogleCloudContactcenterinsightsV1ListViewsResponse struct { @@ -3244,2634 +4153,2670 @@ func (s GoogleCloudContactcenterinsightsV1PhraseMatcher) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1RedactionConfig: DLP resources used for -// redaction while ingesting conversations. DLP settings are applied to -// conversations ingested from the `UploadConversation` and -// `IngestConversations` endpoints, including conversation coming from CCAI -// Platform. They are not applied to conversations ingested from the -// `CreateConversation` endpoint or the Dialogflow / Agent Assist runtime -// integrations. When using Dialogflow / Agent Assist runtime integrations, -// redaction should be performed in Dialogflow / Agent Assist. -type GoogleCloudContactcenterinsightsV1RedactionConfig struct { - // DeidentifyTemplate: The fully-qualified DLP deidentify template resource - // name. Format: `projects/{project}/deidentifyTemplates/{template}` - DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"` - // InspectTemplate: The fully-qualified DLP inspect template resource name. - // Format: - // `projects/{project}/locations/{location}/inspectTemplates/{template}` - InspectTemplate string `json:"inspectTemplate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") 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. "DeidentifyTemplate") 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 GoogleCloudContactcenterinsightsV1RedactionConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1RedactionConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContactcenterinsightsV1RuntimeAnnotation: An annotation that was -// generated during the customer and agent interaction. -type GoogleCloudContactcenterinsightsV1RuntimeAnnotation struct { - // AnnotationId: The unique identifier of the annotation. Format: - // projects/{project}/locations/{location}/conversationDatasets/{dataset}/conver - // sationDataItems/{data_item}/conversationAnnotations/{annotation} - AnnotationId string `json:"annotationId,omitempty"` - // AnswerFeedback: The feedback that the customer has about the answer in - // `data`. - AnswerFeedback *GoogleCloudContactcenterinsightsV1AnswerFeedback `json:"answerFeedback,omitempty"` - // ArticleSuggestion: Agent Assist Article Suggestion data. - ArticleSuggestion *GoogleCloudContactcenterinsightsV1ArticleSuggestionData `json:"articleSuggestion,omitempty"` - // ConversationSummarizationSuggestion: Conversation summarization suggestion - // data. - ConversationSummarizationSuggestion *GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData `json:"conversationSummarizationSuggestion,omitempty"` - // CreateTime: The time at which this annotation was created. - CreateTime string `json:"createTime,omitempty"` - // DialogflowInteraction: Dialogflow interaction data. - DialogflowInteraction *GoogleCloudContactcenterinsightsV1DialogflowInteractionData `json:"dialogflowInteraction,omitempty"` - // EndBoundary: The boundary in the conversation where the annotation ends, - // inclusive. - EndBoundary *GoogleCloudContactcenterinsightsV1AnnotationBoundary `json:"endBoundary,omitempty"` - // FaqAnswer: Agent Assist FAQ answer data. - FaqAnswer *GoogleCloudContactcenterinsightsV1FaqAnswerData `json:"faqAnswer,omitempty"` - // SmartComposeSuggestion: Agent Assist Smart Compose suggestion data. - SmartComposeSuggestion *GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData `json:"smartComposeSuggestion,omitempty"` - // SmartReply: Agent Assist Smart Reply data. - SmartReply *GoogleCloudContactcenterinsightsV1SmartReplyData `json:"smartReply,omitempty"` - // StartBoundary: The boundary in the conversation where the annotation starts, - // inclusive. - StartBoundary *GoogleCloudContactcenterinsightsV1AnnotationBoundary `json:"startBoundary,omitempty"` - // UserInput: Explicit input used for generating the answer - UserInput *GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput `json:"userInput,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnnotationId") to +// GoogleCloudContactcenterinsightsV1QaAnswer: An answer to a QaQuestion. +type GoogleCloudContactcenterinsightsV1QaAnswer struct { + // AnswerSources: List of all individual answers given to the question. + AnswerSources []*GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource `json:"answerSources,omitempty"` + // AnswerValue: The main answer value, incorporating any manual edits if they + // exist. + AnswerValue *GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue `json:"answerValue,omitempty"` + // Conversation: The conversation the answer applies to. + Conversation string `json:"conversation,omitempty"` + // PotentialScore: The maximum potential score of the question. If the question + // was answered using `na_value`, this field will be zero. + PotentialScore float64 `json:"potentialScore,omitempty"` + // QaQuestion: The QaQuestion answered by this answer. + QaQuestion string `json:"qaQuestion,omitempty"` + // QuestionBody: Question text. E.g., "Did the agent greet the customer?" + QuestionBody string `json:"questionBody,omitempty"` + // Tags: User-defined list of arbitrary tags. Matches the value from + // QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for + // weighting the score of each answer. + Tags []string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerSources") 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. "AnnotationId") to include in API + // NullFields is a list of field names (e.g. "AnswerSources") 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 GoogleCloudContactcenterinsightsV1RuntimeAnnotation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1RuntimeAnnotation +func (s GoogleCloudContactcenterinsightsV1QaAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaAnswer return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput: Explicit input -// used for generating the answer -type GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput struct { - // GeneratorName: The resource name of associated generator. Format: - // `projects//locations//generators/` - GeneratorName string `json:"generatorName,omitempty"` - // Query: Query text. Article Search uses this to store the input query used to - // generate the search results. - Query string `json:"query,omitempty"` - // QuerySource: Query source for the answer. +func (s *GoogleCloudContactcenterinsightsV1QaAnswer) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1QaAnswer + var s1 struct { + PotentialScore gensupport.JSONFloat64 `json:"potentialScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.PotentialScore = float64(s1.PotentialScore) + return nil +} + +// GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource: A question may have +// multiple answers from varying sources, one of which becomes the "main" +// answer above. AnswerSource represents each individual answer. +type GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource struct { + // AnswerValue: The answer value from this source. + AnswerValue *GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue `json:"answerValue,omitempty"` + // SourceType: What created the answer. // // Possible values: - // "QUERY_SOURCE_UNSPECIFIED" - Unknown query source. - // "AGENT_QUERY" - The query is from agents. - // "SUGGESTED_QUERY" - The query is a query from previous suggestions, e.g. - // from a preceding SuggestKnowledgeAssist response. - QuerySource string `json:"querySource,omitempty"` - // ForceSendFields is a list of field names (e.g. "GeneratorName") to + // "SOURCE_TYPE_UNSPECIFIED" - Source type is unspecified. + // "SYSTEM_GENERATED" - Answer was system-generated; created during an + // Insights analysis. + // "MANUAL_EDIT" - Answer was created by a human via manual edit. + SourceType string `json:"sourceType,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerValue") 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. "GeneratorName") to include in API + // NullFields is a list of field names (e.g. "AnswerValue") 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 GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput +func (s GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1SentimentData: The data for a sentiment -// annotation. -type GoogleCloudContactcenterinsightsV1SentimentData struct { - // Magnitude: A non-negative number from 0 to infinity which represents the - // abolute magnitude of sentiment regardless of score. - Magnitude float64 `json:"magnitude,omitempty"` - // Score: The sentiment score between -1.0 (negative) and 1.0 (positive). +// GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue: Message for holding +// the value of the answer. QaQuestion.AnswerChoice defines the possible answer +// values for a question. +type GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue struct { + // BoolValue: Boolean value. + BoolValue bool `json:"boolValue,omitempty"` + // Key: A short string used as an identifier. Matches the value used in + // QaQuestion.AnswerChoice.key. + Key string `json:"key,omitempty"` + // NaValue: A value of "Not Applicable (N/A)". + NaValue bool `json:"naValue,omitempty"` + // NumValue: Numerical value. + NumValue float64 `json:"numValue,omitempty"` + // Score: Numerical score of the answer. Score float64 `json:"score,omitempty"` - // ForceSendFields is a list of field names (e.g. "Magnitude") to + // StrValue: String value. + StrValue string `json:"strValue,omitempty"` + // ForceSendFields is a list of field names (e.g. "BoolValue") 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. "Magnitude") to include in API + // NullFields is a list of field names (e.g. "BoolValue") 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 GoogleCloudContactcenterinsightsV1SentimentData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1SentimentData +func (s GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1SentimentData) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1SentimentData +func (s *GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue var s1 struct { - Magnitude gensupport.JSONFloat64 `json:"magnitude"` - Score gensupport.JSONFloat64 `json:"score"` + NumValue gensupport.JSONFloat64 `json:"numValue"` + Score gensupport.JSONFloat64 `json:"score"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } - s.Magnitude = float64(s1.Magnitude) + s.NumValue = float64(s1.NumValue) s.Score = float64(s1.Score) return nil } -// GoogleCloudContactcenterinsightsV1Settings: The CCAI Insights project wide -// settings. Use these settings to configure the behavior of Insights. View -// these settings with `getsettings` -// (https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/getSettings) -// and change the settings with `updateSettings` -// (https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/updateSettings). -type GoogleCloudContactcenterinsightsV1Settings struct { - // AnalysisConfig: Default analysis settings. - AnalysisConfig *GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig `json:"analysisConfig,omitempty"` - // ConversationTtl: The default TTL for newly-created conversations. If a - // conversation has a specified expiration, that value will be used instead. - // Changing this value will not change the expiration of existing - // conversations. Conversations with no expire time persist until they are - // deleted. - ConversationTtl string `json:"conversationTtl,omitempty"` - // CreateTime: Output only. The time at which the settings was created. +// GoogleCloudContactcenterinsightsV1QaQuestion: A single question to be scored +// by the Insights QA feature. +type GoogleCloudContactcenterinsightsV1QaQuestion struct { + // Abbreviation: Short, descriptive string, used in the UI where it's not + // practical to display the full question body. E.g., "Greeting". + Abbreviation string `json:"abbreviation,omitempty"` + // AnswerChoices: A list of valid answers to the question, which the LLM must + // choose from. + AnswerChoices []*GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice `json:"answerChoices,omitempty"` + // AnswerInstructions: Instructions describing how to determine the answer. + AnswerInstructions string `json:"answerInstructions,omitempty"` + // CreateTime: Output only. The time at which this question was created. CreateTime string `json:"createTime,omitempty"` - // LanguageCode: A language code to be applied to each transcript segment - // unless the segment already specifies a language code. Language code defaults - // to "en-US" if it is neither specified on the segment nor here. - LanguageCode string `json:"languageCode,omitempty"` - // Name: Immutable. The resource name of the settings resource. Format: - // projects/{project}/locations/{location}/settings + // Metrics: Metrics of the underlying tuned LLM over a holdout/test set while + // fine tuning the underlying LLM for the given question. This field will only + // be populated if and only if the question is part of a scorecard revision + // that has been tuned. + Metrics *GoogleCloudContactcenterinsightsV1QaQuestionMetrics `json:"metrics,omitempty"` + // Name: Identifier. The resource name of the question. Format: + // projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions + // /{revision}/qaQuestions/{qa_question} Name string `json:"name,omitempty"` - // PubsubNotificationSettings: A map that maps a notification trigger to a - // Pub/Sub topic. Each time a specified trigger occurs, Insights will notify - // the corresponding Pub/Sub topic. Keys are notification triggers. Supported - // keys are: * "all-triggers": Notify each time any of the supported triggers - // occurs. * "create-analysis": Notify each time an analysis is created. * - // "create-conversation": Notify each time a conversation is created. * - // "export-insights-data": Notify each time an export is complete. * - // "ingest-conversations": Notify each time an IngestConversations LRO is - // complete. * "update-conversation": Notify each time a conversation is - // updated via UpdateConversation. * "upload-conversation": Notify when an - // UploadConversation LRO is complete. Values are Pub/Sub topics. The format of - // each Pub/Sub topic is: projects/{project}/topics/{topic} - PubsubNotificationSettings map[string]string `json:"pubsubNotificationSettings,omitempty"` - // RedactionConfig: Default DLP redaction resources to be applied while - // ingesting conversations. This applies to conversations ingested from the - // `UploadConversation` and `IngestConversations` endpoints, including - // conversations coming from CCAI Platform. - RedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"redactionConfig,omitempty"` - // SpeechConfig: Optional. Default Speech-to-Text resources to use while - // ingesting audio files. Optional, CCAI Insights will create a default if not - // provided. This applies to conversations ingested from the - // `UploadConversation` and `IngestConversations` endpoints, including - // conversations coming from CCAI Platform. - SpeechConfig *GoogleCloudContactcenterinsightsV1SpeechConfig `json:"speechConfig,omitempty"` - // UpdateTime: Output only. The time at which the settings were last updated. + // Order: Defines the order of the question within its parent scorecard + // revision. + Order int64 `json:"order,omitempty"` + // QuestionBody: Question text. E.g., "Did the agent greet the customer?" + QuestionBody string `json:"questionBody,omitempty"` + // Tags: User-defined list of arbitrary tags for the question. Used for + // grouping/organization and for weighting the score of each question. + Tags []string `json:"tags,omitempty"` + // TuningMetadata: Metadata about the tuning operation for the question.This + // field will only be populated if and only if the question is part of a + // scorecard revision that has been tuned. + TuningMetadata *GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata `json:"tuningMetadata,omitempty"` + // UpdateTime: Output only. The most recent time at which the question was + // updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AnalysisConfig") to + // ForceSendFields is a list of field names (e.g. "Abbreviation") 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. "AnalysisConfig") 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. "Abbreviation") 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 GoogleCloudContactcenterinsightsV1Settings) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1Settings +func (s GoogleCloudContactcenterinsightsV1QaQuestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaQuestion return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig: Default -// configuration when creating Analyses in Insights. -type GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig struct { - // AnnotatorSelector: To select the annotators to run and the phrase matchers - // to use (if any). If not specified, all annotators will be run. - AnnotatorSelector *GoogleCloudContactcenterinsightsV1AnnotatorSelector `json:"annotatorSelector,omitempty"` - // RuntimeIntegrationAnalysisPercentage: Percentage of conversations created - // using Dialogflow runtime integration to analyze automatically, between [0, - // 100]. - RuntimeIntegrationAnalysisPercentage float64 `json:"runtimeIntegrationAnalysisPercentage,omitempty"` - // UploadConversationAnalysisPercentage: Percentage of conversations created - // using the UploadConversation endpoint to analyze automatically, between [0, - // 100]. - UploadConversationAnalysisPercentage float64 `json:"uploadConversationAnalysisPercentage,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnnotatorSelector") to +// GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice: Message +// representing a possible answer to the question. +type GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice struct { + // BoolValue: Boolean value. + BoolValue bool `json:"boolValue,omitempty"` + // Key: A short string used as an identifier. + Key string `json:"key,omitempty"` + // NaValue: A value of "Not Applicable (N/A)". If provided, this field may only + // be set to `true`. If a question receives this answer, it will be excluded + // from any score calculations. + NaValue bool `json:"naValue,omitempty"` + // NumValue: Numerical value. + NumValue float64 `json:"numValue,omitempty"` + // Score: Numerical score of the answer, used for generating the overall score + // of a QaScorecardResult. If the answer uses na_value, this field is unused. + Score float64 `json:"score,omitempty"` + // StrValue: String value. + StrValue string `json:"strValue,omitempty"` + // ForceSendFields is a list of field names (e.g. "BoolValue") 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. "AnnotatorSelector") 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. "BoolValue") 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 GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig +func (s GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig +func (s *GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice var s1 struct { - RuntimeIntegrationAnalysisPercentage gensupport.JSONFloat64 `json:"runtimeIntegrationAnalysisPercentage"` - UploadConversationAnalysisPercentage gensupport.JSONFloat64 `json:"uploadConversationAnalysisPercentage"` + NumValue gensupport.JSONFloat64 `json:"numValue"` + Score gensupport.JSONFloat64 `json:"score"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } - s.RuntimeIntegrationAnalysisPercentage = float64(s1.RuntimeIntegrationAnalysisPercentage) - s.UploadConversationAnalysisPercentage = float64(s1.UploadConversationAnalysisPercentage) + s.NumValue = float64(s1.NumValue) + s.Score = float64(s1.Score) return nil } -// GoogleCloudContactcenterinsightsV1SilenceData: The data for a silence -// annotation. -type GoogleCloudContactcenterinsightsV1SilenceData struct { -} - -// GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData: Agent Assist -// Smart Compose suggestion data. -type GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData struct { - // ConfidenceScore: The system's confidence score that this suggestion is a - // good match for this conversation, ranging from 0.0 (completely uncertain) to - // 1.0 (completely certain). - ConfidenceScore float64 `json:"confidenceScore,omitempty"` - // Metadata: Map that contains metadata about the Smart Compose suggestion and - // the document from which it originates. - Metadata map[string]string `json:"metadata,omitempty"` - // QueryRecord: The name of the answer record. Format: - // projects/{project}/locations/{location}/answerRecords/{answer_record} - QueryRecord string `json:"queryRecord,omitempty"` - // Suggestion: The content of the suggestion. - Suggestion string `json:"suggestion,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to +// GoogleCloudContactcenterinsightsV1QaQuestionMetrics: A wrapper representing +// metrics calculated against a test-set on a LLM that was fine tuned for this +// question. +type GoogleCloudContactcenterinsightsV1QaQuestionMetrics struct { + // Accuracy: Output only. Accuracy of the model. Measures the percentage of + // correct answers the model gave on the test set. + Accuracy float64 `json:"accuracy,omitempty"` + // ForceSendFields is a list of field names (e.g. "Accuracy") 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. "ConfidenceScore") 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. "Accuracy") 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 GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData +func (s GoogleCloudContactcenterinsightsV1QaQuestionMetrics) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaQuestionMetrics return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData +func (s *GoogleCloudContactcenterinsightsV1QaQuestionMetrics) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1QaQuestionMetrics var s1 struct { - ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + Accuracy gensupport.JSONFloat64 `json:"accuracy"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } - s.ConfidenceScore = float64(s1.ConfidenceScore) + s.Accuracy = float64(s1.Accuracy) return nil } -// GoogleCloudContactcenterinsightsV1SmartReplyData: Agent Assist Smart Reply -// data. -type GoogleCloudContactcenterinsightsV1SmartReplyData struct { - // ConfidenceScore: The system's confidence score that this reply is a good - // match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 - // (completely certain). - ConfidenceScore float64 `json:"confidenceScore,omitempty"` - // Metadata: Map that contains metadata about the Smart Reply and the document - // from which it originates. - Metadata map[string]string `json:"metadata,omitempty"` - // QueryRecord: The name of the answer record. Format: - // projects/{project}/locations/{location}/answerRecords/{answer_record} - QueryRecord string `json:"queryRecord,omitempty"` - // Reply: The content of the reply. - Reply string `json:"reply,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to - // unconditionally include in API requests. By default, fields with empty or +// GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata: Metadata about +// the tuning operation for the question. Will only be set if a scorecard +// containing this question has been tuned. +type GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata struct { + // DatasetValidationWarnings: A list of any applicable data validation warnings + // about the question's feedback labels. + // + // Possible values: + // "DATASET_VALIDATION_WARNING_UNSPECIFIED" - Unspecified data validation + // warning. + // "TOO_MANY_INVALID_FEEDBACK_LABELS" - A non-trivial percentage of the + // feedback labels are invalid. + // "INSUFFICIENT_FEEDBACK_LABELS" - The quantity of valid feedback labels + // provided is less than the recommended minimum. + // "INSUFFICIENT_FEEDBACK_LABELS_PER_ANSWER" - One or more of the answers + // have less than the recommended minimum of feedback labels. + // "ALL_FEEDBACK_LABELS_HAVE_THE_SAME_ANSWER" - All the labels in the dataset + // come from a single answer choice. + DatasetValidationWarnings []string `json:"datasetValidationWarnings,omitempty"` + // TotalValidLabelCount: Total number of valid labels provided for the question + // at the time of tuining. + TotalValidLabelCount int64 `json:"totalValidLabelCount,omitempty,string"` + // TuningError: Error status of the tuning operation for the question. Will + // only be set if the tuning operation failed. + TuningError string `json:"tuningError,omitempty"` + // ForceSendFields is a list of field names (e.g. "DatasetValidationWarnings") + // 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. "ConfidenceScore") 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. "DatasetValidationWarnings") 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 GoogleCloudContactcenterinsightsV1SmartReplyData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1SmartReplyData +func (s GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1SmartReplyData) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1SmartReplyData - var s1 struct { - ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ConfidenceScore = float64(s1.ConfidenceScore) - return nil -} +// GoogleCloudContactcenterinsightsV1QaScorecard: A QaScorecard represents a +// collection of questions to be scored during analysis. +type GoogleCloudContactcenterinsightsV1QaScorecard struct { + // CreateTime: Output only. The time at which this scorecard was created. + CreateTime string `json:"createTime,omitempty"` + // Description: A text description explaining the intent of the scorecard. + Description string `json:"description,omitempty"` + // DisplayName: The user-specified display name of the scorecard. + DisplayName string `json:"displayName,omitempty"` + // Name: Identifier. The scorecard name. Format: + // projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} + Name string `json:"name,omitempty"` + // UpdateTime: Output only. The most recent time at which the scorecard was + // updated. + UpdateTime string `json:"updateTime,omitempty"` -// GoogleCloudContactcenterinsightsV1SpeechConfig: Speech-to-Text -// configuration. Speech-to-Text settings are applied to conversations ingested -// from the `UploadConversation` and `IngestConversations` endpoints, including -// conversation coming from CCAI Platform. They are not applied to -// conversations ingested from the `CreateConversation` endpoint. -type GoogleCloudContactcenterinsightsV1SpeechConfig struct { - // SpeechRecognizer: The fully-qualified Speech Recognizer resource name. - // Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` - SpeechRecognizer string `json:"speechRecognizer,omitempty"` - // ForceSendFields is a list of field names (e.g. "SpeechRecognizer") to + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "SpeechRecognizer") 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. "CreateTime") 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 GoogleCloudContactcenterinsightsV1SpeechConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1SpeechConfig +func (s GoogleCloudContactcenterinsightsV1QaScorecard) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaScorecard return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata: Metadata for -// undeploying an issue model. -type GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata struct { - // CreateTime: Output only. The time the operation was created. +// GoogleCloudContactcenterinsightsV1QaScorecardResult: The results of scoring +// a single conversation against a QaScorecard. Contains a collection of +// QaAnswers and aggregate score. +type GoogleCloudContactcenterinsightsV1QaScorecardResult struct { + // AgentId: ID of the agent that handled the conversation. + AgentId string `json:"agentId,omitempty"` + // Conversation: The conversation scored by this result. + Conversation string `json:"conversation,omitempty"` + // CreateTime: Output only. The timestamp that the revision was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // Request: The original request for undeployment. - Request *GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest `json:"request,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // Name: Identifier. The name of the scorecard result. Format: + // projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_resu + // lt} + Name string `json:"name,omitempty"` + // NormalizedScore: The normalized score, which is the score divided by the + // potential score. Any manual edits are included if they exist. + NormalizedScore float64 `json:"normalizedScore,omitempty"` + // PotentialScore: The maximum potential overall score of the scorecard. Any + // questions answered using `na_value` are excluded from this calculation. + PotentialScore float64 `json:"potentialScore,omitempty"` + // QaAnswers: Set of QaAnswers represented in the result. + QaAnswers []*GoogleCloudContactcenterinsightsV1QaAnswer `json:"qaAnswers,omitempty"` + // QaScorecardRevision: The QaScorecardRevision scored by this result. + QaScorecardRevision string `json:"qaScorecardRevision,omitempty"` + // QaTagResults: Collection of tags and their scores. + QaTagResults []*GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult `json:"qaTagResults,omitempty"` + // Score: The overall numerical score of the result, incorporating any manual + // edits if they exist. + Score float64 `json:"score,omitempty"` + // ScoreSources: List of all individual score sets. + ScoreSources []*GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource `json:"scoreSources,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentId") 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. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "AgentId") 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 GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata +func (s GoogleCloudContactcenterinsightsV1QaScorecardResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaScorecardResult return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest: The request to -// undeploy an issue model. -type GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest struct { - // Name: Required. The issue model to undeploy. - 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 +func (s *GoogleCloudContactcenterinsightsV1QaScorecardResult) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1QaScorecardResult + var s1 struct { + NormalizedScore gensupport.JSONFloat64 `json:"normalizedScore"` + PotentialScore gensupport.JSONFloat64 `json:"potentialScore"` + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.NormalizedScore = float64(s1.NormalizedScore) + s.PotentialScore = float64(s1.PotentialScore) + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult: Tags and +// their corresponding results. +type GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult struct { + // NormalizedScore: The normalized score the tag applies to. + NormalizedScore float64 `json:"normalizedScore,omitempty"` + // PotentialScore: The potential score the tag applies to. + PotentialScore float64 `json:"potentialScore,omitempty"` + // Score: The score the tag applies to. + Score float64 `json:"score,omitempty"` + // Tag: The tag the score applies to. + Tag string `json:"tag,omitempty"` + // ForceSendFields is a list of field names (e.g. "NormalizedScore") 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 + // NullFields is a list of field names (e.g. "NormalizedScore") 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 GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest +func (s GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1UndeployIssueModelResponse: The response -// to undeploy an issue model. -type GoogleCloudContactcenterinsightsV1UndeployIssueModelResponse struct { +func (s *GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult + var s1 struct { + NormalizedScore gensupport.JSONFloat64 `json:"normalizedScore"` + PotentialScore gensupport.JSONFloat64 `json:"potentialScore"` + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.NormalizedScore = float64(s1.NormalizedScore) + s.PotentialScore = float64(s1.PotentialScore) + s.Score = float64(s1.Score) + return nil } -// GoogleCloudContactcenterinsightsV1UploadConversationMetadata: The metadata -// for an `UploadConversation` operation. -type GoogleCloudContactcenterinsightsV1UploadConversationMetadata struct { - // AnalysisOperation: Output only. The operation name for a successfully - // created analysis operation, if any. - AnalysisOperation string `json:"analysisOperation,omitempty"` - // AppliedRedactionConfig: Output only. The redaction config applied to the - // uploaded conversation. - AppliedRedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"appliedRedactionConfig,omitempty"` - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // Request: Output only. The original request. - Request *GoogleCloudContactcenterinsightsV1UploadConversationRequest `json:"request,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalysisOperation") to +// GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource: A scorecard +// result may have multiple sets of scores from varying sources, one of which +// becomes the "main" answer above. A ScoreSource represents each individual +// set of scores. +type GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource struct { + // NormalizedScore: The normalized score, which is the score divided by the + // potential score. + NormalizedScore float64 `json:"normalizedScore,omitempty"` + // PotentialScore: The maximum potential overall score of the scorecard. Any + // questions answered using `na_value` are excluded from this calculation. + PotentialScore float64 `json:"potentialScore,omitempty"` + // QaTagResults: Collection of tags and their scores. + QaTagResults []*GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult `json:"qaTagResults,omitempty"` + // Score: The overall numerical score of the result. + Score float64 `json:"score,omitempty"` + // SourceType: What created the score. + // + // Possible values: + // "SOURCE_TYPE_UNSPECIFIED" - Source type is unspecified. + // "SYSTEM_GENERATED_ONLY" - Score is derived only from system-generated + // answers. + // "INCLUDES_MANUAL_EDITS" - Score is derived from both system-generated + // answers, and includes any manual edits if they exist. + SourceType string `json:"sourceType,omitempty"` + // ForceSendFields is a list of field names (e.g. "NormalizedScore") 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. "AnalysisOperation") to include in + // NullFields is a list of field names (e.g. "NormalizedScore") 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 GoogleCloudContactcenterinsightsV1UploadConversationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1UploadConversationMetadata +func (s GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1UploadConversationRequest: Request to -// upload a conversation. -type GoogleCloudContactcenterinsightsV1UploadConversationRequest struct { - // Conversation: Required. The conversation resource to create. - Conversation *GoogleCloudContactcenterinsightsV1Conversation `json:"conversation,omitempty"` - // ConversationId: Optional. A unique ID for the new conversation. This ID will - // become the final component of the conversation's resource name. If no ID is - // specified, a server-generated ID will be used. This value should be 4-64 - // characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid - // characters are `a-z-` - ConversationId string `json:"conversationId,omitempty"` - // Parent: Required. The parent resource of the conversation. - Parent string `json:"parent,omitempty"` - // RedactionConfig: Optional. DLP settings for transcript redaction. Will - // default to the config specified in Settings. - RedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"redactionConfig,omitempty"` - // SpeechConfig: Optional. Speech-to-Text configuration. Will default to the - // config specified in Settings. - SpeechConfig *GoogleCloudContactcenterinsightsV1SpeechConfig `json:"speechConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversation") to +func (s *GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource + var s1 struct { + NormalizedScore gensupport.JSONFloat64 `json:"normalizedScore"` + PotentialScore gensupport.JSONFloat64 `json:"potentialScore"` + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.NormalizedScore = float64(s1.NormalizedScore) + s.PotentialScore = float64(s1.PotentialScore) + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudContactcenterinsightsV1QaScorecardRevision: A revision of a +// QaScorecard. Modifying published scorecard fields would invalidate existing +// scorecard results — the questions may have changed, or the score weighting +// will make existing scores impossible to understand. So changes must create a +// new revision, rather than modifying the existing resource. +type GoogleCloudContactcenterinsightsV1QaScorecardRevision struct { + // AlternateIds: Output only. Alternative IDs for this revision of the + // scorecard, e.g., `latest`. + AlternateIds []string `json:"alternateIds,omitempty"` + // CreateTime: Output only. The timestamp that the revision was created. + CreateTime string `json:"createTime,omitempty"` + // Name: Identifier. The name of the scorecard revision. Format: + // projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions + // /{revision} + Name string `json:"name,omitempty"` + // Snapshot: The snapshot of the scorecard at the time of this revision's + // creation. + Snapshot *GoogleCloudContactcenterinsightsV1QaScorecard `json:"snapshot,omitempty"` + // State: Output only. State of the scorecard revision, indicating whether it's + // ready to be used in analysis. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified. + // "EDITABLE" - The scorecard revision can be edited. + // "TRAINING" - Scorecard model training is in progress. + // "TRAINING_FAILED" - Scorecard revision model training failed. + // "READY" - The revision can be used in analysis. + // "DELETING" - Scorecard is being deleted. + // "TRAINING_CANCELLED" - Scorecard model training was explicitly cancelled + // by the user. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AlternateIds") 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. "Conversation") to include in API + // NullFields is a list of field names (e.g. "AlternateIds") 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 GoogleCloudContactcenterinsightsV1UploadConversationRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1UploadConversationRequest +func (s GoogleCloudContactcenterinsightsV1QaScorecardRevision) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QaScorecardRevision return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1View: The View resource. -type GoogleCloudContactcenterinsightsV1View struct { - // CreateTime: Output only. The time at which this view was created. - CreateTime string `json:"createTime,omitempty"` - // DisplayName: The human-readable display name of the view. - DisplayName string `json:"displayName,omitempty"` - // Name: Immutable. The resource name of the view. Format: - // projects/{project}/locations/{location}/views/{view} - Name string `json:"name,omitempty"` - // UpdateTime: Output only. The most recent time at which the view was updated. - UpdateTime string `json:"updateTime,omitempty"` - // Value: String with specific view properties, must be non-empty. - Value string `json:"value,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to +// GoogleCloudContactcenterinsightsV1QueryMetricsMetadata: The metadata from +// querying metrics. +type GoogleCloudContactcenterinsightsV1QueryMetricsMetadata struct { +} + +// GoogleCloudContactcenterinsightsV1QueryMetricsRequest: The request for +// querying metrics. +type GoogleCloudContactcenterinsightsV1QueryMetricsRequest struct { + // Dimensions: The dimensions that determine the grouping key for the query. + // Defaults to no dimension if this field is unspecified. If a dimension is + // specified, its key must also be specified. Each dimension's key must be + // unique. If a time granularity is also specified, metric values in the + // dimension will be bucketed by this granularity. Up to one dimension is + // supported for now. + Dimensions []*GoogleCloudContactcenterinsightsV1Dimension `json:"dimensions,omitempty"` + // Filter: Required. Filter to select a subset of conversations to compute the + // metrics. Must specify a window of the conversation create time to compute + // the metrics. The returned metrics will be from the range [DATE(starting + // create time), DATE(ending create time)). + Filter string `json:"filter,omitempty"` + // MeasureMask: Measures to return. Defaults to all measures if this field is + // unspecified. A valid mask should traverse from the `measure` field from the + // response. For example, a path from a measure mask to get the conversation + // count is "conversation_measure.count". + MeasureMask string `json:"measureMask,omitempty"` + // TimeGranularity: The time granularity of each data point in the time series. + // Defaults to NONE if this field is unspecified. + // + // Possible values: + // "TIME_GRANULARITY_UNSPECIFIED" - The time granularity is unspecified and + // will default to NONE. + // "NONE" - No time granularity. The response won't contain a time series. + // This is the default value if no time granularity is specified. + // "DAILY" - Data points in the time series will aggregate at a daily + // granularity. 1 day means [midnight to midnight). + // "HOURLY" - Data points in the time series will aggregate at a daily + // granularity. 1 HOUR means [01:00 to 02:00). + // "PER_MINUTE" - Data points in the time series will aggregate at a daily + // granularity. PER_MINUTE means [01:00 to 01:01). + // "PER_5_MINUTES" - Data points in the time series will aggregate at a 1 + // minute granularity. PER_5_MINUTES means [01:00 to 01:05). + TimeGranularity string `json:"timeGranularity,omitempty"` + // ForceSendFields is a list of field names (e.g. "Dimensions") 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. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "Dimensions") 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 GoogleCloudContactcenterinsightsV1View) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1View +func (s GoogleCloudContactcenterinsightsV1QueryMetricsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QueryMetricsRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1Analysis: The analysis resource. -type GoogleCloudContactcenterinsightsV1alpha1Analysis struct { - // AnalysisResult: Output only. The result of the analysis, which is populated - // when the analysis finishes. - AnalysisResult *GoogleCloudContactcenterinsightsV1alpha1AnalysisResult `json:"analysisResult,omitempty"` - // AnnotatorSelector: To select the annotators to run and the phrase matchers - // to use (if any). If not specified, all annotators will be run. - AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"` - // CreateTime: Output only. The time at which the analysis was created, which - // occurs when the long-running operation completes. - CreateTime string `json:"createTime,omitempty"` - // Name: Immutable. The resource name of the analysis. Format: - // projects/{project}/locations/{location}/conversations/{conversation}/analyses - // /{analysis} - Name string `json:"name,omitempty"` - // RequestTime: Output only. The time at which the analysis was requested. - RequestTime string `json:"requestTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalysisResult") to +// GoogleCloudContactcenterinsightsV1QueryMetricsResponse: The response for +// querying metrics. +type GoogleCloudContactcenterinsightsV1QueryMetricsResponse struct { + // Location: Required. The location of the data. + // "projects/{project}/locations/{location}" + Location string `json:"location,omitempty"` + // MacroAverageSlice: The macro average slice contains aggregated averages + // across the selected dimension. i.e. if group_by agent is specified this + // field will contain the average across all agents. This field is only + // populated if the request specifies a Dimension. + MacroAverageSlice *GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice `json:"macroAverageSlice,omitempty"` + // Slices: A slice contains a total and (if the request specified a time + // granularity) a time series of metric values. Each slice contains a unique + // combination of the cardinality of dimensions from the request. + Slices []*GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice `json:"slices,omitempty"` + // UpdateTime: The metrics last update time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "Location") 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. "AnalysisResult") 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. "Location") 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 GoogleCloudContactcenterinsightsV1alpha1Analysis) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1Analysis +func (s GoogleCloudContactcenterinsightsV1QueryMetricsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QueryMetricsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1AnalysisResult: The result of an -// analysis. -type GoogleCloudContactcenterinsightsV1alpha1AnalysisResult struct { - // CallAnalysisMetadata: Call-specific metadata created by the analysis. - CallAnalysisMetadata *GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata `json:"callAnalysisMetadata,omitempty"` - // EndTime: The time at which the analysis ended. - EndTime string `json:"endTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CallAnalysisMetadata") to +// GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice: A slice +// contains a total and (if the request specified a time granularity) a time +// series of metric values. Each slice contains a unique combination of the +// cardinality of dimensions from the request. For example, if the request +// specifies a single ISSUE dimension and it has a cardinality of 2 (i.e. the +// data used to compute the metrics has 2 issues in total), the response will +// have 2 slices: * Slice 1 -> dimensions=[Issue 1] * Slice 2 -> +// dimensions=[Issue 2] +type GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice struct { + // Dimensions: A unique combination of dimensions that this slice represents. + Dimensions []*GoogleCloudContactcenterinsightsV1Dimension `json:"dimensions,omitempty"` + // TimeSeries: A time series of metric values. This is only populated if the + // request specifies a time granularity other than NONE. + TimeSeries *GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries `json:"timeSeries,omitempty"` + // Total: The total metric value. The interval of this data point is [starting + // create time, ending create time) from the request. + Total *GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint `json:"total,omitempty"` + // ForceSendFields is a list of field names (e.g. "Dimensions") 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. "CallAnalysisMetadata") 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. "Dimensions") 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 GoogleCloudContactcenterinsightsV1alpha1AnalysisResult) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnalysisResult +func (s GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata: -// Call-specific metadata created during analysis. -type GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata struct { - // Annotations: A list of call annotations that apply to this call. - Annotations []*GoogleCloudContactcenterinsightsV1alpha1CallAnnotation `json:"annotations,omitempty"` - // Entities: All the entities in the call. - Entities map[string]GoogleCloudContactcenterinsightsV1alpha1Entity `json:"entities,omitempty"` - // Intents: All the matched intents in the call. - Intents map[string]GoogleCloudContactcenterinsightsV1alpha1Intent `json:"intents,omitempty"` - // IssueModelResult: Overall conversation-level issue modeling result. - IssueModelResult *GoogleCloudContactcenterinsightsV1alpha1IssueModelResult `json:"issueModelResult,omitempty"` - // PhraseMatchers: All the matched phrase matchers in the call. - PhraseMatchers map[string]GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData `json:"phraseMatchers,omitempty"` - // Sentiments: Overall conversation-level sentiment for each channel of the - // call. - Sentiments []*GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment `json:"sentiments,omitempty"` - // Silence: Overall conversation-level silence during the call. - Silence *GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence `json:"silence,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to +// GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint: A data +// point contains the metric values mapped to an interval. +type GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint struct { + // ConversationMeasure: The measure related to conversations. + ConversationMeasure *GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure `json:"conversationMeasure,omitempty"` + // Interval: The interval that this data point represents. * If this is the + // total data point, the interval is [starting create time, ending create time) + // from the request. * If this a data point from the time series, the interval + // is [time, time + time granularity from the request). + Interval *GoogleTypeInterval `json:"interval,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConversationMeasure") 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. "Annotations") 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. "ConversationMeasure") 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 GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata +func (s GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary: A point in a -// conversation that marks the start or the end of an annotation. -type GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary struct { - // TranscriptIndex: The index in the sequence of transcribed pieces of the - // conversation where the boundary is located. This index starts at zero. - TranscriptIndex int64 `json:"transcriptIndex,omitempty"` - // WordIndex: The word index of this boundary with respect to the first word in - // the transcript piece. This index starts at zero. - WordIndex int64 `json:"wordIndex,omitempty"` - // ForceSendFields is a list of field names (e.g. "TranscriptIndex") to - // unconditionally include in API requests. By default, fields with empty or +// GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversat +// ionMeasure: The measure related to conversations. +type GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure struct { + // AverageAgentSentimentScore: The average agent's sentiment score. + AverageAgentSentimentScore float64 `json:"averageAgentSentimentScore,omitempty"` + // AverageClientSentimentScore: The average client's sentiment score. + AverageClientSentimentScore float64 `json:"averageClientSentimentScore,omitempty"` + // AverageCustomerSatisfactionRating: The average customer satisfaction rating. + AverageCustomerSatisfactionRating float64 `json:"averageCustomerSatisfactionRating,omitempty"` + // AverageDuration: The average duration. + AverageDuration string `json:"averageDuration,omitempty"` + // AverageQaNormalizedScore: Average QA normalized score. Will exclude 0's in + // average calculation. + AverageQaNormalizedScore float64 `json:"averageQaNormalizedScore,omitempty"` + // AverageQaQuestionNormalizedScore: Average QA normalized score averaged for + // questions averaged across all revisions of the parent scorecard. Will be + // only populated if the request specifies a dimension of QA_QUESTION_ID. + AverageQaQuestionNormalizedScore float64 `json:"averageQaQuestionNormalizedScore,omitempty"` + // AverageSilencePercentage: The average silence percentage. + AverageSilencePercentage float64 `json:"averageSilencePercentage,omitempty"` + // AverageTurnCount: The average turn count. + AverageTurnCount float64 `json:"averageTurnCount,omitempty"` + // ConversationCount: The conversation count. + ConversationCount int64 `json:"conversationCount,omitempty"` + // QaTagScores: Average QA normalized score for all the tags. + QaTagScores []*GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore `json:"qaTagScores,omitempty"` + // ForceSendFields is a list of field names (e.g. "AverageAgentSentimentScore") + // 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. "TranscriptIndex") 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. "AverageAgentSentimentScore") 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 GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary +func (s GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector: Selector of all -// available annotators and phrase matchers to run. -type GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector struct { - // IssueModels: The issue model to run. If not provided, the most recently - // deployed topic model will be used. The provided issue model will only be - // used for inference if the issue model is deployed and if - // run_issue_model_annotator is set to true. If more than one issue model is - // provided, only the first provided issue model will be used for inference. - IssueModels []string `json:"issueModels,omitempty"` - // PhraseMatchers: The list of phrase matchers to run. If not provided, all - // active phrase matchers will be used. If inactive phrase matchers are - // provided, they will not be used. Phrase matchers will be run only if - // run_phrase_matcher_annotator is set to true. Format: - // projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} - PhraseMatchers []string `json:"phraseMatchers,omitempty"` - // RunEntityAnnotator: Whether to run the entity annotator. - RunEntityAnnotator bool `json:"runEntityAnnotator,omitempty"` - // RunIntentAnnotator: Whether to run the intent annotator. - RunIntentAnnotator bool `json:"runIntentAnnotator,omitempty"` - // RunInterruptionAnnotator: Whether to run the interruption annotator. - RunInterruptionAnnotator bool `json:"runInterruptionAnnotator,omitempty"` - // RunIssueModelAnnotator: Whether to run the issue model annotator. A model - // should have already been deployed for this to take effect. - RunIssueModelAnnotator bool `json:"runIssueModelAnnotator,omitempty"` - // RunPhraseMatcherAnnotator: Whether to run the active phrase matcher - // annotator(s). - RunPhraseMatcherAnnotator bool `json:"runPhraseMatcherAnnotator,omitempty"` - // RunSentimentAnnotator: Whether to run the sentiment annotator. - RunSentimentAnnotator bool `json:"runSentimentAnnotator,omitempty"` - // RunSilenceAnnotator: Whether to run the silence annotator. - RunSilenceAnnotator bool `json:"runSilenceAnnotator,omitempty"` - // RunSummarizationAnnotator: Whether to run the summarization annotator. - RunSummarizationAnnotator bool `json:"runSummarizationAnnotator,omitempty"` - // SummarizationConfig: Configuration for the summarization annotator. - SummarizationConfig *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig `json:"summarizationConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "IssueModels") to - // unconditionally include in API requests. By default, fields with empty or +func (s *GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure + var s1 struct { + AverageAgentSentimentScore gensupport.JSONFloat64 `json:"averageAgentSentimentScore"` + AverageClientSentimentScore gensupport.JSONFloat64 `json:"averageClientSentimentScore"` + AverageCustomerSatisfactionRating gensupport.JSONFloat64 `json:"averageCustomerSatisfactionRating"` + AverageQaNormalizedScore gensupport.JSONFloat64 `json:"averageQaNormalizedScore"` + AverageQaQuestionNormalizedScore gensupport.JSONFloat64 `json:"averageQaQuestionNormalizedScore"` + AverageSilencePercentage gensupport.JSONFloat64 `json:"averageSilencePercentage"` + AverageTurnCount gensupport.JSONFloat64 `json:"averageTurnCount"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AverageAgentSentimentScore = float64(s1.AverageAgentSentimentScore) + s.AverageClientSentimentScore = float64(s1.AverageClientSentimentScore) + s.AverageCustomerSatisfactionRating = float64(s1.AverageCustomerSatisfactionRating) + s.AverageQaNormalizedScore = float64(s1.AverageQaNormalizedScore) + s.AverageQaQuestionNormalizedScore = float64(s1.AverageQaQuestionNormalizedScore) + s.AverageSilencePercentage = float64(s1.AverageSilencePercentage) + s.AverageTurnCount = float64(s1.AverageTurnCount) + return nil +} + +// GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversat +// ionMeasureQaTagScore: Average QA normalized score for the tag. +type GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore struct { + // AverageTagNormalizedScore: Average tag normalized score per tag. + AverageTagNormalizedScore float64 `json:"averageTagNormalizedScore,omitempty"` + // Tag: Tag name. + Tag string `json:"tag,omitempty"` + // ForceSendFields is a list of field names (e.g. "AverageTagNormalizedScore") + // 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. "IssueModels") 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. "AverageTagNormalizedScore") 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 GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector +func (s GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig: -// -// Configuration for summarization. -type GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig struct { - // ConversationProfile: Resource name of the Dialogflow conversation profile. - // Format: - // projects/{project}/locations/{location}/conversationProfiles/{conversation_pr - // ofile} - ConversationProfile string `json:"conversationProfile,omitempty"` - // SummarizationModel: Default summarization model to be used. - // - // Possible values: - // "SUMMARIZATION_MODEL_UNSPECIFIED" - Unspecified summarization model. - // "BASELINE_MODEL" - The CCAI baseline model. - // "BASELINE_MODEL_V2_0" - The CCAI baseline model, V2.0. - SummarizationModel string `json:"summarizationModel,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConversationProfile") to +func (s *GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore + var s1 struct { + AverageTagNormalizedScore gensupport.JSONFloat64 `json:"averageTagNormalizedScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AverageTagNormalizedScore = float64(s1.AverageTagNormalizedScore) + return nil +} + +// GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries: A +// time series of metric values. +type GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries struct { + // DataPoints: The data points that make up the time series . + DataPoints []*GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint `json:"dataPoints,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataPoints") 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. "ConversationProfile") 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. "DataPoints") 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 GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig +func (s GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback: The feedback that -// the customer has about a certain answer in the conversation. -type GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback struct { - // Clicked: Indicates whether an answer or item was clicked by the human agent. - Clicked bool `json:"clicked,omitempty"` - // CorrectnessLevel: The correctness level of an answer. - // - // Possible values: - // "CORRECTNESS_LEVEL_UNSPECIFIED" - Correctness level unspecified. - // "NOT_CORRECT" - Answer is totally wrong. - // "PARTIALLY_CORRECT" - Answer is partially correct. - // "FULLY_CORRECT" - Answer is fully correct. - CorrectnessLevel string `json:"correctnessLevel,omitempty"` - // Displayed: Indicates whether an answer or item was displayed to the human - // agent in the agent desktop UI. - Displayed bool `json:"displayed,omitempty"` - // ForceSendFields is a list of field names (e.g. "Clicked") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// GoogleCloudContactcenterinsightsV1RedactionConfig: DLP resources used for +// redaction while ingesting conversations. DLP settings are applied to +// conversations ingested from the `UploadConversation` and +// `IngestConversations` endpoints, including conversation coming from CCAI +// Platform. They are not applied to conversations ingested from the +// `CreateConversation` endpoint or the Dialogflow / Agent Assist runtime +// integrations. When using Dialogflow / Agent Assist runtime integrations, +// redaction should be performed in Dialogflow / Agent Assist. +type GoogleCloudContactcenterinsightsV1RedactionConfig struct { + // DeidentifyTemplate: The fully-qualified DLP deidentify template resource + // name. Format: `projects/{project}/deidentifyTemplates/{template}` + DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"` + // InspectTemplate: The fully-qualified DLP inspect template resource name. + // Format: + // `projects/{project}/locations/{location}/inspectTemplates/{template}` + InspectTemplate string `json:"inspectTemplate,omitempty"` + // ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") 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. "Clicked") 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. "DeidentifyTemplate") 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 GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback +func (s GoogleCloudContactcenterinsightsV1RedactionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1RedactionConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData: Agent Assist -// Article Suggestion data. -type GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData struct { - // ConfidenceScore: The system's confidence score that this article is a good - // match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 - // (completely certain). - ConfidenceScore float64 `json:"confidenceScore,omitempty"` - // Metadata: Map that contains metadata about the Article Suggestion and the - // document that it originates from. - Metadata map[string]string `json:"metadata,omitempty"` - // QueryRecord: The name of the answer record. Format: - // projects/{project}/locations/{location}/answerRecords/{answer_record} - QueryRecord string `json:"queryRecord,omitempty"` - // Source: The knowledge document that this answer was extracted from. Format: - // projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} - Source string `json:"source,omitempty"` - // Title: Article title. - Title string `json:"title,omitempty"` - // Uri: Article URI. - Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to +// GoogleCloudContactcenterinsightsV1RuntimeAnnotation: An annotation that was +// generated during the customer and agent interaction. +type GoogleCloudContactcenterinsightsV1RuntimeAnnotation struct { + // AnnotationId: The unique identifier of the annotation. Format: + // projects/{project}/locations/{location}/conversationDatasets/{dataset}/conver + // sationDataItems/{data_item}/conversationAnnotations/{annotation} + AnnotationId string `json:"annotationId,omitempty"` + // AnswerFeedback: The feedback that the customer has about the answer in + // `data`. + AnswerFeedback *GoogleCloudContactcenterinsightsV1AnswerFeedback `json:"answerFeedback,omitempty"` + // ArticleSuggestion: Agent Assist Article Suggestion data. + ArticleSuggestion *GoogleCloudContactcenterinsightsV1ArticleSuggestionData `json:"articleSuggestion,omitempty"` + // ConversationSummarizationSuggestion: Conversation summarization suggestion + // data. + ConversationSummarizationSuggestion *GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData `json:"conversationSummarizationSuggestion,omitempty"` + // CreateTime: The time at which this annotation was created. + CreateTime string `json:"createTime,omitempty"` + // DialogflowInteraction: Dialogflow interaction data. + DialogflowInteraction *GoogleCloudContactcenterinsightsV1DialogflowInteractionData `json:"dialogflowInteraction,omitempty"` + // EndBoundary: The boundary in the conversation where the annotation ends, + // inclusive. + EndBoundary *GoogleCloudContactcenterinsightsV1AnnotationBoundary `json:"endBoundary,omitempty"` + // FaqAnswer: Agent Assist FAQ answer data. + FaqAnswer *GoogleCloudContactcenterinsightsV1FaqAnswerData `json:"faqAnswer,omitempty"` + // SmartComposeSuggestion: Agent Assist Smart Compose suggestion data. + SmartComposeSuggestion *GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData `json:"smartComposeSuggestion,omitempty"` + // SmartReply: Agent Assist Smart Reply data. + SmartReply *GoogleCloudContactcenterinsightsV1SmartReplyData `json:"smartReply,omitempty"` + // StartBoundary: The boundary in the conversation where the annotation starts, + // inclusive. + StartBoundary *GoogleCloudContactcenterinsightsV1AnnotationBoundary `json:"startBoundary,omitempty"` + // UserInput: Explicit input used for generating the answer + UserInput *GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput `json:"userInput,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnnotationId") 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. "ConfidenceScore") 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. "AnnotationId") 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 GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData +func (s GoogleCloudContactcenterinsightsV1RuntimeAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1RuntimeAnnotation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData - var s1 struct { - ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ConfidenceScore = float64(s1.ConfidenceScore) - return nil -} - -// GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata: -// The metadata for a bulk analyze conversations operation. -type GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata struct { - // CompletedAnalysesCount: The number of requested analyses that have completed - // successfully so far. - CompletedAnalysesCount int64 `json:"completedAnalysesCount,omitempty"` - // CreateTime: The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - // EndTime: The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // FailedAnalysesCount: The number of requested analyses that have failed so - // far. - FailedAnalysesCount int64 `json:"failedAnalysesCount,omitempty"` - // PartialErrors: Output only. Partial errors during bulk analyze operation - // that might cause the operation output to be incomplete. - PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` - // Request: The original request for bulk analyze. - Request *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest `json:"request,omitempty"` - // TotalRequestedAnalysesCount: Total number of analyses requested. Computed by - // the number of conversations returned by `filter` multiplied by - // `analysis_percentage` in the request. - TotalRequestedAnalysesCount int64 `json:"totalRequestedAnalysesCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompletedAnalysesCount") to +// GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput: Explicit input +// used for generating the answer +type GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput struct { + // GeneratorName: The resource name of associated generator. Format: + // `projects//locations//generators/` + GeneratorName string `json:"generatorName,omitempty"` + // Query: Query text. Article Search uses this to store the input query used to + // generate the search results. + Query string `json:"query,omitempty"` + // QuerySource: Query source for the answer. + // + // Possible values: + // "QUERY_SOURCE_UNSPECIFIED" - Unknown query source. + // "AGENT_QUERY" - The query is from agents. + // "SUGGESTED_QUERY" - The query is a query from previous suggestions, e.g. + // from a preceding SuggestKnowledgeAssist response. + QuerySource string `json:"querySource,omitempty"` + // ForceSendFields is a list of field names (e.g. "GeneratorName") 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. "CompletedAnalysesCount") 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. "GeneratorName") 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 GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata +func (s GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest: The -// request to analyze conversations in bulk. -type GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest struct { - // AnalysisPercentage: Required. Percentage of selected conversation to - // analyze, between [0, 100]. - AnalysisPercentage float64 `json:"analysisPercentage,omitempty"` - // AnnotatorSelector: To select the annotators to run and the phrase matchers - // to use (if any). If not specified, all annotators will be run. - AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"` - // Filter: Required. Filter used to select the subset of conversations to - // analyze. - Filter string `json:"filter,omitempty"` - // Parent: Required. The parent resource to create analyses in. - Parent string `json:"parent,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalysisPercentage") to +// GoogleCloudContactcenterinsightsV1SentimentData: The data for a sentiment +// annotation. +type GoogleCloudContactcenterinsightsV1SentimentData struct { + // Magnitude: A non-negative number from 0 to infinity which represents the + // abolute magnitude of sentiment regardless of score. + Magnitude float64 `json:"magnitude,omitempty"` + // Score: The sentiment score between -1.0 (negative) and 1.0 (positive). + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "Magnitude") 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. "AnalysisPercentage") 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. "Magnitude") 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 GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest +func (s GoogleCloudContactcenterinsightsV1SentimentData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1SentimentData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest +func (s *GoogleCloudContactcenterinsightsV1SentimentData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1SentimentData var s1 struct { - AnalysisPercentage gensupport.JSONFloat64 `json:"analysisPercentage"` + Magnitude gensupport.JSONFloat64 `json:"magnitude"` + Score gensupport.JSONFloat64 `json:"score"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } - s.AnalysisPercentage = float64(s1.AnalysisPercentage) + s.Magnitude = float64(s1.Magnitude) + s.Score = float64(s1.Score) return nil } -// GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse: -// The response for a bulk analyze conversations operation. -type GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse struct { - // FailedAnalysisCount: Count of failed analyses. - FailedAnalysisCount int64 `json:"failedAnalysisCount,omitempty"` - // SuccessfulAnalysisCount: Count of successful analyses. - SuccessfulAnalysisCount int64 `json:"successfulAnalysisCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "FailedAnalysisCount") 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. "FailedAnalysisCount") 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 GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata: The -// metadata for a bulk delete conversations operation. -type GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata struct { - // CreateTime: The time the operation was created. +// GoogleCloudContactcenterinsightsV1Settings: The CCAI Insights project wide +// settings. Use these settings to configure the behavior of Insights. View +// these settings with `getsettings` +// (https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/getSettings) +// and change the settings with `updateSettings` +// (https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/updateSettings). +type GoogleCloudContactcenterinsightsV1Settings struct { + // AnalysisConfig: Default analysis settings. + AnalysisConfig *GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig `json:"analysisConfig,omitempty"` + // ConversationTtl: The default TTL for newly-created conversations. If a + // conversation has a specified expiration, that value will be used instead. + // Changing this value will not change the expiration of existing + // conversations. Conversations with no expire time persist until they are + // deleted. + ConversationTtl string `json:"conversationTtl,omitempty"` + // CreateTime: Output only. The time at which the settings was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // PartialErrors: Partial errors during bulk delete conversations operation - // that might cause the operation output to be incomplete. - PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` - // Request: The original request for bulk delete. - Request *GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest `json:"request,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // LanguageCode: A language code to be applied to each transcript segment + // unless the segment already specifies a language code. Language code defaults + // to "en-US" if it is neither specified on the segment nor here. + LanguageCode string `json:"languageCode,omitempty"` + // Name: Immutable. The resource name of the settings resource. Format: + // projects/{project}/locations/{location}/settings + Name string `json:"name,omitempty"` + // PubsubNotificationSettings: A map that maps a notification trigger to a + // Pub/Sub topic. Each time a specified trigger occurs, Insights will notify + // the corresponding Pub/Sub topic. Keys are notification triggers. Supported + // keys are: * "all-triggers": Notify each time any of the supported triggers + // occurs. * "create-analysis": Notify each time an analysis is created. * + // "create-conversation": Notify each time a conversation is created. * + // "export-insights-data": Notify each time an export is complete. * + // "ingest-conversations": Notify each time an IngestConversations LRO is + // complete. * "update-conversation": Notify each time a conversation is + // updated via UpdateConversation. * "upload-conversation": Notify when an + // UploadConversation LRO is complete. Values are Pub/Sub topics. The format of + // each Pub/Sub topic is: projects/{project}/topics/{topic} + PubsubNotificationSettings map[string]string `json:"pubsubNotificationSettings,omitempty"` + // RedactionConfig: Default DLP redaction resources to be applied while + // ingesting conversations. This applies to conversations ingested from the + // `UploadConversation` and `IngestConversations` endpoints, including + // conversations coming from CCAI Platform. + RedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"redactionConfig,omitempty"` + // SpeechConfig: Optional. Default Speech-to-Text resources to use while + // ingesting audio files. Optional, CCAI Insights will create a default if not + // provided. This applies to conversations ingested from the + // `UploadConversation` and `IngestConversations` endpoints, including + // conversations coming from CCAI Platform. + SpeechConfig *GoogleCloudContactcenterinsightsV1SpeechConfig `json:"speechConfig,omitempty"` + // UpdateTime: Output only. The time at which the settings were last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AnalysisConfig") 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. "CreateTime") 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. "AnalysisConfig") 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 GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata +func (s GoogleCloudContactcenterinsightsV1Settings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1Settings return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest: The -// request to delete conversations in bulk. -type GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest struct { - // Filter: Filter used to select the subset of conversations to delete. - Filter string `json:"filter,omitempty"` - // 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. - Force bool `json:"force,omitempty"` - // MaxDeleteCount: Maximum number of conversations to delete. - MaxDeleteCount int64 `json:"maxDeleteCount,omitempty"` - // Parent: Required. The parent resource to delete conversations from. Format: - // projects/{project}/locations/{location} - Parent string `json:"parent,omitempty"` - // ForceSendFields is a list of field names (e.g. "Filter") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig: Default +// configuration when creating Analyses in Insights. +type GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig struct { + // AnnotatorSelector: To select the annotators to run and the phrase matchers + // to use (if any). If not specified, all annotators will be run. + AnnotatorSelector *GoogleCloudContactcenterinsightsV1AnnotatorSelector `json:"annotatorSelector,omitempty"` + // RuntimeIntegrationAnalysisPercentage: Percentage of conversations created + // using Dialogflow runtime integration to analyze automatically, between [0, + // 100]. + RuntimeIntegrationAnalysisPercentage float64 `json:"runtimeIntegrationAnalysisPercentage,omitempty"` + // UploadConversationAnalysisPercentage: Percentage of conversations created + // using the UploadConversation endpoint to analyze automatically, between [0, + // 100]. + UploadConversationAnalysisPercentage float64 `json:"uploadConversationAnalysisPercentage,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnnotatorSelector") 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. "Filter") 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. "AnnotatorSelector") 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 GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest +func (s GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsResponse: The -// response for a bulk delete conversations operation. -type GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsResponse struct { +func (s *GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig + var s1 struct { + RuntimeIntegrationAnalysisPercentage gensupport.JSONFloat64 `json:"runtimeIntegrationAnalysisPercentage"` + UploadConversationAnalysisPercentage gensupport.JSONFloat64 `json:"uploadConversationAnalysisPercentage"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.RuntimeIntegrationAnalysisPercentage = float64(s1.RuntimeIntegrationAnalysisPercentage) + s.UploadConversationAnalysisPercentage = float64(s1.UploadConversationAnalysisPercentage) + return nil } -// GoogleCloudContactcenterinsightsV1alpha1CallAnnotation: A piece of metadata -// that applies to a window of a call. -type GoogleCloudContactcenterinsightsV1alpha1CallAnnotation struct { - // AnnotationEndBoundary: The boundary in the conversation where the annotation - // ends, inclusive. - AnnotationEndBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"annotationEndBoundary,omitempty"` - // AnnotationStartBoundary: The boundary in the conversation where the - // annotation starts, inclusive. - AnnotationStartBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"annotationStartBoundary,omitempty"` - // ChannelTag: The channel of the audio where the annotation occurs. For - // single-channel audio, this field is not populated. - ChannelTag int64 `json:"channelTag,omitempty"` - // EntityMentionData: Data specifying an entity mention. - EntityMentionData *GoogleCloudContactcenterinsightsV1alpha1EntityMentionData `json:"entityMentionData,omitempty"` - // HoldData: Data specifying a hold. - HoldData *GoogleCloudContactcenterinsightsV1alpha1HoldData `json:"holdData,omitempty"` - // IntentMatchData: Data specifying an intent match. - IntentMatchData *GoogleCloudContactcenterinsightsV1alpha1IntentMatchData `json:"intentMatchData,omitempty"` - // InterruptionData: Data specifying an interruption. - InterruptionData *GoogleCloudContactcenterinsightsV1alpha1InterruptionData `json:"interruptionData,omitempty"` - // IssueMatchData: Data specifying an issue match. - IssueMatchData *GoogleCloudContactcenterinsightsV1alpha1IssueMatchData `json:"issueMatchData,omitempty"` - // PhraseMatchData: Data specifying a phrase match. - PhraseMatchData *GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData `json:"phraseMatchData,omitempty"` - // SentimentData: Data specifying sentiment. - SentimentData *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentimentData,omitempty"` - // SilenceData: Data specifying silence. - SilenceData *GoogleCloudContactcenterinsightsV1alpha1SilenceData `json:"silenceData,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnnotationEndBoundary") to +// GoogleCloudContactcenterinsightsV1SilenceData: The data for a silence +// annotation. +type GoogleCloudContactcenterinsightsV1SilenceData struct { +} + +// GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData: Agent Assist +// Smart Compose suggestion data. +type GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData struct { + // ConfidenceScore: The system's confidence score that this suggestion is a + // good match for this conversation, ranging from 0.0 (completely uncertain) to + // 1.0 (completely certain). + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // Metadata: Map that contains metadata about the Smart Compose suggestion and + // the document from which it originates. + Metadata map[string]string `json:"metadata,omitempty"` + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} + QueryRecord string `json:"queryRecord,omitempty"` + // Suggestion: The content of the suggestion. + Suggestion string `json:"suggestion,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") 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. "AnnotationEndBoundary") 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. "ConfidenceScore") 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 GoogleCloudContactcenterinsightsV1alpha1CallAnnotation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1CallAnnotation +func (s GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1Conversation: The conversation -// resource. -type GoogleCloudContactcenterinsightsV1alpha1Conversation struct { - // AgentId: An opaque, user-specified string representing the human agent who - // handled the conversation. - AgentId string `json:"agentId,omitempty"` - // CallMetadata: Call-specific metadata. - CallMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata `json:"callMetadata,omitempty"` - // CreateTime: Output only. The time at which the conversation was created. - CreateTime string `json:"createTime,omitempty"` - // DataSource: The source of the audio and transcription for the conversation. - DataSource *GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource `json:"dataSource,omitempty"` - // DialogflowIntents: Output only. All the matched Dialogflow intents in the - // call. The key corresponds to a Dialogflow intent, format: - // projects/{project}/agent/{agent}/intents/{intent} - DialogflowIntents map[string]GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent `json:"dialogflowIntents,omitempty"` - // Duration: Output only. The duration of the conversation. - Duration string `json:"duration,omitempty"` - // ExpireTime: The time at which this conversation should expire. After this - // time, the conversation data and any associated analyses will be deleted. - ExpireTime string `json:"expireTime,omitempty"` - // Labels: A map for the user to specify any custom fields. A maximum of 20 - // labels per conversation is allowed, with a maximum of 256 characters per - // entry. - Labels map[string]string `json:"labels,omitempty"` - // LanguageCode: A user-specified language code for the conversation. - LanguageCode string `json:"languageCode,omitempty"` - // LatestAnalysis: Output only. The conversation's latest analysis, if one - // exists. - LatestAnalysis *GoogleCloudContactcenterinsightsV1alpha1Analysis `json:"latestAnalysis,omitempty"` - // LatestSummary: Output only. Latest summary of the conversation. - LatestSummary *GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData `json:"latestSummary,omitempty"` - // Medium: Immutable. The conversation medium, if unspecified will default to - // PHONE_CALL. - // - // Possible values: - // "MEDIUM_UNSPECIFIED" - Default value, if unspecified will default to - // PHONE_CALL. - // "PHONE_CALL" - The format for conversations that took place over the - // phone. - // "CHAT" - The format for conversations that took place over chat. - Medium string `json:"medium,omitempty"` - // MetadataJson: Input only. JSON metadata encoded as a string. This field is - // primarily used by Insights integrations with various telphony systems and - // must be in one of Insight's supported formats. - MetadataJson string `json:"metadataJson,omitempty"` - // Name: Immutable. The resource name of the conversation. Format: - // projects/{project}/locations/{location}/conversations/{conversation} - Name string `json:"name,omitempty"` - // ObfuscatedUserId: Obfuscated user ID which the customer sent to us. - ObfuscatedUserId string `json:"obfuscatedUserId,omitempty"` - // QualityMetadata: Conversation metadata related to quality management. - QualityMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata `json:"qualityMetadata,omitempty"` - // RuntimeAnnotations: Output only. The annotations that were generated during - // the customer and agent interaction. - RuntimeAnnotations []*GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation `json:"runtimeAnnotations,omitempty"` - // StartTime: The time at which the conversation started. - StartTime string `json:"startTime,omitempty"` - // Transcript: Output only. The conversation transcript. - Transcript *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript `json:"transcript,omitempty"` - // Ttl: Input only. The TTL for this resource. If specified, then this TTL will - // be used to calculate the expire time. - Ttl string `json:"ttl,omitempty"` - // TurnCount: Output only. The number of turns in the conversation. - TurnCount int64 `json:"turnCount,omitempty"` - // UpdateTime: Output only. The most recent time at which the conversation was - // updated. - UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgentId") 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. "AgentId") 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 GoogleCloudContactcenterinsightsV1alpha1Conversation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1Conversation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +func (s *GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil } -// GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata: -// Call-specific metadata. -type GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata struct { - // AgentChannel: The audio channel that contains the agent. - AgentChannel int64 `json:"agentChannel,omitempty"` - // CustomerChannel: The audio channel that contains the customer. - CustomerChannel int64 `json:"customerChannel,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgentChannel") to +// GoogleCloudContactcenterinsightsV1SmartReplyData: Agent Assist Smart Reply +// data. +type GoogleCloudContactcenterinsightsV1SmartReplyData struct { + // ConfidenceScore: The system's confidence score that this reply is a good + // match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 + // (completely certain). + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // Metadata: Map that contains metadata about the Smart Reply and the document + // from which it originates. + Metadata map[string]string `json:"metadata,omitempty"` + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} + QueryRecord string `json:"queryRecord,omitempty"` + // Reply: The content of the reply. + Reply string `json:"reply,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") 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. "AgentChannel") 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. "ConfidenceScore") 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 GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata +func (s GoogleCloudContactcenterinsightsV1SmartReplyData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1SmartReplyData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource: The -// conversation source, which is a combination of transcript and audio. -type GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource struct { - // DialogflowSource: The source when the conversation comes from Dialogflow. - DialogflowSource *GoogleCloudContactcenterinsightsV1alpha1DialogflowSource `json:"dialogflowSource,omitempty"` - // GcsSource: A Cloud Storage location specification for the audio and - // transcript. - GcsSource *GoogleCloudContactcenterinsightsV1alpha1GcsSource `json:"gcsSource,omitempty"` - // ForceSendFields is a list of field names (e.g. "DialogflowSource") to +func (s *GoogleCloudContactcenterinsightsV1SmartReplyData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1SmartReplyData + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + +// GoogleCloudContactcenterinsightsV1SpeechConfig: Speech-to-Text +// configuration. Speech-to-Text settings are applied to conversations ingested +// from the `UploadConversation` and `IngestConversations` endpoints, including +// conversation coming from CCAI Platform. They are not applied to +// conversations ingested from the `CreateConversation` endpoint. +type GoogleCloudContactcenterinsightsV1SpeechConfig struct { + // SpeechRecognizer: The fully-qualified Speech Recognizer resource name. + // Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + SpeechRecognizer string `json:"speechRecognizer,omitempty"` + // ForceSendFields is a list of field names (e.g. "SpeechRecognizer") 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. "DialogflowSource") to include in + // NullFields is a list of field names (e.g. "SpeechRecognizer") 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 GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource +func (s GoogleCloudContactcenterinsightsV1SpeechConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1SpeechConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment: One -// channel of conversation-level sentiment data. -type GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment struct { - // ChannelTag: The channel of the audio that the data applies to. - ChannelTag int64 `json:"channelTag,omitempty"` - // SentimentData: Data specifying sentiment. - SentimentData *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentimentData,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelTag") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest: Request +// for TuneQaScorecardRevision endpoint. +type GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest struct { + // Filter: Required. Filter for selecting the feedback labels that needs to be + // used for training. This filter can be used to limit the feedback labels used + // for tuning to a feedback labels created or updated for a specific + // time-window etc. + Filter string `json:"filter,omitempty"` + // ValidateOnly: Optional. Run in validate only mode, no fine tuning will + // actually run. Data quality validations like training data distributions will + // run. Even when set to false, the data quality validations will still run but + // once the validations complete we will proceed with the fine tune, if + // applicable. + ValidateOnly bool `json:"validateOnly,omitempty"` + // ForceSendFields is a list of field names (e.g. "Filter") 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. "ChannelTag") to include in API + // NullFields is a list of field names (e.g. "Filter") 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 GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment +func (s GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence: -// Conversation-level silence data. -type GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence struct { - // SilenceDuration: Amount of time calculated to be in silence. - SilenceDuration string `json:"silenceDuration,omitempty"` - // SilencePercentage: Percentage of the total conversation spent in silence. - SilencePercentage float64 `json:"silencePercentage,omitempty"` - // ForceSendFields is a list of field names (e.g. "SilenceDuration") to +// GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata: Metadata for +// undeploying an issue model. +type GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // Request: The original request for undeployment. + Request *GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "SilenceDuration") 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. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence +func (s GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence - var s1 struct { - SilencePercentage gensupport.JSONFloat64 `json:"silencePercentage"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.SilencePercentage = float64(s1.SilencePercentage) - return nil -} - -// GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant: The call -// participant speaking for a given utterance. -type GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant struct { - // DialogflowParticipant: Deprecated. Use `dialogflow_participant_name` - // instead. The name of the Dialogflow participant. Format: - // projects/{project}/locations/{location}/conversations/{conversation}/particip - // ants/{participant} - DialogflowParticipant string `json:"dialogflowParticipant,omitempty"` - // DialogflowParticipantName: The name of the participant provided by - // Dialogflow. Format: - // projects/{project}/locations/{location}/conversations/{conversation}/particip - // ants/{participant} - DialogflowParticipantName string `json:"dialogflowParticipantName,omitempty"` - // ObfuscatedExternalUserId: Obfuscated user ID from Dialogflow. - ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"` - // Role: The role of the participant. - // - // Possible values: - // "ROLE_UNSPECIFIED" - Participant's role is not set. - // "HUMAN_AGENT" - Participant is a human agent. - // "AUTOMATED_AGENT" - Participant is an automated agent. - // "END_USER" - Participant is an end user who conversed with the contact - // center. - // "ANY_AGENT" - Participant is either a human or automated agent. - Role string `json:"role,omitempty"` - // UserId: A user-specified ID representing the participant. - UserId string `json:"userId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DialogflowParticipant") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest: The request to +// undeploy an issue model. +type GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest struct { + // Name: Required. The issue model to undeploy. + 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. "DialogflowParticipant") 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. "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 GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant +func (s GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata: -// Conversation metadata related to quality management. -type GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata struct { - // AgentInfo: Information about agents involved in the call. - AgentInfo []*GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo `json:"agentInfo,omitempty"` - // CustomerSatisfactionRating: An arbitrary integer value indicating the - // customer's satisfaction rating. - CustomerSatisfactionRating int64 `json:"customerSatisfactionRating,omitempty"` - // MenuPath: An arbitrary string value specifying the menu path the customer - // took. - MenuPath string `json:"menuPath,omitempty"` - // WaitDuration: The amount of time the customer waited to connect with an - // agent. - WaitDuration string `json:"waitDuration,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgentInfo") to +// GoogleCloudContactcenterinsightsV1UndeployIssueModelResponse: The response +// to undeploy an issue model. +type GoogleCloudContactcenterinsightsV1UndeployIssueModelResponse struct { +} + +// GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest: The +// request to undeploy a QaScorecardRevision +type GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest struct { +} + +// GoogleCloudContactcenterinsightsV1UploadConversationMetadata: The metadata +// for an `UploadConversation` operation. +type GoogleCloudContactcenterinsightsV1UploadConversationMetadata struct { + // AnalysisOperation: Output only. The operation name for a successfully + // created analysis operation, if any. + AnalysisOperation string `json:"analysisOperation,omitempty"` + // AppliedRedactionConfig: Output only. The redaction config applied to the + // uploaded conversation. + AppliedRedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"appliedRedactionConfig,omitempty"` + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // Request: Output only. The original request. + Request *GoogleCloudContactcenterinsightsV1UploadConversationRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnalysisOperation") 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. "AgentInfo") 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. "AnalysisOperation") 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 GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata +func (s GoogleCloudContactcenterinsightsV1UploadConversationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1UploadConversationMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo: -// -// Information about an agent involved in the conversation. -type GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo struct { - // AgentId: A user-specified string representing the agent. - AgentId string `json:"agentId,omitempty"` - // DisplayName: The agent's name. - DisplayName string `json:"displayName,omitempty"` - // DispositionCode: A user-provided string indicating the outcome of the - // agent's segment of the call. - DispositionCode string `json:"dispositionCode,omitempty"` - // Team: A user-specified string representing the agent's team. - Team string `json:"team,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgentId") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// GoogleCloudContactcenterinsightsV1UploadConversationRequest: Request to +// upload a conversation. +type GoogleCloudContactcenterinsightsV1UploadConversationRequest struct { + // Conversation: Required. The conversation resource to create. + Conversation *GoogleCloudContactcenterinsightsV1Conversation `json:"conversation,omitempty"` + // ConversationId: Optional. A unique ID for the new conversation. This ID will + // become the final component of the conversation's resource name. If no ID is + // specified, a server-generated ID will be used. This value should be 4-64 + // characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid + // characters are `a-z-` + ConversationId string `json:"conversationId,omitempty"` + // Parent: Required. The parent resource of the conversation. + Parent string `json:"parent,omitempty"` + // RedactionConfig: Optional. DLP settings for transcript redaction. Will + // default to the config specified in Settings. + RedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"redactionConfig,omitempty"` + // SpeechConfig: Optional. Speech-to-Text configuration. Will default to the + // config specified in Settings. + SpeechConfig *GoogleCloudContactcenterinsightsV1SpeechConfig `json:"speechConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "Conversation") 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. "AgentId") to include in API + // NullFields is a list of field names (e.g. "Conversation") 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 GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo +func (s GoogleCloudContactcenterinsightsV1UploadConversationRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1UploadConversationRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionDa -// ta: Conversation summarization suggestion data. -type GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData struct { - // AnswerRecord: The name of the answer record. Format: - // projects/{project}/locations/{location}/answerRecords/{answer_record} - AnswerRecord string `json:"answerRecord,omitempty"` - // Confidence: The confidence score of the summarization. - Confidence float64 `json:"confidence,omitempty"` - // ConversationModel: The name of the model that generates this summary. - // Format: - // projects/{project}/locations/{location}/conversationModels/{conversation_mode - // l} - ConversationModel string `json:"conversationModel,omitempty"` - // Metadata: A map that contains metadata about the summarization and the - // document from which it originates. - Metadata map[string]string `json:"metadata,omitempty"` - // Text: The summarization content that is concatenated into one string. - Text string `json:"text,omitempty"` - // TextSections: The summarization content that is divided into sections. The - // key is the section's name and the value is the section's content. There is - // no specific format for the key or value. - TextSections map[string]string `json:"textSections,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnswerRecord") to +// GoogleCloudContactcenterinsightsV1View: The View resource. +type GoogleCloudContactcenterinsightsV1View struct { + // CreateTime: Output only. The time at which this view was created. + CreateTime string `json:"createTime,omitempty"` + // DisplayName: The human-readable display name of the view. + DisplayName string `json:"displayName,omitempty"` + // Name: Immutable. The resource name of the view. Format: + // projects/{project}/locations/{location}/views/{view} + Name string `json:"name,omitempty"` + // UpdateTime: Output only. The most recent time at which the view was updated. + UpdateTime string `json:"updateTime,omitempty"` + // Value: String with specific view properties, must be non-empty. + Value string `json:"value,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "AnswerRecord") to include in API + // NullFields is a list of field names (e.g. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData +func (s GoogleCloudContactcenterinsightsV1View) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1View return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil +// GoogleCloudContactcenterinsightsV1alpha1Analysis: The analysis resource. +type GoogleCloudContactcenterinsightsV1alpha1Analysis struct { + // AnalysisResult: Output only. The result of the analysis, which is populated + // when the analysis finishes. + AnalysisResult *GoogleCloudContactcenterinsightsV1alpha1AnalysisResult `json:"analysisResult,omitempty"` + // AnnotatorSelector: To select the annotators to run and the phrase matchers + // to use (if any). If not specified, all annotators will be run. + AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"` + // CreateTime: Output only. The time at which the analysis was created, which + // occurs when the long-running operation completes. + CreateTime string `json:"createTime,omitempty"` + // Name: Immutable. The resource name of the analysis. Format: + // projects/{project}/locations/{location}/conversations/{conversation}/analyses + // /{analysis} + Name string `json:"name,omitempty"` + // RequestTime: Output only. The time at which the analysis was requested. + RequestTime string `json:"requestTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnalysisResult") 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. "AnalysisResult") 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:"-"` } -// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript: A message -// representing the transcript of a conversation. -type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript struct { - // TranscriptSegments: A list of sequential transcript segments that comprise - // the conversation. - TranscriptSegments []*GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment `json:"transcriptSegments,omitempty"` - // ForceSendFields is a list of field names (e.g. "TranscriptSegments") to +func (s GoogleCloudContactcenterinsightsV1alpha1Analysis) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1Analysis + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1AnalysisResult: The result of an +// analysis. +type GoogleCloudContactcenterinsightsV1alpha1AnalysisResult struct { + // CallAnalysisMetadata: Call-specific metadata created by the analysis. + CallAnalysisMetadata *GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata `json:"callAnalysisMetadata,omitempty"` + // EndTime: The time at which the analysis ended. + EndTime string `json:"endTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CallAnalysisMetadata") 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. "TranscriptSegments") to include + // NullFields is a list of field names (e.g. "CallAnalysisMetadata") 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 GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript +func (s GoogleCloudContactcenterinsightsV1alpha1AnalysisResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnalysisResult return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegme -// nt: A segment of a full transcript. -type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment struct { - // ChannelTag: For conversations derived from multi-channel audio, this is the - // channel number corresponding to the audio from that channel. For - // audioChannelCount = N, its output values can range from '1' to 'N'. A - // channel tag of 0 indicates that the audio is mono. - ChannelTag int64 `json:"channelTag,omitempty"` - // Confidence: A confidence estimate between 0.0 and 1.0 of the fidelity of - // this segment. A default value of 0.0 indicates that the value is unset. - Confidence float64 `json:"confidence,omitempty"` - // DialogflowSegmentMetadata: CCAI metadata relating to the current transcript - // segment. - DialogflowSegmentMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata `json:"dialogflowSegmentMetadata,omitempty"` - // LanguageCode: The language code of this segment as a BCP-47 - // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: - // "en-US". - LanguageCode string `json:"languageCode,omitempty"` - // MessageTime: The time that the message occurred, if provided. - MessageTime string `json:"messageTime,omitempty"` - // SegmentParticipant: The participant of this segment. - SegmentParticipant *GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant `json:"segmentParticipant,omitempty"` - // Sentiment: The sentiment for this transcript segment. - Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"` - // Text: The text of this segment. - Text string `json:"text,omitempty"` - // Words: A list of the word-specific information for each word in the segment. - Words []*GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo `json:"words,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelTag") to +// GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata: +// Call-specific metadata created during analysis. +type GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata struct { + // Annotations: A list of call annotations that apply to this call. + Annotations []*GoogleCloudContactcenterinsightsV1alpha1CallAnnotation `json:"annotations,omitempty"` + // Entities: All the entities in the call. + Entities map[string]GoogleCloudContactcenterinsightsV1alpha1Entity `json:"entities,omitempty"` + // Intents: All the matched intents in the call. + Intents map[string]GoogleCloudContactcenterinsightsV1alpha1Intent `json:"intents,omitempty"` + // IssueModelResult: Overall conversation-level issue modeling result. + IssueModelResult *GoogleCloudContactcenterinsightsV1alpha1IssueModelResult `json:"issueModelResult,omitempty"` + // PhraseMatchers: All the matched phrase matchers in the call. + PhraseMatchers map[string]GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData `json:"phraseMatchers,omitempty"` + // QaScorecardResults: Results of scoring QaScorecards. + QaScorecardResults []*GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult `json:"qaScorecardResults,omitempty"` + // Sentiments: Overall conversation-level sentiment for each channel of the + // call. + Sentiments []*GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment `json:"sentiments,omitempty"` + // Silence: Overall conversation-level silence during the call. + Silence *GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence `json:"silence,omitempty"` + // ForceSendFields is a list of field names (e.g. "Annotations") 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. "ChannelTag") to include in API + // NullFields is a list of field names (e.g. "Annotations") 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 GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment +func (s GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegme -// ntDialogflowSegmentMetadata: Metadata from Dialogflow relating to the -// current transcript segment. -type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata struct { - // SmartReplyAllowlistCovered: Whether the transcript segment was covered under - // the configured smart reply allowlist in Agent Assist. - SmartReplyAllowlistCovered bool `json:"smartReplyAllowlistCovered,omitempty"` - // ForceSendFields is a list of field names (e.g. "SmartReplyAllowlistCovered") - // to unconditionally include in API requests. By default, fields with empty or +// GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary: A point in a +// conversation that marks the start or the end of an annotation. +type GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary struct { + // TranscriptIndex: The index in the sequence of transcribed pieces of the + // conversation where the boundary is located. This index starts at zero. + TranscriptIndex int64 `json:"transcriptIndex,omitempty"` + // WordIndex: The word index of this boundary with respect to the first word in + // the transcript piece. This index starts at zero. + WordIndex int64 `json:"wordIndex,omitempty"` + // ForceSendFields is a list of field names (e.g. "TranscriptIndex") 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. "SmartReplyAllowlistCovered") 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. "TranscriptIndex") 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 GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata +func (s GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegme -// ntWordInfo: Word-level info for words in a transcript. -type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo struct { - // Confidence: A confidence estimate between 0.0 and 1.0 of the fidelity of - // this word. A default value of 0.0 indicates that the value is unset. - Confidence float64 `json:"confidence,omitempty"` - // EndOffset: Time offset of the end of this word relative to the beginning of - // the total conversation. - EndOffset string `json:"endOffset,omitempty"` - // StartOffset: Time offset of the start of this word relative to the beginning - // of the total conversation. - StartOffset string `json:"startOffset,omitempty"` - // Word: The word itself. Includes punctuation marks that surround the word. - Word string `json:"word,omitempty"` - // ForceSendFields is a list of field names (e.g. "Confidence") to +// GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector: Selector of all +// available annotators and phrase matchers to run. +type GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector struct { + // IssueModels: The issue model to run. If not provided, the most recently + // deployed topic model will be used. The provided issue model will only be + // used for inference if the issue model is deployed and if + // run_issue_model_annotator is set to true. If more than one issue model is + // provided, only the first provided issue model will be used for inference. + IssueModels []string `json:"issueModels,omitempty"` + // PhraseMatchers: The list of phrase matchers to run. If not provided, all + // active phrase matchers will be used. If inactive phrase matchers are + // provided, they will not be used. Phrase matchers will be run only if + // run_phrase_matcher_annotator is set to true. Format: + // projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + PhraseMatchers []string `json:"phraseMatchers,omitempty"` + // QaConfig: Configuration for the QA annotator. + QaConfig *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig `json:"qaConfig,omitempty"` + // RunEntityAnnotator: Whether to run the entity annotator. + RunEntityAnnotator bool `json:"runEntityAnnotator,omitempty"` + // RunIntentAnnotator: Whether to run the intent annotator. + RunIntentAnnotator bool `json:"runIntentAnnotator,omitempty"` + // RunInterruptionAnnotator: Whether to run the interruption annotator. + RunInterruptionAnnotator bool `json:"runInterruptionAnnotator,omitempty"` + // RunIssueModelAnnotator: Whether to run the issue model annotator. A model + // should have already been deployed for this to take effect. + RunIssueModelAnnotator bool `json:"runIssueModelAnnotator,omitempty"` + // RunPhraseMatcherAnnotator: Whether to run the active phrase matcher + // annotator(s). + RunPhraseMatcherAnnotator bool `json:"runPhraseMatcherAnnotator,omitempty"` + // RunQaAnnotator: Whether to run the QA annotator. + RunQaAnnotator bool `json:"runQaAnnotator,omitempty"` + // RunSentimentAnnotator: Whether to run the sentiment annotator. + RunSentimentAnnotator bool `json:"runSentimentAnnotator,omitempty"` + // RunSilenceAnnotator: Whether to run the silence annotator. + RunSilenceAnnotator bool `json:"runSilenceAnnotator,omitempty"` + // RunSummarizationAnnotator: Whether to run the summarization annotator. + RunSummarizationAnnotator bool `json:"runSummarizationAnnotator,omitempty"` + // SummarizationConfig: Configuration for the summarization annotator. + SummarizationConfig *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig `json:"summarizationConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "IssueModels") 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. "Confidence") to include in API + // NullFields is a list of field names (e.g. "IssueModels") 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 GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo +func (s GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -// GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata: -// Metadata for a create analysis operation. -type GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata struct { - // AnnotatorSelector: Output only. The annotator selector used for the analysis - // (if any). - AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"` - // Conversation: Output only. The Conversation that this Analysis Operation - // belongs to. - Conversation string `json:"conversation,omitempty"` - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnnotatorSelector") to +// GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig: +// Configuration for the QA feature. +type GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig struct { + // ScorecardList: A manual list of scorecards to score. + ScorecardList *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList `json:"scorecardList,omitempty"` + // ForceSendFields is a list of field names (e.g. "ScorecardList") 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. "AnnotatorSelector") 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. "ScorecardList") 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 GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata +func (s GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata: Metadata -// for creating an issue model. -type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata struct { - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // Request: The original request for creation. - Request *GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest `json:"request,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to +// GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardLis +// t: Container for a list of scorecards. +type GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList struct { + // QaScorecardRevisions: List of QaScorecardRevisions. + QaScorecardRevisions []string `json:"qaScorecardRevisions,omitempty"` + // ForceSendFields is a list of field names (e.g. "QaScorecardRevisions") 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. "CreateTime") 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. "QaScorecardRevisions") 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 GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata +func (s GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest: The request -// to create an issue model. -type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest struct { - // IssueModel: Required. The issue model to create. - IssueModel *GoogleCloudContactcenterinsightsV1alpha1IssueModel `json:"issueModel,omitempty"` - // Parent: Required. The parent resource of the issue model. - Parent string `json:"parent,omitempty"` - // ForceSendFields is a list of field names (e.g. "IssueModel") to +// GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig: +// +// Configuration for summarization. +type GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig struct { + // ConversationProfile: Resource name of the Dialogflow conversation profile. + // Format: + // projects/{project}/locations/{location}/conversationProfiles/{conversation_pr + // ofile} + ConversationProfile string `json:"conversationProfile,omitempty"` + // SummarizationModel: Default summarization model to be used. + // + // Possible values: + // "SUMMARIZATION_MODEL_UNSPECIFIED" - Unspecified summarization model. + // "BASELINE_MODEL" - The CCAI baseline model. + // "BASELINE_MODEL_V2_0" - The CCAI baseline model, V2.0. + SummarizationModel string `json:"summarizationModel,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConversationProfile") 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. "IssueModel") 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. "ConversationProfile") 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 GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest +func (s GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata: Metadata -// for deleting an issue model. -type GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata struct { - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // Request: The original request for deletion. - Request *GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest `json:"request,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback: The feedback that +// the customer has about a certain answer in the conversation. +type GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback struct { + // Clicked: Indicates whether an answer or item was clicked by the human agent. + Clicked bool `json:"clicked,omitempty"` + // CorrectnessLevel: The correctness level of an answer. + // + // Possible values: + // "CORRECTNESS_LEVEL_UNSPECIFIED" - Correctness level unspecified. + // "NOT_CORRECT" - Answer is totally wrong. + // "PARTIALLY_CORRECT" - Answer is partially correct. + // "FULLY_CORRECT" - Answer is fully correct. + CorrectnessLevel string `json:"correctnessLevel,omitempty"` + // Displayed: Indicates whether an answer or item was displayed to the human + // agent in the agent desktop UI. + Displayed bool `json:"displayed,omitempty"` + // ForceSendFields is a list of field names (e.g. "Clicked") 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. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "Clicked") 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 GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata +func (s GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest: The request -// to delete an issue model. -type GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest struct { - // Name: Required. The name of the issue model to delete. - 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 +// GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData: Agent Assist +// Article Suggestion data. +type GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData struct { + // ConfidenceScore: The system's confidence score that this article is a good + // match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 + // (completely certain). + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // Metadata: Map that contains metadata about the Article Suggestion and the + // document that it originates from. + Metadata map[string]string `json:"metadata,omitempty"` + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} + QueryRecord string `json:"queryRecord,omitempty"` + // Source: The knowledge document that this answer was extracted from. Format: + // projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} + Source string `json:"source,omitempty"` + // Title: Article title. + Title string `json:"title,omitempty"` + // Uri: Article URI. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") 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 + // NullFields is a list of field names (e.g. "ConfidenceScore") 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 GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest +func (s GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata: Metadata -// for deploying an issue model. -type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata struct { - // CreateTime: Output only. The time the operation was created. +func (s *GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata: +// The metadata for a bulk analyze conversations operation. +type GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata struct { + // CompletedAnalysesCount: The number of requested analyses that have completed + // successfully so far. + CompletedAnalysesCount int64 `json:"completedAnalysesCount,omitempty"` + // CreateTime: The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. + // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` - // Request: The original request for deployment. - Request *GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest `json:"request,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // FailedAnalysesCount: The number of requested analyses that have failed so + // far. + FailedAnalysesCount int64 `json:"failedAnalysesCount,omitempty"` + // PartialErrors: Output only. Partial errors during bulk analyze operation + // that might cause the operation output to be incomplete. + PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` + // Request: The original request for bulk analyze. + Request *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest `json:"request,omitempty"` + // TotalRequestedAnalysesCount: Total number of analyses requested. Computed by + // the number of conversations returned by `filter` multiplied by + // `analysis_percentage` in the request. + TotalRequestedAnalysesCount int64 `json:"totalRequestedAnalysesCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "CompletedAnalysesCount") 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. "CreateTime") 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. "CompletedAnalysesCount") 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 GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest: The request -// to deploy an issue model. -type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest struct { - // Name: Required. The issue model to deploy. - 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 GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse: The -// response to deploy an issue model. -type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse struct { -} - -// GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent: The data for a -// Dialogflow intent. Represents a detected intent in the conversation, e.g. -// MAKES_PROMISE. -type GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent struct { - // DisplayName: The human-readable name of the intent. - DisplayName string `json:"displayName,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 GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent +func (s GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData: -// Dialogflow interaction data. -type GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData struct { - // Confidence: The confidence of the match ranging from 0.0 (completely - // uncertain) to 1.0 (completely certain). - Confidence float64 `json:"confidence,omitempty"` - // DialogflowIntentId: The Dialogflow intent resource path. Format: - // projects/{project}/agent/{agent}/intents/{intent} - DialogflowIntentId string `json:"dialogflowIntentId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Confidence") to +// GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest: The +// request to analyze conversations in bulk. +type GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest struct { + // AnalysisPercentage: Required. Percentage of selected conversation to + // analyze, between [0, 100]. + AnalysisPercentage float64 `json:"analysisPercentage,omitempty"` + // AnnotatorSelector: To select the annotators to run and the phrase matchers + // to use (if any). If not specified, all annotators will be run. + AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"` + // Filter: Required. Filter used to select the subset of conversations to + // analyze. + Filter string `json:"filter,omitempty"` + // Parent: Required. The parent resource to create analyses in. + Parent string `json:"parent,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnalysisPercentage") 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. "Confidence") 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. "AnalysisPercentage") 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 GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData +func (s GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData +func (s *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` + AnalysisPercentage gensupport.JSONFloat64 `json:"analysisPercentage"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } - s.Confidence = float64(s1.Confidence) + s.AnalysisPercentage = float64(s1.AnalysisPercentage) return nil } -// GoogleCloudContactcenterinsightsV1alpha1DialogflowSource: A Dialogflow -// source of conversation data. -type GoogleCloudContactcenterinsightsV1alpha1DialogflowSource struct { - // AudioUri: Cloud Storage URI that points to a file that contains the - // conversation audio. - AudioUri string `json:"audioUri,omitempty"` - // DialogflowConversation: Output only. The name of the Dialogflow conversation - // that this conversation resource is derived from. Format: - // projects/{project}/locations/{location}/conversations/{conversation} - DialogflowConversation string `json:"dialogflowConversation,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudioUri") to +// GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse: +// The response for a bulk analyze conversations operation. +type GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse struct { + // FailedAnalysisCount: Count of failed analyses. + FailedAnalysisCount int64 `json:"failedAnalysisCount,omitempty"` + // SuccessfulAnalysisCount: Count of successful analyses. + SuccessfulAnalysisCount int64 `json:"successfulAnalysisCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "FailedAnalysisCount") 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. "AudioUri") 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. "FailedAnalysisCount") 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 GoogleCloudContactcenterinsightsV1alpha1DialogflowSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowSource +func (s GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec: A customer-managed -// encryption key specification that can be applied to all created resources -// (e.g. `Conversation`). -type GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec struct { - // KmsKey: Required. The name of customer-managed encryption key that is used - // to secure a resource and its sub-resources. If empty, the resource is - // secured by our default encryption key. Only the key in the same location as - // this resource is allowed to be used for encryption. Format: - // `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` - KmsKey string `json:"kmsKey,omitempty"` - // Name: Immutable. The resource name of the encryption key specification - // resource. Format: projects/{project}/locations/{location}/encryptionSpec - Name string `json:"name,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 +// GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata: The +// metadata for a bulk delete conversations operation. +type GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata struct { + // CreateTime: The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // PartialErrors: Partial errors during bulk delete conversations operation + // that might cause the operation output to be incomplete. + PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` + // Request: The original request for bulk delete. + Request *GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "KmsKey") to include in API + // NullFields is a list of field names (e.g. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec +func (s GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1Entity: The data for an entity -// annotation. Represents a phrase in the conversation that is a known entity, -// such as a person, an organization, or location. -type GoogleCloudContactcenterinsightsV1alpha1Entity struct { - // DisplayName: The representative name for the entity. - DisplayName string `json:"displayName,omitempty"` - // Metadata: Metadata associated with the entity. For most entity types, the - // metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID - // (`mid`), if they are available. For the metadata associated with other - // entity types, see the Type table below. - Metadata map[string]string `json:"metadata,omitempty"` - // Salience: The salience score associated with the entity in the [0, 1.0] - // range. The salience score for an entity provides information about the - // importance or centrality of that entity to the entire document text. Scores - // closer to 0 are less salient, while scores closer to 1.0 are highly salient. - Salience float64 `json:"salience,omitempty"` - // Sentiment: The aggregate sentiment expressed for this entity in the - // conversation. - Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"` - // Type: The entity type. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Unspecified. - // "PERSON" - Person. - // "LOCATION" - Location. - // "ORGANIZATION" - Organization. - // "EVENT" - Event. - // "WORK_OF_ART" - Artwork. - // "CONSUMER_GOOD" - Consumer product. - // "OTHER" - Other types of entities. - // "PHONE_NUMBER" - Phone number. The metadata lists the phone number - // (formatted according to local convention), plus whichever additional - // elements appear in the text: * `number` - The actual number, broken down - // into sections according to local convention. * `national_prefix` - Country - // code, if detected. * `area_code` - Region or area code, if detected. * - // `extension` - Phone extension (to be dialed after connection), if detected. - // "ADDRESS" - Address. The metadata identifies the street number and - // locality plus whichever additional elements appear in the text: * - // `street_number` - Street number. * `locality` - City or town. * - // `street_name` - Street/route name, if detected. * `postal_code` - Postal - // code, if detected. * `country` - Country, if detected. * `broad_region` - - // Administrative area, such as the state, if detected. * `narrow_region` - - // Smaller administrative area, such as county, if detected. * `sublocality` - - // Used in Asian addresses to demark a district within a city, if detected. - // "DATE" - Date. The metadata identifies the components of the date: * - // `year` - Four digit year, if detected. * `month` - Two digit month number, - // if detected. * `day` - Two digit day number, if detected. - // "NUMBER" - Number. The metadata is the number itself. - // "PRICE" - Price. The metadata identifies the `value` and `currency`. - Type string `json:"type,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 +// GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest: The +// request to delete conversations in bulk. +type GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest struct { + // Filter: Filter used to select the subset of conversations to delete. + Filter string `json:"filter,omitempty"` + // 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. + Force bool `json:"force,omitempty"` + // MaxDeleteCount: Maximum number of conversations to delete. + MaxDeleteCount int64 `json:"maxDeleteCount,omitempty"` + // Parent: Required. The parent resource to delete conversations from. Format: + // projects/{project}/locations/{location} + Parent string `json:"parent,omitempty"` + // ForceSendFields is a list of field names (e.g. "Filter") 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 + // NullFields is a list of field names (e.g. "Filter") 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 GoogleCloudContactcenterinsightsV1alpha1Entity) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1Entity +func (s GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1Entity) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1Entity - var s1 struct { - Salience gensupport.JSONFloat64 `json:"salience"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Salience = float64(s1.Salience) - return nil +// GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsResponse: The +// response for a bulk delete conversations operation. +type GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsResponse struct { } -// GoogleCloudContactcenterinsightsV1alpha1EntityMentionData: The data for an -// entity mention annotation. This represents a mention of an `Entity` in the -// conversation. -type GoogleCloudContactcenterinsightsV1alpha1EntityMentionData struct { - // EntityUniqueId: The key of this entity in conversation entities. Can be used - // to retrieve the exact `Entity` this mention is attached to. - EntityUniqueId string `json:"entityUniqueId,omitempty"` - // Sentiment: Sentiment expressed for this mention of the entity. - Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"` - // Type: The type of the entity mention. - // - // Possible values: - // "MENTION_TYPE_UNSPECIFIED" - Unspecified. - // "PROPER" - Proper noun. - // "COMMON" - Common noun (or noun compound). - Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "EntityUniqueId") to +// GoogleCloudContactcenterinsightsV1alpha1CallAnnotation: A piece of metadata +// that applies to a window of a call. +type GoogleCloudContactcenterinsightsV1alpha1CallAnnotation struct { + // AnnotationEndBoundary: The boundary in the conversation where the annotation + // ends, inclusive. + AnnotationEndBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"annotationEndBoundary,omitempty"` + // AnnotationStartBoundary: The boundary in the conversation where the + // annotation starts, inclusive. + AnnotationStartBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"annotationStartBoundary,omitempty"` + // ChannelTag: The channel of the audio where the annotation occurs. For + // single-channel audio, this field is not populated. + ChannelTag int64 `json:"channelTag,omitempty"` + // EntityMentionData: Data specifying an entity mention. + EntityMentionData *GoogleCloudContactcenterinsightsV1alpha1EntityMentionData `json:"entityMentionData,omitempty"` + // HoldData: Data specifying a hold. + HoldData *GoogleCloudContactcenterinsightsV1alpha1HoldData `json:"holdData,omitempty"` + // IntentMatchData: Data specifying an intent match. + IntentMatchData *GoogleCloudContactcenterinsightsV1alpha1IntentMatchData `json:"intentMatchData,omitempty"` + // InterruptionData: Data specifying an interruption. + InterruptionData *GoogleCloudContactcenterinsightsV1alpha1InterruptionData `json:"interruptionData,omitempty"` + // IssueMatchData: Data specifying an issue match. + IssueMatchData *GoogleCloudContactcenterinsightsV1alpha1IssueMatchData `json:"issueMatchData,omitempty"` + // PhraseMatchData: Data specifying a phrase match. + PhraseMatchData *GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData `json:"phraseMatchData,omitempty"` + // SentimentData: Data specifying sentiment. + SentimentData *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentimentData,omitempty"` + // SilenceData: Data specifying silence. + SilenceData *GoogleCloudContactcenterinsightsV1alpha1SilenceData `json:"silenceData,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnnotationEndBoundary") 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. "EntityUniqueId") 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. "AnnotationEndBoundary") 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 GoogleCloudContactcenterinsightsV1alpha1EntityMentionData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1EntityMentionData +func (s GoogleCloudContactcenterinsightsV1alpha1CallAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1CallAnnotation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata: Metadata -// for an export insights operation. -type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata struct { - // CreateTime: Output only. The time the operation was created. +// GoogleCloudContactcenterinsightsV1alpha1Conversation: The conversation +// resource. +type GoogleCloudContactcenterinsightsV1alpha1Conversation struct { + // AgentId: An opaque, user-specified string representing the human agent who + // handled the conversation. + AgentId string `json:"agentId,omitempty"` + // CallMetadata: Call-specific metadata. + CallMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata `json:"callMetadata,omitempty"` + // CreateTime: Output only. The time at which the conversation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // PartialErrors: Partial errors during export operation that might cause the - // operation output to be incomplete. - PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` - // Request: The original request for export. - Request *GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest `json:"request,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // DataSource: The source of the audio and transcription for the conversation. + DataSource *GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource `json:"dataSource,omitempty"` + // DialogflowIntents: Output only. All the matched Dialogflow intents in the + // call. The key corresponds to a Dialogflow intent, format: + // projects/{project}/agent/{agent}/intents/{intent} + DialogflowIntents map[string]GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent `json:"dialogflowIntents,omitempty"` + // Duration: Output only. The duration of the conversation. + Duration string `json:"duration,omitempty"` + // ExpireTime: The time at which this conversation should expire. After this + // time, the conversation data and any associated analyses will be deleted. + ExpireTime string `json:"expireTime,omitempty"` + // Labels: A map for the user to specify any custom fields. A maximum of 20 + // labels per conversation is allowed, with a maximum of 256 characters per + // entry. + Labels map[string]string `json:"labels,omitempty"` + // LanguageCode: A user-specified language code for the conversation. + LanguageCode string `json:"languageCode,omitempty"` + // LatestAnalysis: Output only. The conversation's latest analysis, if one + // exists. + LatestAnalysis *GoogleCloudContactcenterinsightsV1alpha1Analysis `json:"latestAnalysis,omitempty"` + // LatestSummary: Output only. Latest summary of the conversation. + LatestSummary *GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData `json:"latestSummary,omitempty"` + // Medium: Immutable. The conversation medium, if unspecified will default to + // PHONE_CALL. + // + // Possible values: + // "MEDIUM_UNSPECIFIED" - Default value, if unspecified will default to + // PHONE_CALL. + // "PHONE_CALL" - The format for conversations that took place over the + // phone. + // "CHAT" - The format for conversations that took place over chat. + Medium string `json:"medium,omitempty"` + // MetadataJson: Input only. JSON metadata encoded as a string. This field is + // primarily used by Insights integrations with various telphony systems and + // must be in one of Insight's supported formats. + MetadataJson string `json:"metadataJson,omitempty"` + // Name: Immutable. The resource name of the conversation. Format: + // projects/{project}/locations/{location}/conversations/{conversation} + Name string `json:"name,omitempty"` + // ObfuscatedUserId: Obfuscated user ID which the customer sent to us. + ObfuscatedUserId string `json:"obfuscatedUserId,omitempty"` + // QualityMetadata: Conversation metadata related to quality management. + QualityMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata `json:"qualityMetadata,omitempty"` + // RuntimeAnnotations: Output only. The annotations that were generated during + // the customer and agent interaction. + RuntimeAnnotations []*GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation `json:"runtimeAnnotations,omitempty"` + // StartTime: The time at which the conversation started. + StartTime string `json:"startTime,omitempty"` + // Transcript: Output only. The conversation transcript. + Transcript *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript `json:"transcript,omitempty"` + // Ttl: Input only. The TTL for this resource. If specified, then this TTL will + // be used to calculate the expire time. + Ttl string `json:"ttl,omitempty"` + // TurnCount: Output only. The number of turns in the conversation. + TurnCount int64 `json:"turnCount,omitempty"` + // UpdateTime: Output only. The most recent time at which the conversation was + // updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentId") 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. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "AgentId") 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 GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata +func (s GoogleCloudContactcenterinsightsV1alpha1Conversation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1Conversation return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest: The -// request to export insights. -type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest struct { - // BigQueryDestination: Specified if sink is a BigQuery table. - BigQueryDestination *GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination `json:"bigQueryDestination,omitempty"` - // Filter: A filter to reduce results to a specific subset. Useful for - // exporting conversations with specific properties. - Filter string `json:"filter,omitempty"` - // KmsKey: A fully qualified KMS key name for BigQuery tables protected by - // CMEK. Format: - // projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/c - // ryptoKeyVersions/{version} - KmsKey string `json:"kmsKey,omitempty"` - // Parent: Required. The parent resource to export data from. - Parent string `json:"parent,omitempty"` - // WriteDisposition: Options for what to do if the destination table already - // exists. - // - // Possible values: - // "WRITE_DISPOSITION_UNSPECIFIED" - Write disposition is not specified. - // Defaults to WRITE_TRUNCATE. - // "WRITE_TRUNCATE" - If the table already exists, BigQuery will overwrite - // the table data and use the schema from the load. - // "WRITE_APPEND" - If the table already exists, BigQuery will append data to - // the table. - WriteDisposition string `json:"writeDisposition,omitempty"` - // ForceSendFields is a list of field names (e.g. "BigQueryDestination") to +// GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata: +// Call-specific metadata. +type GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata struct { + // AgentChannel: The audio channel that contains the agent. + AgentChannel int64 `json:"agentChannel,omitempty"` + // CustomerChannel: The audio channel that contains the customer. + CustomerChannel int64 `json:"customerChannel,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentChannel") 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. "BigQueryDestination") 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. "AgentChannel") 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 GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDest -// ination: A BigQuery Table Reference. -type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination struct { - // Dataset: Required. The name of the BigQuery dataset that the snapshot result - // should be exported to. If this dataset does not exist, the export call - // returns an INVALID_ARGUMENT error. - Dataset string `json:"dataset,omitempty"` - // ProjectId: A project ID or number. If specified, then export will attempt to - // write data to this project instead of the resource project. Otherwise, the - // resource project will be used. - ProjectId string `json:"projectId,omitempty"` - // Table: The BigQuery table name to which the insights data should be written. - // If this table does not exist, the export call returns an INVALID_ARGUMENT - // error. - Table string `json:"table,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource: The +// conversation source, which is a combination of transcript and audio. +type GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource struct { + // DialogflowSource: The source when the conversation comes from Dialogflow. + DialogflowSource *GoogleCloudContactcenterinsightsV1alpha1DialogflowSource `json:"dialogflowSource,omitempty"` + // GcsSource: A Cloud Storage location specification for the audio and + // transcript. + GcsSource *GoogleCloudContactcenterinsightsV1alpha1GcsSource `json:"gcsSource,omitempty"` + // ForceSendFields is a list of field names (e.g. "DialogflowSource") 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. "Dataset") 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. "DialogflowSource") 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 GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse: Response -// for an export insights operation. -type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse struct { -} - -// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata: Metadata -// used for export issue model. -type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata struct { - // CreateTime: The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - // EndTime: The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // Request: The original export request. - Request *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest `json:"request,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to +// GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment: One +// channel of conversation-level sentiment data. +type GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment struct { + // ChannelTag: The channel of the audio that the data applies to. + ChannelTag int64 `json:"channelTag,omitempty"` + // SentimentData: Data specifying sentiment. + SentimentData *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentimentData,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChannelTag") 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. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "ChannelTag") 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 GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest: Request to -// export an issue model. -type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest struct { - // GcsDestination: Google Cloud Storage URI to export the issue model to. - GcsDestination *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination `json:"gcsDestination,omitempty"` - // Name: Required. The issue model to export. - Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcsDestination") to +// GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence: +// Conversation-level silence data. +type GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence struct { + // SilenceDuration: Amount of time calculated to be in silence. + SilenceDuration string `json:"silenceDuration,omitempty"` + // SilencePercentage: Percentage of the total conversation spent in silence. + SilencePercentage float64 `json:"silencePercentage,omitempty"` + // ForceSendFields is a list of field names (e.g. "SilenceDuration") 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. "GcsDestination") to include in + // NullFields is a list of field names (e.g. "SilenceDuration") 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 GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination -// : Google Cloud Storage Object URI to save the issue model to. -type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination struct { - // ObjectUri: Required. Format: `gs:///` - ObjectUri string `json:"objectUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ObjectUri") 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. "ObjectUri") 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 GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse: Response -// from export issue model -type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse struct { -} - -// GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData: Agent Assist -// frequently-asked-question answer data. -type GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData struct { - // Answer: The piece of text from the `source` knowledge base document. - Answer string `json:"answer,omitempty"` - // ConfidenceScore: The system's confidence score that this answer is a good - // match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 - // (completely certain). - ConfidenceScore float64 `json:"confidenceScore,omitempty"` - // Metadata: Map that contains metadata about the FAQ answer and the document - // that it originates from. - Metadata map[string]string `json:"metadata,omitempty"` - // QueryRecord: The name of the answer record. Format: - // projects/{project}/locations/{location}/answerRecords/{answer_record} - QueryRecord string `json:"queryRecord,omitempty"` - // Question: The corresponding FAQ question. - Question string `json:"question,omitempty"` - // Source: The knowledge document that this answer was extracted from. Format: - // projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. - Source string `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "Answer") 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. "Answer") 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 GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData +func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence var s1 struct { - ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + SilencePercentage gensupport.JSONFloat64 `json:"silencePercentage"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } - s.ConfidenceScore = float64(s1.ConfidenceScore) + s.SilencePercentage = float64(s1.SilencePercentage) return nil } -// GoogleCloudContactcenterinsightsV1alpha1GcsSource: A Cloud Storage source of -// conversation data. -type GoogleCloudContactcenterinsightsV1alpha1GcsSource struct { - // AudioUri: Cloud Storage URI that points to a file that contains the - // conversation audio. - AudioUri string `json:"audioUri,omitempty"` - // TranscriptUri: Immutable. Cloud Storage URI that points to a file that - // contains the conversation transcript. - TranscriptUri string `json:"transcriptUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudioUri") to +// GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant: The call +// participant speaking for a given utterance. +type GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant struct { + // DialogflowParticipant: Deprecated. Use `dialogflow_participant_name` + // instead. The name of the Dialogflow participant. Format: + // projects/{project}/locations/{location}/conversations/{conversation}/particip + // ants/{participant} + DialogflowParticipant string `json:"dialogflowParticipant,omitempty"` + // DialogflowParticipantName: The name of the participant provided by + // Dialogflow. Format: + // projects/{project}/locations/{location}/conversations/{conversation}/particip + // ants/{participant} + DialogflowParticipantName string `json:"dialogflowParticipantName,omitempty"` + // ObfuscatedExternalUserId: Obfuscated user ID from Dialogflow. + ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"` + // Role: The role of the participant. + // + // Possible values: + // "ROLE_UNSPECIFIED" - Participant's role is not set. + // "HUMAN_AGENT" - Participant is a human agent. + // "AUTOMATED_AGENT" - Participant is an automated agent. + // "END_USER" - Participant is an end user who conversed with the contact + // center. + // "ANY_AGENT" - Participant is either a human or automated agent. + Role string `json:"role,omitempty"` + // UserId: A user-specified ID representing the participant. + UserId string `json:"userId,omitempty"` + // ForceSendFields is a list of field names (e.g. "DialogflowParticipant") 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. "AudioUri") 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. "DialogflowParticipant") 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 GoogleCloudContactcenterinsightsV1alpha1GcsSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1GcsSource +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1HoldData: The data for a hold -// annotation. -type GoogleCloudContactcenterinsightsV1alpha1HoldData struct { -} - -// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata: Metadata -// used for import issue model. -type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata struct { - // CreateTime: The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - // EndTime: The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // Request: The original import request. - Request *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest `json:"request,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to +// GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata: +// Conversation metadata related to quality management. +type GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata struct { + // AgentInfo: Information about agents involved in the call. + AgentInfo []*GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo `json:"agentInfo,omitempty"` + // CustomerSatisfactionRating: An arbitrary integer value indicating the + // customer's satisfaction rating. + CustomerSatisfactionRating int64 `json:"customerSatisfactionRating,omitempty"` + // MenuPath: An arbitrary string value specifying the menu path the customer + // took. + MenuPath string `json:"menuPath,omitempty"` + // WaitDuration: The amount of time the customer waited to connect with an + // agent. + WaitDuration string `json:"waitDuration,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentInfo") 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. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "AgentInfo") 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 GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest: Request to -// import an issue model. -type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest struct { - // CreateNewModel: Optional. If set to true, will create an issue model from - // the imported file with randomly generated IDs for the issue model and - // corresponding issues. Otherwise, replaces an existing model with the same ID - // as the file. - CreateNewModel bool `json:"createNewModel,omitempty"` - // GcsSource: Google Cloud Storage source message. - GcsSource *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource `json:"gcsSource,omitempty"` - // Parent: Required. The parent resource of the issue model. - Parent string `json:"parent,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateNewModel") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo: +// +// Information about an agent involved in the conversation. +type GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo struct { + // AgentId: A user-specified string representing the agent. + AgentId string `json:"agentId,omitempty"` + // DisplayName: The agent's name. + DisplayName string `json:"displayName,omitempty"` + // DispositionCode: A user-provided string indicating the outcome of the + // agent's segment of the call. + DispositionCode string `json:"dispositionCode,omitempty"` + // Team: A user-specified string representing the agent's team. + Team string `json:"team,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentId") 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. "CreateNewModel") 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. "AgentId") 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 GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource: -// Google Cloud Storage Object URI to get the issue model file from. -type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource struct { - // ObjectUri: Required. Format: `gs:///` - ObjectUri string `json:"objectUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "ObjectUri") to +// GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionDa +// ta: Conversation summarization suggestion data. +type GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData struct { + // AnswerRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} + AnswerRecord string `json:"answerRecord,omitempty"` + // Confidence: The confidence score of the summarization. + Confidence float64 `json:"confidence,omitempty"` + // ConversationModel: The name of the model that generates this summary. + // Format: + // projects/{project}/locations/{location}/conversationModels/{conversation_mode + // l} + ConversationModel string `json:"conversationModel,omitempty"` + // Metadata: A map that contains metadata about the summarization and the + // document from which it originates. + Metadata map[string]string `json:"metadata,omitempty"` + // Text: The summarization content that is concatenated into one string. + Text string `json:"text,omitempty"` + // TextSections: The summarization content that is divided into sections. The + // key is the section's name and the value is the section's content. There is + // no specific format for the key or value. + TextSections map[string]string `json:"textSections,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerRecord") 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. "ObjectUri") to include in API + // NullFields is a list of field names (e.g. "AnswerRecord") 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 GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse: Response -// from import issue model -type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse struct { +func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil } -// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata: The -// metadata for an IngestConversations operation. -type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata struct { - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // IngestConversationsStats: Output only. Statistics for IngestConversations - // operation. - IngestConversationsStats *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats `json:"ingestConversationsStats,omitempty"` - // PartialErrors: Output only. Partial errors during ingest operation that - // might cause the operation output to be incomplete. - PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` - // Request: Output only. The original request for ingest. - Request *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest `json:"request,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to +// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript: A message +// representing the transcript of a conversation. +type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript struct { + // TranscriptSegments: A list of sequential transcript segments that comprise + // the conversation. + TranscriptSegments []*GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment `json:"transcriptSegments,omitempty"` + // ForceSendFields is a list of field names (e.g. "TranscriptSegments") 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. "CreateTime") 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. "TranscriptSegments") 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 GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConv -// ersationsStats: Statistics for IngestConversations operation. -type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats struct { - // DuplicatesSkippedCount: Output only. The number of objects skipped because - // another conversation with the same transcript uri had already been ingested. - DuplicatesSkippedCount int64 `json:"duplicatesSkippedCount,omitempty"` - // FailedIngestCount: Output only. The number of objects which were unable to - // be ingested due to errors. The errors are populated in the partial_errors - // field. - FailedIngestCount int64 `json:"failedIngestCount,omitempty"` - // ProcessedObjectCount: Output only. The number of objects processed during - // the ingest operation. - ProcessedObjectCount int64 `json:"processedObjectCount,omitempty"` - // SuccessfulIngestCount: Output only. The number of new conversations added - // during this ingest operation. - SuccessfulIngestCount int64 `json:"successfulIngestCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "DuplicatesSkippedCount") to +// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegme +// nt: A segment of a full transcript. +type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment struct { + // ChannelTag: For conversations derived from multi-channel audio, this is the + // channel number corresponding to the audio from that channel. For + // audioChannelCount = N, its output values can range from '1' to 'N'. A + // channel tag of 0 indicates that the audio is mono. + ChannelTag int64 `json:"channelTag,omitempty"` + // Confidence: A confidence estimate between 0.0 and 1.0 of the fidelity of + // this segment. A default value of 0.0 indicates that the value is unset. + Confidence float64 `json:"confidence,omitempty"` + // DialogflowSegmentMetadata: CCAI metadata relating to the current transcript + // segment. + DialogflowSegmentMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata `json:"dialogflowSegmentMetadata,omitempty"` + // LanguageCode: The language code of this segment as a BCP-47 + // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: + // "en-US". + LanguageCode string `json:"languageCode,omitempty"` + // MessageTime: The time that the message occurred, if provided. + MessageTime string `json:"messageTime,omitempty"` + // SegmentParticipant: The participant of this segment. + SegmentParticipant *GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant `json:"segmentParticipant,omitempty"` + // Sentiment: The sentiment for this transcript segment. + Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"` + // Text: The text of this segment. + Text string `json:"text,omitempty"` + // Words: A list of the word-specific information for each word in the segment. + Words []*GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo `json:"words,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChannelTag") 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. "DuplicatesSkippedCount") 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. "ChannelTag") 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 GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest: The -// request to ingest conversations. -type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest struct { - // ConversationConfig: Configuration that applies to all conversations. - ConversationConfig *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig `json:"conversationConfig,omitempty"` - // GcsSource: A cloud storage bucket source. Note that any previously ingested - // objects from the source will be skipped to avoid duplication. - GcsSource *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource `json:"gcsSource,omitempty"` - // Parent: Required. The parent resource for new conversations. - Parent string `json:"parent,omitempty"` - // RedactionConfig: Optional. DLP settings for transcript redaction. Optional, - // will default to the config specified in Settings. - RedactionConfig *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig `json:"redactionConfig,omitempty"` - // SampleSize: Optional. If set, this fields indicates the number of objects to - // ingest from the Cloud Storage bucket. If empty, the entire bucket will be - // ingested. Unless they are first deleted, conversations produced through - // sampling won't be ingested by subsequent ingest requests. - SampleSize int64 `json:"sampleSize,omitempty"` - // SpeechConfig: Optional. Default Speech-to-Text configuration. Optional, will - // default to the config specified in Settings. - SpeechConfig *GoogleCloudContactcenterinsightsV1alpha1SpeechConfig `json:"speechConfig,omitempty"` - // TranscriptObjectConfig: Configuration for when `source` contains - // conversation transcripts. - TranscriptObjectConfig *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig `json:"transcriptObjectConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConversationConfig") to - // unconditionally include in API requests. By default, fields with empty or +func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegme +// ntDialogflowSegmentMetadata: Metadata from Dialogflow relating to the +// current transcript segment. +type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata struct { + // SmartReplyAllowlistCovered: Whether the transcript segment was covered under + // the configured smart reply allowlist in Agent Assist. + SmartReplyAllowlistCovered bool `json:"smartReplyAllowlistCovered,omitempty"` + // ForceSendFields is a list of field names (e.g. "SmartReplyAllowlistCovered") + // 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. "ConversationConfig") 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. "SmartReplyAllowlistCovered") 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 GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversatio -// nConfig: Configuration that applies to all conversations. -type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig struct { - // AgentChannel: Optional. Indicates which of the channels, 1 or 2, contains - // the agent. Note that this must be set for conversations to be properly - // displayed and analyzed. - AgentChannel int64 `json:"agentChannel,omitempty"` - // AgentId: Optional. An opaque, user-specified string representing a human - // agent who handled all conversations in the import. Note that this will be - // overridden if per-conversation metadata is provided through the - // `metadata_bucket_uri`. - AgentId string `json:"agentId,omitempty"` - // CustomerChannel: Optional. Indicates which of the channels, 1 or 2, contains - // the agent. Note that this must be set for conversations to be properly - // displayed and analyzed. - CustomerChannel int64 `json:"customerChannel,omitempty"` - // ForceSendFields is a list of field names (e.g. "AgentChannel") to +// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegme +// ntWordInfo: Word-level info for words in a transcript. +type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo struct { + // Confidence: A confidence estimate between 0.0 and 1.0 of the fidelity of + // this word. A default value of 0.0 indicates that the value is unset. + Confidence float64 `json:"confidence,omitempty"` + // EndOffset: Time offset of the end of this word relative to the beginning of + // the total conversation. + EndOffset string `json:"endOffset,omitempty"` + // StartOffset: Time offset of the start of this word relative to the beginning + // of the total conversation. + StartOffset string `json:"startOffset,omitempty"` + // Word: The word itself. Includes punctuation marks that surround the word. + Word string `json:"word,omitempty"` + // ForceSendFields is a list of field names (e.g. "Confidence") 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. "AgentChannel") to include in API + // NullFields is a list of field names (e.g. "Confidence") 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 GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig +func (s GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource: -// Configuration for Cloud Storage bucket sources. -type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource struct { - // BucketObjectType: Optional. Specifies the type of the objects in - // `bucket_uri`. - // - // Possible values: - // "BUCKET_OBJECT_TYPE_UNSPECIFIED" - The object type is unspecified and will - // default to `TRANSCRIPT`. - // "TRANSCRIPT" - The object is a transcript. - // "AUDIO" - The object is an audio file. - BucketObjectType string `json:"bucketObjectType,omitempty"` - // BucketUri: Required. The Cloud Storage bucket containing source objects. - BucketUri string `json:"bucketUri,omitempty"` - // CustomMetadataKeys: Optional. Custom keys to extract as conversation labels - // from metadata files in `metadata_bucket_uri`. Keys not included in this - // field will be ignored. Note that there is a limit of 20 labels per - // conversation. - CustomMetadataKeys []string `json:"customMetadataKeys,omitempty"` - // MetadataBucketUri: Optional. The Cloud Storage path to the conversation - // metadata. Note that: [1] Metadata files are expected to be in JSON format. - // [2] Metadata and source files (transcripts or audio) must be in separate - // buckets. [3] A source file and its corresponding metadata file must share - // the same name to be properly ingested, E.g. - // `gs://bucket/audio/conversation1.mp3` and - // `gs://bucket/metadata/conversation1.json`. - MetadataBucketUri string `json:"metadataBucketUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "BucketObjectType") 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. "BucketObjectType") 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 *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil } -func (s GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource +// GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata: +// Metadata for a create analysis operation. +type GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata struct { + // AnnotatorSelector: Output only. The annotator selector used for the analysis + // (if any). + AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"` + // Conversation: Output only. The Conversation that this Analysis Operation + // belongs to. + Conversation string `json:"conversation,omitempty"` + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnnotatorSelector") 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. "AnnotatorSelector") 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 GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptO -// bjectConfig: Configuration for processing transcript objects. -type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig struct { - // Medium: Required. The medium transcript objects represent. - // - // Possible values: - // "MEDIUM_UNSPECIFIED" - Default value, if unspecified will default to - // PHONE_CALL. - // "PHONE_CALL" - The format for conversations that took place over the - // phone. - // "CHAT" - The format for conversations that took place over chat. - Medium string `json:"medium,omitempty"` - // ForceSendFields is a list of field names (e.g. "Medium") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata: Metadata +// for creating an issue model. +type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // Request: The original request for creation. + Request *GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "Medium") to include in API + // NullFields is a list of field names (e.g. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig +func (s GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse: The -// response to an IngestConversations operation. -type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse struct { +// GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest: The request +// to create an issue model. +type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest struct { + // IssueModel: Required. The issue model to create. + IssueModel *GoogleCloudContactcenterinsightsV1alpha1IssueModel `json:"issueModel,omitempty"` + // Parent: Required. The parent resource of the issue model. + Parent string `json:"parent,omitempty"` + // ForceSendFields is a list of field names (e.g. "IssueModel") 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. "IssueModel") 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:"-"` } -// GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata: -// Metadata for initializing a location-level encryption specification. -type GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata struct { +func (s GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata: Metadata +// for deleting an issue model. +type GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata struct { // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - // PartialErrors: Partial errors during initializing operation that might cause - // the operation output to be incomplete. - PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` - // Request: Output only. The original request for initialization. - Request *GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest `json:"request,omitempty"` + // Request: The original request for deletion. + Request *GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest `json:"request,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -5885,109 +6830,95 @@ type GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata st NullFields []string `json:"-"` } -func (s GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata +func (s GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest: The -// request to initialize a location-level encryption specification. -type GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest struct { - // EncryptionSpec: Required. The encryption spec used for CMEK encryption. It - // is required that the kms key is in the same region as the endpoint. The same - // key will be used for all provisioned resources, if encryption is available. - // If the `kms_key_name` field is left empty, no encryption will be enforced. - EncryptionSpec *GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec `json:"encryptionSpec,omitempty"` - // ForceSendFields is a list of field names (e.g. "EncryptionSpec") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest: The request +// to delete an issue model. +type GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest struct { + // Name: Required. The name of the issue model to delete. + 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. "EncryptionSpec") 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. "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 GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest +func (s GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse: -// The response to initialize a location-level encryption specification. -type GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse struct { -} - -// GoogleCloudContactcenterinsightsV1alpha1Intent: The data for an intent. -// Represents a detected intent in the conversation, for example MAKES_PROMISE. -type GoogleCloudContactcenterinsightsV1alpha1Intent struct { - // DisplayName: The human-readable name of the intent. - DisplayName string `json:"displayName,omitempty"` - // Id: The unique identifier of the intent. - Id string `json:"id,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to +// GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata: Metadata +// for deploying an issue model. +type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // Request: The original request for deployment. + Request *GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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 + // NullFields is a list of field names (e.g. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1Intent) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1Intent +func (s GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IntentMatchData: The data for an -// intent match. Represents an intent match for a text segment in the -// conversation. A text segment can be part of a sentence, a complete sentence, -// or an utterance with multiple sentences. -type GoogleCloudContactcenterinsightsV1alpha1IntentMatchData struct { - // IntentUniqueId: The id of the matched intent. Can be used to retrieve the - // corresponding intent information. - IntentUniqueId string `json:"intentUniqueId,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntentUniqueId") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest: The request +// to deploy an issue model. +type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest struct { + // Name: Required. The issue model to deploy. + 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. "IntentUniqueId") 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. "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 GoogleCloudContactcenterinsightsV1alpha1IntentMatchData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IntentMatchData +func (s GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1InterruptionData: The data for an -// interruption annotation. -type GoogleCloudContactcenterinsightsV1alpha1InterruptionData struct { +// GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse: The +// response to deploy an issue model. +type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse struct { } -// GoogleCloudContactcenterinsightsV1alpha1IssueAssignment: Information about -// the issue. -type GoogleCloudContactcenterinsightsV1alpha1IssueAssignment struct { - // DisplayName: Immutable. Display name of the assigned issue. This field is - // set at time of analyis and immutable since then. +// GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent: The data for a +// Dialogflow intent. Represents a detected intent in the conversation, e.g. +// MAKES_PROMISE. +type GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent struct { + // DisplayName: The human-readable name of the intent. DisplayName string `json:"displayName,omitempty"` - // Issue: Resource name of the assigned issue. - Issue string `json:"issue,omitempty"` - // Score: Score indicating the likelihood of the issue assignment. currently - // bounded on [0,1]. - 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 @@ -6001,554 +6932,402 @@ type GoogleCloudContactcenterinsightsV1alpha1IssueAssignment struct { NullFields []string `json:"-"` } -func (s GoogleCloudContactcenterinsightsV1alpha1IssueAssignment) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueAssignment +func (s GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1IssueAssignment) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueAssignment - 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 -} - -// GoogleCloudContactcenterinsightsV1alpha1IssueMatchData: The data for an -// issue match annotation. -type GoogleCloudContactcenterinsightsV1alpha1IssueMatchData struct { - // IssueAssignment: Information about the issue's assignment. - IssueAssignment *GoogleCloudContactcenterinsightsV1alpha1IssueAssignment `json:"issueAssignment,omitempty"` - // ForceSendFields is a list of field names (e.g. "IssueAssignment") to +// GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData: +// Dialogflow interaction data. +type GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData struct { + // Confidence: The confidence of the match ranging from 0.0 (completely + // uncertain) to 1.0 (completely certain). + Confidence float64 `json:"confidence,omitempty"` + // DialogflowIntentId: The Dialogflow intent resource path. Format: + // projects/{project}/agent/{agent}/intents/{intent} + DialogflowIntentId string `json:"dialogflowIntentId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Confidence") 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. "IssueAssignment") 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. "Confidence") 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 GoogleCloudContactcenterinsightsV1alpha1IssueMatchData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueMatchData +func (s GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IssueModel: The issue model -// resource. -type GoogleCloudContactcenterinsightsV1alpha1IssueModel struct { - // CreateTime: Output only. The time at which this issue model was created. - CreateTime string `json:"createTime,omitempty"` - // DisplayName: The representative name for the issue model. - DisplayName string `json:"displayName,omitempty"` - // InputDataConfig: Configs for the input data that used to create the issue - // model. - InputDataConfig *GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig `json:"inputDataConfig,omitempty"` - // IssueCount: Output only. Number of issues in this issue model. - IssueCount int64 `json:"issueCount,omitempty,string"` - // LanguageCode: Language of the model. - LanguageCode string `json:"languageCode,omitempty"` - // ModelType: Type of the model. - // - // Possible values: - // "MODEL_TYPE_UNSPECIFIED" - Unspecified model type. - // "TYPE_V1" - Type V1. - // "TYPE_V2" - Type V2. - ModelType string `json:"modelType,omitempty"` - // Name: Immutable. The resource name of the issue model. Format: - // projects/{project}/locations/{location}/issueModels/{issue_model} - Name string `json:"name,omitempty"` - // State: Output only. State of the model. - // - // Possible values: - // "STATE_UNSPECIFIED" - Unspecified. - // "UNDEPLOYED" - Model is not deployed but is ready to deploy. - // "DEPLOYING" - Model is being deployed. - // "DEPLOYED" - Model is deployed and is ready to be used. A model can only - // be used in analysis if it's in this state. - // "UNDEPLOYING" - Model is being undeployed. - // "DELETING" - Model is being deleted. - State string `json:"state,omitempty"` - // TrainingStats: Output only. Immutable. The issue model's label statistics on - // its training data. - TrainingStats *GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats `json:"trainingStats,omitempty"` - // UpdateTime: Output only. The most recent time at which the issue model was - // updated. - UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to +func (s *GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1DialogflowSource: A Dialogflow +// source of conversation data. +type GoogleCloudContactcenterinsightsV1alpha1DialogflowSource struct { + // AudioUri: Cloud Storage URI that points to a file that contains the + // conversation audio. + AudioUri string `json:"audioUri,omitempty"` + // DialogflowConversation: Output only. The name of the Dialogflow conversation + // that this conversation resource is derived from. Format: + // projects/{project}/locations/{location}/conversations/{conversation} + DialogflowConversation string `json:"dialogflowConversation,omitempty"` + // ForceSendFields is a list of field names (e.g. "AudioUri") 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. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "AudioUri") 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 GoogleCloudContactcenterinsightsV1alpha1IssueModel) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModel +func (s GoogleCloudContactcenterinsightsV1alpha1DialogflowSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowSource return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig: Configs -// for the input data used to create the issue model. -type GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig struct { - // Filter: A filter to reduce the conversations used for training the model to - // a specific subset. - Filter string `json:"filter,omitempty"` - // Medium: Medium of conversations used in training data. This field is being - // deprecated. To specify the medium to be used in training a new issue model, - // set the `medium` field on `filter`. +// GoogleCloudContactcenterinsightsV1alpha1Dimension: A dimension determines +// the grouping key for the query. In SQL terms, these would be part of both +// the "SELECT" and "GROUP BY" clauses. +type GoogleCloudContactcenterinsightsV1alpha1Dimension struct { + // AgentDimensionMetadata: Output only. Metadata about the agent dimension. + AgentDimensionMetadata *GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata `json:"agentDimensionMetadata,omitempty"` + // DimensionKey: The key of the dimension. // // Possible values: - // "MEDIUM_UNSPECIFIED" - Default value, if unspecified will default to - // PHONE_CALL. - // "PHONE_CALL" - The format for conversations that took place over the - // phone. - // "CHAT" - The format for conversations that took place over chat. - Medium string `json:"medium,omitempty"` - // TrainingConversationsCount: Output only. Number of conversations used in - // training. Output only. - TrainingConversationsCount int64 `json:"trainingConversationsCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Filter") 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. "Filter") 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 GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats: Aggregated -// statistics about an issue model. -type GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats struct { - // AnalyzedConversationsCount: Number of conversations the issue model has - // analyzed at this point in time. - AnalyzedConversationsCount int64 `json:"analyzedConversationsCount,omitempty,string"` - // IssueStats: Statistics on each issue. Key is the issue's resource name. - IssueStats map[string]GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats `json:"issueStats,omitempty"` - // UnclassifiedConversationsCount: Number of analyzed conversations for which - // no issue was applicable at this point in time. - UnclassifiedConversationsCount int64 `json:"unclassifiedConversationsCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "AnalyzedConversationsCount") - // to unconditionally include in API requests. By default, fields with empty or + // "DIMENSION_KEY_UNSPECIFIED" - The key of the dimension is unspecified. + // "ISSUE" - The dimension is keyed by issues. + // "AGENT" - The dimension is keyed by agents. + // "AGENT_TEAM" - The dimension is keyed by agent teams. + // "QA_QUESTION_ID" - The dimension is keyed by QaQuestionIds. Note that: We + // only group by the QuestionId and not the revision-id of the scorecard this + // question is a part of. This allows for showing stats for the same question + // across different scorecard revisions. + // "QA_QUESTION_ANSWER_VALUE" - The dimension is keyed by + // QaQuestionIds-Answer value pairs. Note that: We only group by the QuestionId + // and not the revision-id of the scorecard this question is a part of. This + // allows for showing distribution of answers per question across different + // scorecard revisions. + // "CONVERSATION_PROFILE_ID" - The dimension is keyed by the conversation + // profile ID. + DimensionKey string `json:"dimensionKey,omitempty"` + // IssueDimensionMetadata: Output only. Metadata about the issue dimension. + IssueDimensionMetadata *GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata `json:"issueDimensionMetadata,omitempty"` + // QaQuestionAnswerDimensionMetadata: Output only. Metadata about the QA + // question-answer dimension. + QaQuestionAnswerDimensionMetadata *GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata `json:"qaQuestionAnswerDimensionMetadata,omitempty"` + // QaQuestionDimensionMetadata: Output only. Metadata about the QA question + // dimension. + QaQuestionDimensionMetadata *GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata `json:"qaQuestionDimensionMetadata,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentDimensionMetadata") 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. "AnalyzedConversationsCount") to + // NullFields is a list of field names (e.g. "AgentDimensionMetadata") 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 GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats +func (s GoogleCloudContactcenterinsightsV1alpha1Dimension) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1Dimension return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats: -// Aggregated statistics about an issue. -type GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats struct { - // DisplayName: Display name of the issue. - DisplayName string `json:"displayName,omitempty"` - // Issue: Issue resource. Format: - // projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{iss - // ue} - Issue string `json:"issue,omitempty"` - // LabeledConversationsCount: Number of conversations attached to the issue at - // this point in time. - LabeledConversationsCount int64 `json:"labeledConversationsCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to +// GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata: +// Metadata about the agent dimension. +type GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata struct { + // AgentDisplayName: Optional. The agent's name + AgentDisplayName string `json:"agentDisplayName,omitempty"` + // AgentId: Optional. A user-specified string representing the agent. + AgentId string `json:"agentId,omitempty"` + // AgentTeam: Optional. A user-specified string representing the agent's team. + AgentTeam string `json:"agentTeam,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentDisplayName") 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 + // NullFields is a list of field names (e.g. "AgentDisplayName") 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 GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats +func (s GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IssueModelResult: Issue Modeling -// result on a conversation. -type GoogleCloudContactcenterinsightsV1alpha1IssueModelResult struct { - // IssueModel: Issue model that generates the result. Format: - // projects/{project}/locations/{location}/issueModels/{issue_model} - IssueModel string `json:"issueModel,omitempty"` - // Issues: All the matched issues. - Issues []*GoogleCloudContactcenterinsightsV1alpha1IssueAssignment `json:"issues,omitempty"` - // ForceSendFields is a list of field names (e.g. "IssueModel") to +// GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata: +// Metadata about the issue dimension. +type GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata struct { + // IssueDisplayName: The issue display name. + IssueDisplayName string `json:"issueDisplayName,omitempty"` + // IssueId: The issue ID. + IssueId string `json:"issueId,omitempty"` + // IssueModelId: The parent issue model ID. + IssueModelId string `json:"issueModelId,omitempty"` + // ForceSendFields is a list of field names (e.g. "IssueDisplayName") 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. "IssueModel") 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. "IssueDisplayName") 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 GoogleCloudContactcenterinsightsV1alpha1IssueModelResult) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelResult +func (s GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData: The data for a -// matched phrase matcher. Represents information identifying a phrase matcher -// for a given match. -type GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData struct { - // DisplayName: The human-readable name of the phrase matcher. - DisplayName string `json:"displayName,omitempty"` - // PhraseMatcher: The unique identifier (the resource name) of the phrase - // matcher. - PhraseMatcher string `json:"phraseMatcher,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to +// GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMet +// adata: Metadata about the QA question-answer dimension. This is useful for +// showing the answer distribution for questions for a given scorecard. +type GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata struct { + // AnswerValue: Optional. The full body of the question. + AnswerValue string `json:"answerValue,omitempty"` + // QaQuestionId: Optional. The QA question ID. + QaQuestionId string `json:"qaQuestionId,omitempty"` + // QaScorecardId: Optional. The QA scorecard ID. + QaScorecardId string `json:"qaScorecardId,omitempty"` + // QuestionBody: Optional. The full body of the question. + QuestionBody string `json:"questionBody,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerValue") 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 + // NullFields is a list of field names (e.g. "AnswerValue") 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 GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData +func (s GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1RedactionConfig: DLP resources used -// for redaction while ingesting conversations. DLP settings are applied to -// conversations ingested from the `UploadConversation` and -// `IngestConversations` endpoints, including conversation coming from CCAI -// Platform. They are not applied to conversations ingested from the -// `CreateConversation` endpoint or the Dialogflow / Agent Assist runtime -// integrations. When using Dialogflow / Agent Assist runtime integrations, -// redaction should be performed in Dialogflow / Agent Assist. -type GoogleCloudContactcenterinsightsV1alpha1RedactionConfig struct { - // DeidentifyTemplate: The fully-qualified DLP deidentify template resource - // name. Format: `projects/{project}/deidentifyTemplates/{template}` - DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"` - // InspectTemplate: The fully-qualified DLP inspect template resource name. - // Format: - // `projects/{project}/locations/{location}/inspectTemplates/{template}` - InspectTemplate string `json:"inspectTemplate,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") to +// GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata: +// +// Metadata about the QA question dimension. +type GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata struct { + // QaQuestionId: Optional. The QA question ID. + QaQuestionId string `json:"qaQuestionId,omitempty"` + // QaScorecardId: Optional. The QA scorecard ID. + QaScorecardId string `json:"qaScorecardId,omitempty"` + // QuestionBody: Optional. The full body of the question. + QuestionBody string `json:"questionBody,omitempty"` + // ForceSendFields is a list of field names (e.g. "QaQuestionId") 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. "DeidentifyTemplate") 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. "QaQuestionId") 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 GoogleCloudContactcenterinsightsV1alpha1RedactionConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1RedactionConfig +func (s GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation: An annotation -// that was generated during the customer and agent interaction. -type GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation struct { - // AnnotationId: The unique identifier of the annotation. Format: - // projects/{project}/locations/{location}/conversationDatasets/{dataset}/conver - // sationDataItems/{data_item}/conversationAnnotations/{annotation} - AnnotationId string `json:"annotationId,omitempty"` - // AnswerFeedback: The feedback that the customer has about the answer in - // `data`. - AnswerFeedback *GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback `json:"answerFeedback,omitempty"` - // ArticleSuggestion: Agent Assist Article Suggestion data. - ArticleSuggestion *GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData `json:"articleSuggestion,omitempty"` - // ConversationSummarizationSuggestion: Conversation summarization suggestion - // data. - ConversationSummarizationSuggestion *GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData `json:"conversationSummarizationSuggestion,omitempty"` - // CreateTime: The time at which this annotation was created. - CreateTime string `json:"createTime,omitempty"` - // DialogflowInteraction: Dialogflow interaction data. - DialogflowInteraction *GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData `json:"dialogflowInteraction,omitempty"` - // EndBoundary: The boundary in the conversation where the annotation ends, - // inclusive. - EndBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"endBoundary,omitempty"` - // FaqAnswer: Agent Assist FAQ answer data. - FaqAnswer *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData `json:"faqAnswer,omitempty"` - // SmartComposeSuggestion: Agent Assist Smart Compose suggestion data. - SmartComposeSuggestion *GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData `json:"smartComposeSuggestion,omitempty"` - // SmartReply: Agent Assist Smart Reply data. - SmartReply *GoogleCloudContactcenterinsightsV1alpha1SmartReplyData `json:"smartReply,omitempty"` - // StartBoundary: The boundary in the conversation where the annotation starts, - // inclusive. - StartBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"startBoundary,omitempty"` - // UserInput: Explicit input used for generating the answer - UserInput *GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput `json:"userInput,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnnotationId") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec: A customer-managed +// encryption key specification that can be applied to all created resources +// (e.g. `Conversation`). +type GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec struct { + // KmsKey: Required. The name of customer-managed encryption key that is used + // to secure a resource and its sub-resources. If empty, the resource is + // secured by our default encryption key. Only the key in the same location as + // this resource is allowed to be used for encryption. Format: + // `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + KmsKey string `json:"kmsKey,omitempty"` + // Name: Immutable. The resource name of the encryption key specification + // resource. Format: projects/{project}/locations/{location}/encryptionSpec + Name string `json:"name,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 // 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. "AnnotationId") to include in API + // NullFields is a list of field names (e.g. "KmsKey") 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 GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation +func (s GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput: Explicit -// input used for generating the answer -type GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput struct { - // GeneratorName: The resource name of associated generator. Format: - // `projects//locations//generators/` - GeneratorName string `json:"generatorName,omitempty"` - // Query: Query text. Article Search uses this to store the input query used to - // generate the search results. - Query string `json:"query,omitempty"` - // QuerySource: Query source for the answer. +// GoogleCloudContactcenterinsightsV1alpha1Entity: The data for an entity +// annotation. Represents a phrase in the conversation that is a known entity, +// such as a person, an organization, or location. +type GoogleCloudContactcenterinsightsV1alpha1Entity struct { + // DisplayName: The representative name for the entity. + DisplayName string `json:"displayName,omitempty"` + // Metadata: Metadata associated with the entity. For most entity types, the + // metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID + // (`mid`), if they are available. For the metadata associated with other + // entity types, see the Type table below. + Metadata map[string]string `json:"metadata,omitempty"` + // Salience: The salience score associated with the entity in the [0, 1.0] + // range. The salience score for an entity provides information about the + // importance or centrality of that entity to the entire document text. Scores + // closer to 0 are less salient, while scores closer to 1.0 are highly salient. + Salience float64 `json:"salience,omitempty"` + // Sentiment: The aggregate sentiment expressed for this entity in the + // conversation. + Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"` + // Type: The entity type. // // Possible values: - // "QUERY_SOURCE_UNSPECIFIED" - Unknown query source. - // "AGENT_QUERY" - The query is from agents. - // "SUGGESTED_QUERY" - The query is a query from previous suggestions, e.g. - // from a preceding SuggestKnowledgeAssist response. - QuerySource string `json:"querySource,omitempty"` - // ForceSendFields is a list of field names (e.g. "GeneratorName") 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. "GeneratorName") 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 GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContactcenterinsightsV1alpha1SentimentData: The data for a -// sentiment annotation. -type GoogleCloudContactcenterinsightsV1alpha1SentimentData struct { - // Magnitude: A non-negative number from 0 to infinity which represents the - // abolute magnitude of sentiment regardless of score. - Magnitude float64 `json:"magnitude,omitempty"` - // Score: The sentiment score between -1.0 (negative) and 1.0 (positive). - Score float64 `json:"score,omitempty"` - // ForceSendFields is a list of field names (e.g. "Magnitude") to + // "TYPE_UNSPECIFIED" - Unspecified. + // "PERSON" - Person. + // "LOCATION" - Location. + // "ORGANIZATION" - Organization. + // "EVENT" - Event. + // "WORK_OF_ART" - Artwork. + // "CONSUMER_GOOD" - Consumer product. + // "OTHER" - Other types of entities. + // "PHONE_NUMBER" - Phone number. The metadata lists the phone number + // (formatted according to local convention), plus whichever additional + // elements appear in the text: * `number` - The actual number, broken down + // into sections according to local convention. * `national_prefix` - Country + // code, if detected. * `area_code` - Region or area code, if detected. * + // `extension` - Phone extension (to be dialed after connection), if detected. + // "ADDRESS" - Address. The metadata identifies the street number and + // locality plus whichever additional elements appear in the text: * + // `street_number` - Street number. * `locality` - City or town. * + // `street_name` - Street/route name, if detected. * `postal_code` - Postal + // code, if detected. * `country` - Country, if detected. * `broad_region` - + // Administrative area, such as the state, if detected. * `narrow_region` - + // Smaller administrative area, such as county, if detected. * `sublocality` - + // Used in Asian addresses to demark a district within a city, if detected. + // "DATE" - Date. The metadata identifies the components of the date: * + // `year` - Four digit year, if detected. * `month` - Two digit month number, + // if detected. * `day` - Two digit day number, if detected. + // "NUMBER" - Number. The metadata is the number itself. + // "PRICE" - Price. The metadata identifies the `value` and `currency`. + Type string `json:"type,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. "Magnitude") to include in API + // 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 GoogleCloudContactcenterinsightsV1alpha1SentimentData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1SentimentData - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudContactcenterinsightsV1alpha1SentimentData) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1SentimentData - var s1 struct { - Magnitude gensupport.JSONFloat64 `json:"magnitude"` - Score gensupport.JSONFloat64 `json:"score"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Magnitude = float64(s1.Magnitude) - s.Score = float64(s1.Score) - return nil -} - -// GoogleCloudContactcenterinsightsV1alpha1SilenceData: The data for a silence -// annotation. -type GoogleCloudContactcenterinsightsV1alpha1SilenceData struct { -} - -// GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData: Agent -// Assist Smart Compose suggestion data. -type GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData struct { - // ConfidenceScore: The system's confidence score that this suggestion is a - // good match for this conversation, ranging from 0.0 (completely uncertain) to - // 1.0 (completely certain). - ConfidenceScore float64 `json:"confidenceScore,omitempty"` - // Metadata: Map that contains metadata about the Smart Compose suggestion and - // the document from which it originates. - Metadata map[string]string `json:"metadata,omitempty"` - // QueryRecord: The name of the answer record. Format: - // projects/{project}/locations/{location}/answerRecords/{answer_record} - QueryRecord string `json:"queryRecord,omitempty"` - // Suggestion: The content of the suggestion. - Suggestion string `json:"suggestion,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfidenceScore") 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. "ConfidenceScore") 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 GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData - var s1 struct { - ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ConfidenceScore = float64(s1.ConfidenceScore) - return nil -} - -// GoogleCloudContactcenterinsightsV1alpha1SmartReplyData: Agent Assist Smart -// Reply data. -type GoogleCloudContactcenterinsightsV1alpha1SmartReplyData struct { - // ConfidenceScore: The system's confidence score that this reply is a good - // match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 - // (completely certain). - ConfidenceScore float64 `json:"confidenceScore,omitempty"` - // Metadata: Map that contains metadata about the Smart Reply and the document - // from which it originates. - Metadata map[string]string `json:"metadata,omitempty"` - // QueryRecord: The name of the answer record. Format: - // projects/{project}/locations/{location}/answerRecords/{answer_record} - QueryRecord string `json:"queryRecord,omitempty"` - // Reply: The content of the reply. - Reply string `json:"reply,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfidenceScore") 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. "ConfidenceScore") 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 GoogleCloudContactcenterinsightsV1alpha1SmartReplyData) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartReplyData +func (s GoogleCloudContactcenterinsightsV1alpha1Entity) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1Entity return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudContactcenterinsightsV1alpha1SmartReplyData) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartReplyData +func (s *GoogleCloudContactcenterinsightsV1alpha1Entity) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1Entity var s1 struct { - ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + Salience gensupport.JSONFloat64 `json:"salience"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } - s.ConfidenceScore = float64(s1.ConfidenceScore) + s.Salience = float64(s1.Salience) return nil } -// GoogleCloudContactcenterinsightsV1alpha1SpeechConfig: Speech-to-Text -// configuration. Speech-to-Text settings are applied to conversations ingested -// from the `UploadConversation` and `IngestConversations` endpoints, including -// conversation coming from CCAI Platform. They are not applied to -// conversations ingested from the `CreateConversation` endpoint. -type GoogleCloudContactcenterinsightsV1alpha1SpeechConfig struct { - // SpeechRecognizer: The fully-qualified Speech Recognizer resource name. - // Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` - SpeechRecognizer string `json:"speechRecognizer,omitempty"` - // ForceSendFields is a list of field names (e.g. "SpeechRecognizer") to +// GoogleCloudContactcenterinsightsV1alpha1EntityMentionData: The data for an +// entity mention annotation. This represents a mention of an `Entity` in the +// conversation. +type GoogleCloudContactcenterinsightsV1alpha1EntityMentionData struct { + // EntityUniqueId: The key of this entity in conversation entities. Can be used + // to retrieve the exact `Entity` this mention is attached to. + EntityUniqueId string `json:"entityUniqueId,omitempty"` + // Sentiment: Sentiment expressed for this mention of the entity. + Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"` + // Type: The type of the entity mention. + // + // Possible values: + // "MENTION_TYPE_UNSPECIFIED" - Unspecified. + // "PROPER" - Proper noun. + // "COMMON" - Common noun (or noun compound). + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "EntityUniqueId") 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. "SpeechRecognizer") to include in + // NullFields is a list of field names (e.g. "EntityUniqueId") 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 GoogleCloudContactcenterinsightsV1alpha1SpeechConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1SpeechConfig +func (s GoogleCloudContactcenterinsightsV1alpha1EntityMentionData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1EntityMentionData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata: Metadata -// for undeploying an issue model. -type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata struct { +// GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata: Metadata +// for an export insights operation. +type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata struct { // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` - // Request: The original request for undeployment. - Request *GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest `json:"request,omitempty"` + // PartialErrors: Partial errors during export operation that might cause the + // operation output to be incomplete. + PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` + // Request: The original request for export. + Request *GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest `json:"request,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -6562,289 +7341,8833 @@ type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata struct { NullFields []string `json:"-"` } -func (s GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata +func (s GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest: The -// request to undeploy an issue model. -type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest struct { - // Name: Required. The issue model to undeploy. - Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to unconditionally +// GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest: The +// request to export insights. +type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest struct { + // BigQueryDestination: Specified if sink is a BigQuery table. + BigQueryDestination *GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination `json:"bigQueryDestination,omitempty"` + // Filter: A filter to reduce results to a specific subset. Useful for + // exporting conversations with specific properties. + Filter string `json:"filter,omitempty"` + // KmsKey: A fully qualified KMS key name for BigQuery tables protected by + // CMEK. Format: + // projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/c + // ryptoKeyVersions/{version} + KmsKey string `json:"kmsKey,omitempty"` + // Parent: Required. The parent resource to export data from. + Parent string `json:"parent,omitempty"` + // WriteDisposition: Options for what to do if the destination table already + // exists. + // + // Possible values: + // "WRITE_DISPOSITION_UNSPECIFIED" - Write disposition is not specified. + // Defaults to WRITE_TRUNCATE. + // "WRITE_TRUNCATE" - If the table already exists, BigQuery will overwrite + // the table data and use the schema from the load. + // "WRITE_APPEND" - If the table already exists, BigQuery will append data to + // the table. + WriteDisposition string `json:"writeDisposition,omitempty"` + // ForceSendFields is a list of field names (e.g. "BigQueryDestination") 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. "BigQueryDestination") 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 GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDest +// ination: A BigQuery Table Reference. +type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination struct { + // Dataset: Required. The name of the BigQuery dataset that the snapshot result + // should be exported to. If this dataset does not exist, the export call + // returns an INVALID_ARGUMENT error. + Dataset string `json:"dataset,omitempty"` + // ProjectId: A project ID or number. If specified, then export will attempt to + // write data to this project instead of the resource project. Otherwise, the + // resource project will be used. + ProjectId string `json:"projectId,omitempty"` + // Table: The BigQuery table name to which the insights data should be written. + // If this table does not exist, the export call returns an INVALID_ARGUMENT + // error. + Table string `json:"table,omitempty"` + // ForceSendFields is a list of field names (e.g. "Dataset") 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 + // NullFields is a list of field names (e.g. "Dataset") 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 GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest +func (s GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelResponse: The -// response to undeploy an issue model. -type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelResponse struct { +// GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse: Response +// for an export insights operation. +type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse struct { } -// GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata: The -// metadata for an `UploadConversation` operation. -type GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata struct { - // AnalysisOperation: Output only. The operation name for a successfully - // created analysis operation, if any. - AnalysisOperation string `json:"analysisOperation,omitempty"` - // AppliedRedactionConfig: Output only. The redaction config applied to the - // uploaded conversation. - AppliedRedactionConfig *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig `json:"appliedRedactionConfig,omitempty"` - // CreateTime: Output only. The time the operation was created. +// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata: Metadata +// used for export issue model. +type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata struct { + // CreateTime: The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. + // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` - // Request: Output only. The original request. - Request *GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest `json:"request,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnalysisOperation") to + // Request: The original export request. + Request *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "AnalysisOperation") 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. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata +func (s GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest: Request -// to upload a conversation. -type GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest struct { - // Conversation: Required. The conversation resource to create. - Conversation *GoogleCloudContactcenterinsightsV1alpha1Conversation `json:"conversation,omitempty"` - // ConversationId: Optional. A unique ID for the new conversation. This ID will - // become the final component of the conversation's resource name. If no ID is - // specified, a server-generated ID will be used. This value should be 4-64 - // characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid - // characters are `a-z-` - ConversationId string `json:"conversationId,omitempty"` - // Parent: Required. The parent resource of the conversation. - Parent string `json:"parent,omitempty"` - // RedactionConfig: Optional. DLP settings for transcript redaction. Will - // default to the config specified in Settings. - RedactionConfig *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig `json:"redactionConfig,omitempty"` - // SpeechConfig: Optional. Speech-to-Text configuration. Will default to the - // config specified in Settings. - SpeechConfig *GoogleCloudContactcenterinsightsV1alpha1SpeechConfig `json:"speechConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "Conversation") to +// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest: Request to +// export an issue model. +type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest struct { + // GcsDestination: Google Cloud Storage URI to export the issue model to. + GcsDestination *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination `json:"gcsDestination,omitempty"` + // Name: Required. The issue model to export. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "GcsDestination") 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. "Conversation") 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. "GcsDestination") 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 GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest +func (s GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleLongrunningListOperationsResponse: The response message for -// Operations.ListOperations. -type GoogleLongrunningListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - // Operations: A list of operations that matches the specified filter in the - // request. - Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to +// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination +// : Google Cloud Storage Object URI to save the issue model to. +type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination struct { + // ObjectUri: Required. Format: `gs:///` + ObjectUri string `json:"objectUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "ObjectUri") 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. "NextPageToken") to include in API + // NullFields is a list of field names (e.g. "ObjectUri") 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 GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleLongrunningListOperationsResponse +func (s GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleLongrunningOperation: This resource represents a long-running -// operation that is the result of a network API call. -type GoogleLongrunningOperation struct { - // Done: If the value is `false`, it means the operation is still in progress. - // If `true`, the operation is completed, and either `error` or `response` is - // available. - Done bool `json:"done,omitempty"` - // Error: The error result of the operation in case of failure or cancellation. - Error *GoogleRpcStatus `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as create - // time. Some services might not provide such metadata. Any method that returns - // a long-running operation should document the metadata type, if any. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: The server-assigned name, which is only unique within the same service - // that originally returns it. If you use the default HTTP mapping, the `name` - // should be a resource name ending with `operations/{unique_id}`. - Name string `json:"name,omitempty"` - // Response: The normal, successful response of the operation. If the original - // method returns no data on success, such as `Delete`, the response is - // `google.protobuf.Empty`. If the original method is standard - // `Get`/`Create`/`Update`, the response should be the resource. For other - // methods, the response should have the type `XxxResponse`, where `Xxx` is the - // original method name. For example, if the original method name is - // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. - Response googleapi.RawMessage `json:"response,omitempty"` +// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse: Response +// from export issue model +type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse struct { +} - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Done") to unconditionally +// GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData: Agent Assist +// frequently-asked-question answer data. +type GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData struct { + // Answer: The piece of text from the `source` knowledge base document. + Answer string `json:"answer,omitempty"` + // ConfidenceScore: The system's confidence score that this answer is a good + // match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 + // (completely certain). + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // Metadata: Map that contains metadata about the FAQ answer and the document + // that it originates from. + Metadata map[string]string `json:"metadata,omitempty"` + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} + QueryRecord string `json:"queryRecord,omitempty"` + // Question: The corresponding FAQ question. + Question string `json:"question,omitempty"` + // Source: The knowledge document that this answer was extracted from. Format: + // projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}. + Source string `json:"source,omitempty"` + // ForceSendFields is a list of field names (e.g. "Answer") 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. "Done") 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. "Answer") 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 GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleLongrunningOperation +func (s GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleProtobufEmpty: A generic empty message that you can re-use to avoid -// defining duplicated empty messages in your APIs. A typical example is to use -// it as the request or the response type of an API method. For instance: -// service Foo { rpc Bar(google.protobuf.Empty) returns -// (google.protobuf.Empty); } -type GoogleProtobufEmpty struct { - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` -} - -// GoogleRpcStatus: 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). -type GoogleRpcStatus struct { - // Code: The status code, which should be an enum value of google.rpc.Code. - Code int64 `json:"code,omitempty"` - // Details: A list of messages that carry the error details. There is a common - // set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` - // Message: A developer-facing error message, which should be in English. Any - // user-facing error message should be localized and sent in the - // google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") to unconditionally - // include in API requests. By default, fields with empty or default values are +func (s *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel: Represents a +// conversation, resource, and label provided by the user. +type GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel struct { + // CreateTime: Output only. Create time of the label. + CreateTime string `json:"createTime,omitempty"` + // Label: String label. + Label string `json:"label,omitempty"` + // LabeledResource: Resource name of the resource to be labeled. + LabeledResource string `json:"labeledResource,omitempty"` + // Name: Immutable. Resource name of the FeedbackLabel. Format: + // projects/{project}/locations/{location}/conversations/{conversation}/feedback + // Labels/{feedback_label} + Name string `json:"name,omitempty"` + // QaAnswerLabel: QaAnswer label. + QaAnswerLabel *GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue `json:"qaAnswerLabel,omitempty"` + // UpdateTime: Output only. Update time of the label. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1GcsSource: A Cloud Storage source of +// conversation data. +type GoogleCloudContactcenterinsightsV1alpha1GcsSource struct { + // AudioUri: Cloud Storage URI that points to a file that contains the + // conversation audio. + AudioUri string `json:"audioUri,omitempty"` + // TranscriptUri: Immutable. Cloud Storage URI that points to a file that + // contains the conversation transcript. + TranscriptUri string `json:"transcriptUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "AudioUri") 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. "Code") 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. "AudioUri") 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 GoogleRpcStatus) MarshalJSON() ([]byte, error) { - type NoMethod GoogleRpcStatus +func (s GoogleCloudContactcenterinsightsV1alpha1GcsSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GcsSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1HoldData: The data for a hold +// annotation. +type GoogleCloudContactcenterinsightsV1alpha1HoldData struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata: Metadata +// used for import issue model. +type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata struct { + // CreateTime: The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // Request: The original import request. + Request *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest: Request to +// import an issue model. +type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest struct { + // CreateNewModel: Optional. If set to true, will create an issue model from + // the imported file with randomly generated IDs for the issue model and + // corresponding issues. Otherwise, replaces an existing model with the same ID + // as the file. + CreateNewModel bool `json:"createNewModel,omitempty"` + // GcsSource: Google Cloud Storage source message. + GcsSource *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource `json:"gcsSource,omitempty"` + // Parent: Required. The parent resource of the issue model. + Parent string `json:"parent,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateNewModel") 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. "CreateNewModel") 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 GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource: +// Google Cloud Storage Object URI to get the issue model file from. +type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource struct { + // ObjectUri: Required. Format: `gs:///` + ObjectUri string `json:"objectUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "ObjectUri") 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. "ObjectUri") 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 GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse: Response +// from import issue model +type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata: The +// metadata for an IngestConversations operation. +type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // IngestConversationsStats: Output only. Statistics for IngestConversations + // operation. + IngestConversationsStats *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats `json:"ingestConversationsStats,omitempty"` + // PartialErrors: Output only. Partial errors during ingest operation that + // might cause the operation output to be incomplete. + PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` + // Request: Output only. The original request for ingest. + Request *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type ProjectsLocationsGetEncryptionSpecCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConv +// ersationsStats: Statistics for IngestConversations operation. +type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats struct { + // DuplicatesSkippedCount: Output only. The number of objects skipped because + // another conversation with the same transcript uri had already been ingested. + DuplicatesSkippedCount int64 `json:"duplicatesSkippedCount,omitempty"` + // FailedIngestCount: Output only. The number of objects which were unable to + // be ingested due to errors. The errors are populated in the partial_errors + // field. + FailedIngestCount int64 `json:"failedIngestCount,omitempty"` + // ProcessedObjectCount: Output only. The number of objects processed during + // the ingest operation. + ProcessedObjectCount int64 `json:"processedObjectCount,omitempty"` + // SuccessfulIngestCount: Output only. The number of new conversations added + // during this ingest operation. + SuccessfulIngestCount int64 `json:"successfulIngestCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "DuplicatesSkippedCount") 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. "DuplicatesSkippedCount") 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 GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest: The +// request to ingest conversations. +type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest struct { + // ConversationConfig: Configuration that applies to all conversations. + ConversationConfig *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig `json:"conversationConfig,omitempty"` + // GcsSource: A cloud storage bucket source. Note that any previously ingested + // objects from the source will be skipped to avoid duplication. + GcsSource *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource `json:"gcsSource,omitempty"` + // Parent: Required. The parent resource for new conversations. + Parent string `json:"parent,omitempty"` + // RedactionConfig: Optional. DLP settings for transcript redaction. Optional, + // will default to the config specified in Settings. + RedactionConfig *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig `json:"redactionConfig,omitempty"` + // SampleSize: Optional. If set, this fields indicates the number of objects to + // ingest from the Cloud Storage bucket. If empty, the entire bucket will be + // ingested. Unless they are first deleted, conversations produced through + // sampling won't be ingested by subsequent ingest requests. + SampleSize int64 `json:"sampleSize,omitempty"` + // SpeechConfig: Optional. Default Speech-to-Text configuration. Optional, will + // default to the config specified in Settings. + SpeechConfig *GoogleCloudContactcenterinsightsV1alpha1SpeechConfig `json:"speechConfig,omitempty"` + // TranscriptObjectConfig: Configuration for when `source` contains + // conversation transcripts. + TranscriptObjectConfig *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig `json:"transcriptObjectConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConversationConfig") 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. "ConversationConfig") 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 GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversatio +// nConfig: Configuration that applies to all conversations. +type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig struct { + // AgentChannel: Optional. Indicates which of the channels, 1 or 2, contains + // the agent. Note that this must be set for conversations to be properly + // displayed and analyzed. + AgentChannel int64 `json:"agentChannel,omitempty"` + // AgentId: Optional. An opaque, user-specified string representing a human + // agent who handled all conversations in the import. Note that this will be + // overridden if per-conversation metadata is provided through the + // `metadata_bucket_uri`. + AgentId string `json:"agentId,omitempty"` + // CustomerChannel: Optional. Indicates which of the channels, 1 or 2, contains + // the agent. Note that this must be set for conversations to be properly + // displayed and analyzed. + CustomerChannel int64 `json:"customerChannel,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentChannel") 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. "AgentChannel") 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 GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource: +// Configuration for Cloud Storage bucket sources. +type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource struct { + // BucketObjectType: Optional. Specifies the type of the objects in + // `bucket_uri`. + // + // Possible values: + // "BUCKET_OBJECT_TYPE_UNSPECIFIED" - The object type is unspecified and will + // default to `TRANSCRIPT`. + // "TRANSCRIPT" - The object is a transcript. + // "AUDIO" - The object is an audio file. + BucketObjectType string `json:"bucketObjectType,omitempty"` + // BucketUri: Required. The Cloud Storage bucket containing source objects. + BucketUri string `json:"bucketUri,omitempty"` + // CustomMetadataKeys: Optional. Custom keys to extract as conversation labels + // from metadata files in `metadata_bucket_uri`. Keys not included in this + // field will be ignored. Note that there is a limit of 20 labels per + // conversation. + CustomMetadataKeys []string `json:"customMetadataKeys,omitempty"` + // MetadataBucketUri: Optional. The Cloud Storage path to the conversation + // metadata. Note that: [1] Metadata files are expected to be in JSON format. + // [2] Metadata and source files (transcripts or audio) must be in separate + // buckets. [3] A source file and its corresponding metadata file must share + // the same name to be properly ingested, E.g. + // `gs://bucket/audio/conversation1.mp3` and + // `gs://bucket/metadata/conversation1.json`. + MetadataBucketUri string `json:"metadataBucketUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "BucketObjectType") 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. "BucketObjectType") 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 GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptO +// bjectConfig: Configuration for processing transcript objects. +type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig struct { + // Medium: Required. The medium transcript objects represent. + // + // Possible values: + // "MEDIUM_UNSPECIFIED" - Default value, if unspecified will default to + // PHONE_CALL. + // "PHONE_CALL" - The format for conversations that took place over the + // phone. + // "CHAT" - The format for conversations that took place over chat. + Medium string `json:"medium,omitempty"` + // ForceSendFields is a list of field names (e.g. "Medium") 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. "Medium") 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 GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse: The +// response to an IngestConversations operation. +type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata: +// Metadata for initializing a location-level encryption specification. +type GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // PartialErrors: Partial errors during initializing operation that might cause + // the operation output to be incomplete. + PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"` + // Request: Output only. The original request for initialization. + Request *GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest: The +// request to initialize a location-level encryption specification. +type GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest struct { + // EncryptionSpec: Required. The encryption spec used for CMEK encryption. It + // is required that the kms key is in the same region as the endpoint. The same + // key will be used for all provisioned resources, if encryption is available. + // If the `kms_key_name` field is left empty, no encryption will be enforced. + EncryptionSpec *GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec `json:"encryptionSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "EncryptionSpec") 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. "EncryptionSpec") 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 GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse: +// The response to initialize a location-level encryption specification. +type GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1Intent: The data for an intent. +// Represents a detected intent in the conversation, for example MAKES_PROMISE. +type GoogleCloudContactcenterinsightsV1alpha1Intent struct { + // DisplayName: The human-readable name of the intent. + DisplayName string `json:"displayName,omitempty"` + // Id: The unique identifier of the intent. + Id string `json:"id,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 GoogleCloudContactcenterinsightsV1alpha1Intent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1Intent + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IntentMatchData: The data for an +// intent match. Represents an intent match for a text segment in the +// conversation. A text segment can be part of a sentence, a complete sentence, +// or an utterance with multiple sentences. +type GoogleCloudContactcenterinsightsV1alpha1IntentMatchData struct { + // IntentUniqueId: The id of the matched intent. Can be used to retrieve the + // corresponding intent information. + IntentUniqueId string `json:"intentUniqueId,omitempty"` + // ForceSendFields is a list of field names (e.g. "IntentUniqueId") 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. "IntentUniqueId") 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 GoogleCloudContactcenterinsightsV1alpha1IntentMatchData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IntentMatchData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1InterruptionData: The data for an +// interruption annotation. +type GoogleCloudContactcenterinsightsV1alpha1InterruptionData struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1IssueAssignment: Information about +// the issue. +type GoogleCloudContactcenterinsightsV1alpha1IssueAssignment struct { + // DisplayName: Immutable. Display name of the assigned issue. This field is + // set at time of analyis and immutable since then. + DisplayName string `json:"displayName,omitempty"` + // Issue: Resource name of the assigned issue. + Issue string `json:"issue,omitempty"` + // Score: Score indicating the likelihood of the issue assignment. currently + // bounded on [0,1]. + 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 GoogleCloudContactcenterinsightsV1alpha1IssueAssignment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueAssignment + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1IssueAssignment) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueAssignment + 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 +} + +// GoogleCloudContactcenterinsightsV1alpha1IssueMatchData: The data for an +// issue match annotation. +type GoogleCloudContactcenterinsightsV1alpha1IssueMatchData struct { + // IssueAssignment: Information about the issue's assignment. + IssueAssignment *GoogleCloudContactcenterinsightsV1alpha1IssueAssignment `json:"issueAssignment,omitempty"` + // ForceSendFields is a list of field names (e.g. "IssueAssignment") 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. "IssueAssignment") 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 GoogleCloudContactcenterinsightsV1alpha1IssueMatchData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueMatchData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IssueModel: The issue model +// resource. +type GoogleCloudContactcenterinsightsV1alpha1IssueModel struct { + // CreateTime: Output only. The time at which this issue model was created. + CreateTime string `json:"createTime,omitempty"` + // DisplayName: The representative name for the issue model. + DisplayName string `json:"displayName,omitempty"` + // InputDataConfig: Configs for the input data that used to create the issue + // model. + InputDataConfig *GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig `json:"inputDataConfig,omitempty"` + // IssueCount: Output only. Number of issues in this issue model. + IssueCount int64 `json:"issueCount,omitempty,string"` + // LanguageCode: Language of the model. + LanguageCode string `json:"languageCode,omitempty"` + // ModelType: Type of the model. + // + // Possible values: + // "MODEL_TYPE_UNSPECIFIED" - Unspecified model type. + // "TYPE_V1" - Type V1. + // "TYPE_V2" - Type V2. + ModelType string `json:"modelType,omitempty"` + // Name: Immutable. The resource name of the issue model. Format: + // projects/{project}/locations/{location}/issueModels/{issue_model} + Name string `json:"name,omitempty"` + // State: Output only. State of the model. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified. + // "UNDEPLOYED" - Model is not deployed but is ready to deploy. + // "DEPLOYING" - Model is being deployed. + // "DEPLOYED" - Model is deployed and is ready to be used. A model can only + // be used in analysis if it's in this state. + // "UNDEPLOYING" - Model is being undeployed. + // "DELETING" - Model is being deleted. + State string `json:"state,omitempty"` + // TrainingStats: Output only. Immutable. The issue model's label statistics on + // its training data. + TrainingStats *GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats `json:"trainingStats,omitempty"` + // UpdateTime: Output only. The most recent time at which the issue model was + // updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1IssueModel) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModel + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig: Configs +// for the input data used to create the issue model. +type GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig struct { + // Filter: A filter to reduce the conversations used for training the model to + // a specific subset. + Filter string `json:"filter,omitempty"` + // Medium: Medium of conversations used in training data. This field is being + // deprecated. To specify the medium to be used in training a new issue model, + // set the `medium` field on `filter`. + // + // Possible values: + // "MEDIUM_UNSPECIFIED" - Default value, if unspecified will default to + // PHONE_CALL. + // "PHONE_CALL" - The format for conversations that took place over the + // phone. + // "CHAT" - The format for conversations that took place over chat. + Medium string `json:"medium,omitempty"` + // TrainingConversationsCount: Output only. Number of conversations used in + // training. Output only. + TrainingConversationsCount int64 `json:"trainingConversationsCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Filter") 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. "Filter") 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 GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats: Aggregated +// statistics about an issue model. +type GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats struct { + // AnalyzedConversationsCount: Number of conversations the issue model has + // analyzed at this point in time. + AnalyzedConversationsCount int64 `json:"analyzedConversationsCount,omitempty,string"` + // IssueStats: Statistics on each issue. Key is the issue's resource name. + IssueStats map[string]GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats `json:"issueStats,omitempty"` + // UnclassifiedConversationsCount: Number of analyzed conversations for which + // no issue was applicable at this point in time. + UnclassifiedConversationsCount int64 `json:"unclassifiedConversationsCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "AnalyzedConversationsCount") + // 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. "AnalyzedConversationsCount") 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 GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats: +// Aggregated statistics about an issue. +type GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats struct { + // DisplayName: Display name of the issue. + DisplayName string `json:"displayName,omitempty"` + // Issue: Issue resource. Format: + // projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{iss + // ue} + Issue string `json:"issue,omitempty"` + // LabeledConversationsCount: Number of conversations attached to the issue at + // this point in time. + LabeledConversationsCount int64 `json:"labeledConversationsCount,omitempty,string"` + // 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 GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IssueModelResult: Issue Modeling +// result on a conversation. +type GoogleCloudContactcenterinsightsV1alpha1IssueModelResult struct { + // IssueModel: Issue model that generates the result. Format: + // projects/{project}/locations/{location}/issueModels/{issue_model} + IssueModel string `json:"issueModel,omitempty"` + // Issues: All the matched issues. + Issues []*GoogleCloudContactcenterinsightsV1alpha1IssueAssignment `json:"issues,omitempty"` + // ForceSendFields is a list of field names (e.g. "IssueModel") 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. "IssueModel") 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 GoogleCloudContactcenterinsightsV1alpha1IssueModelResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse: The +// response for listing all feedback labels. +type GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse struct { + // FeedbackLabels: The feedback labels that match the request. + FeedbackLabels []*GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel `json:"feedbackLabels,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + // ForceSendFields is a list of field names (e.g. "FeedbackLabels") 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. "FeedbackLabels") 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 GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse: The +// response for listing feedback labels. +type GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse struct { + // FeedbackLabels: The feedback labels that match the request. + FeedbackLabels []*GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel `json:"feedbackLabels,omitempty"` + // NextPageToken: The next page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // ForceSendFields is a list of field names (e.g. "FeedbackLabels") 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. "FeedbackLabels") 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 GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData: The data for a +// matched phrase matcher. Represents information identifying a phrase matcher +// for a given match. +type GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData struct { + // DisplayName: The human-readable name of the phrase matcher. + DisplayName string `json:"displayName,omitempty"` + // PhraseMatcher: The unique identifier (the resource name) of the phrase + // matcher. + PhraseMatcher string `json:"phraseMatcher,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 GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1QaAnswer: An answer to a QaQuestion. +type GoogleCloudContactcenterinsightsV1alpha1QaAnswer struct { + // AnswerSources: List of all individual answers given to the question. + AnswerSources []*GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource `json:"answerSources,omitempty"` + // AnswerValue: The main answer value, incorporating any manual edits if they + // exist. + AnswerValue *GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue `json:"answerValue,omitempty"` + // Conversation: The conversation the answer applies to. + Conversation string `json:"conversation,omitempty"` + // PotentialScore: The maximum potential score of the question. If the question + // was answered using `na_value`, this field will be zero. + PotentialScore float64 `json:"potentialScore,omitempty"` + // QaQuestion: The QaQuestion answered by this answer. + QaQuestion string `json:"qaQuestion,omitempty"` + // QuestionBody: Question text. E.g., "Did the agent greet the customer?" + QuestionBody string `json:"questionBody,omitempty"` + // Tags: User-defined list of arbitrary tags. Matches the value from + // QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for + // weighting the score of each answer. + Tags []string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerSources") 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. "AnswerSources") 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 GoogleCloudContactcenterinsightsV1alpha1QaAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaAnswer + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1QaAnswer) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaAnswer + var s1 struct { + PotentialScore gensupport.JSONFloat64 `json:"potentialScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.PotentialScore = float64(s1.PotentialScore) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource: A question may +// have multiple answers from varying sources, one of which becomes the "main" +// answer above. AnswerSource represents each individual answer. +type GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource struct { + // AnswerValue: The answer value from this source. + AnswerValue *GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue `json:"answerValue,omitempty"` + // SourceType: What created the answer. + // + // Possible values: + // "SOURCE_TYPE_UNSPECIFIED" - Source type is unspecified. + // "SYSTEM_GENERATED" - Answer was system-generated; created during an + // Insights analysis. + // "MANUAL_EDIT" - Answer was created by a human via manual edit. + SourceType string `json:"sourceType,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerValue") 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. "AnswerValue") 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 GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue: Message for +// holding the value of the answer. QaQuestion.AnswerChoice defines the +// possible answer values for a question. +type GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue struct { + // BoolValue: Boolean value. + BoolValue bool `json:"boolValue,omitempty"` + // Key: A short string used as an identifier. Matches the value used in + // QaQuestion.AnswerChoice.key. + Key string `json:"key,omitempty"` + // NaValue: A value of "Not Applicable (N/A)". + NaValue bool `json:"naValue,omitempty"` + // NumValue: Numerical value. + NumValue float64 `json:"numValue,omitempty"` + // Score: Numerical score of the answer. + Score float64 `json:"score,omitempty"` + // StrValue: String value. + StrValue string `json:"strValue,omitempty"` + // ForceSendFields is a list of field names (e.g. "BoolValue") 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. "BoolValue") 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 GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue + var s1 struct { + NumValue gensupport.JSONFloat64 `json:"numValue"` + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.NumValue = float64(s1.NumValue) + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult: The results of +// scoring a single conversation against a QaScorecard. Contains a collection +// of QaAnswers and aggregate score. +type GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult struct { + // AgentId: ID of the agent that handled the conversation. + AgentId string `json:"agentId,omitempty"` + // Conversation: The conversation scored by this result. + Conversation string `json:"conversation,omitempty"` + // CreateTime: Output only. The timestamp that the revision was created. + CreateTime string `json:"createTime,omitempty"` + // Name: Identifier. The name of the scorecard result. Format: + // projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_resu + // lt} + Name string `json:"name,omitempty"` + // NormalizedScore: The normalized score, which is the score divided by the + // potential score. Any manual edits are included if they exist. + NormalizedScore float64 `json:"normalizedScore,omitempty"` + // PotentialScore: The maximum potential overall score of the scorecard. Any + // questions answered using `na_value` are excluded from this calculation. + PotentialScore float64 `json:"potentialScore,omitempty"` + // QaAnswers: Set of QaAnswers represented in the result. + QaAnswers []*GoogleCloudContactcenterinsightsV1alpha1QaAnswer `json:"qaAnswers,omitempty"` + // QaScorecardRevision: The QaScorecardRevision scored by this result. + QaScorecardRevision string `json:"qaScorecardRevision,omitempty"` + // QaTagResults: Collection of tags and their scores. + QaTagResults []*GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult `json:"qaTagResults,omitempty"` + // Score: The overall numerical score of the result, incorporating any manual + // edits if they exist. + Score float64 `json:"score,omitempty"` + // ScoreSources: List of all individual score sets. + ScoreSources []*GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource `json:"scoreSources,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentId") 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. "AgentId") 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 GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult + var s1 struct { + NormalizedScore gensupport.JSONFloat64 `json:"normalizedScore"` + PotentialScore gensupport.JSONFloat64 `json:"potentialScore"` + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.NormalizedScore = float64(s1.NormalizedScore) + s.PotentialScore = float64(s1.PotentialScore) + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult: Tags +// and their corresponding results. +type GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult struct { + // NormalizedScore: The normalized score the tag applies to. + NormalizedScore float64 `json:"normalizedScore,omitempty"` + // PotentialScore: The potential score the tag applies to. + PotentialScore float64 `json:"potentialScore,omitempty"` + // Score: The score the tag applies to. + Score float64 `json:"score,omitempty"` + // Tag: The tag the score applies to. + Tag string `json:"tag,omitempty"` + // ForceSendFields is a list of field names (e.g. "NormalizedScore") 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. "NormalizedScore") 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 GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult + var s1 struct { + NormalizedScore gensupport.JSONFloat64 `json:"normalizedScore"` + PotentialScore gensupport.JSONFloat64 `json:"potentialScore"` + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.NormalizedScore = float64(s1.NormalizedScore) + s.PotentialScore = float64(s1.PotentialScore) + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource: A +// scorecard result may have multiple sets of scores from varying sources, one +// of which becomes the "main" answer above. A ScoreSource represents each +// individual set of scores. +type GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource struct { + // NormalizedScore: The normalized score, which is the score divided by the + // potential score. + NormalizedScore float64 `json:"normalizedScore,omitempty"` + // PotentialScore: The maximum potential overall score of the scorecard. Any + // questions answered using `na_value` are excluded from this calculation. + PotentialScore float64 `json:"potentialScore,omitempty"` + // QaTagResults: Collection of tags and their scores. + QaTagResults []*GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult `json:"qaTagResults,omitempty"` + // Score: The overall numerical score of the result. + Score float64 `json:"score,omitempty"` + // SourceType: What created the score. + // + // Possible values: + // "SOURCE_TYPE_UNSPECIFIED" - Source type is unspecified. + // "SYSTEM_GENERATED_ONLY" - Score is derived only from system-generated + // answers. + // "INCLUDES_MANUAL_EDITS" - Score is derived from both system-generated + // answers, and includes any manual edits if they exist. + SourceType string `json:"sourceType,omitempty"` + // ForceSendFields is a list of field names (e.g. "NormalizedScore") 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. "NormalizedScore") 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 GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource + var s1 struct { + NormalizedScore gensupport.JSONFloat64 `json:"normalizedScore"` + PotentialScore gensupport.JSONFloat64 `json:"potentialScore"` + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.NormalizedScore = float64(s1.NormalizedScore) + s.PotentialScore = float64(s1.PotentialScore) + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata: The metadata +// from querying metrics. +type GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse: The response +// for querying metrics. +type GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse struct { + // Location: Required. The location of the data. + // "projects/{project}/locations/{location}" + Location string `json:"location,omitempty"` + // MacroAverageSlice: The macro average slice contains aggregated averages + // across the selected dimension. i.e. if group_by agent is specified this + // field will contain the average across all agents. This field is only + // populated if the request specifies a Dimension. + MacroAverageSlice *GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice `json:"macroAverageSlice,omitempty"` + // Slices: A slice contains a total and (if the request specified a time + // granularity) a time series of metric values. Each slice contains a unique + // combination of the cardinality of dimensions from the request. + Slices []*GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice `json:"slices,omitempty"` + // UpdateTime: The metrics last update time. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "Location") 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. "Location") 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 GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice: A slice +// contains a total and (if the request specified a time granularity) a time +// series of metric values. Each slice contains a unique combination of the +// cardinality of dimensions from the request. For example, if the request +// specifies a single ISSUE dimension and it has a cardinality of 2 (i.e. the +// data used to compute the metrics has 2 issues in total), the response will +// have 2 slices: * Slice 1 -> dimensions=[Issue 1] * Slice 2 -> +// dimensions=[Issue 2] +type GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice struct { + // Dimensions: A unique combination of dimensions that this slice represents. + Dimensions []*GoogleCloudContactcenterinsightsV1alpha1Dimension `json:"dimensions,omitempty"` + // TimeSeries: A time series of metric values. This is only populated if the + // request specifies a time granularity other than NONE. + TimeSeries *GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries `json:"timeSeries,omitempty"` + // Total: The total metric value. The interval of this data point is [starting + // create time, ending create time) from the request. + Total *GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint `json:"total,omitempty"` + // ForceSendFields is a list of field names (e.g. "Dimensions") 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. "Dimensions") 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 GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint: +// A data point contains the metric values mapped to an interval. +type GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint struct { + // ConversationMeasure: The measure related to conversations. + ConversationMeasure *GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure `json:"conversationMeasure,omitempty"` + // Interval: The interval that this data point represents. * If this is the + // total data point, the interval is [starting create time, ending create time) + // from the request. * If this a data point from the time series, the interval + // is [time, time + time granularity from the request). + Interval *GoogleTypeInterval `json:"interval,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConversationMeasure") 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. "ConversationMeasure") 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 GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointCon +// versationMeasure: The measure related to conversations. +type GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure struct { + // AverageAgentSentimentScore: The average agent's sentiment score. + AverageAgentSentimentScore float64 `json:"averageAgentSentimentScore,omitempty"` + // AverageClientSentimentScore: The average client's sentiment score. + AverageClientSentimentScore float64 `json:"averageClientSentimentScore,omitempty"` + // AverageCustomerSatisfactionRating: The average customer satisfaction rating. + AverageCustomerSatisfactionRating float64 `json:"averageCustomerSatisfactionRating,omitempty"` + // AverageDuration: The average duration. + AverageDuration string `json:"averageDuration,omitempty"` + // AverageQaNormalizedScore: Average QA normalized score. Will exclude 0's in + // average calculation. + AverageQaNormalizedScore float64 `json:"averageQaNormalizedScore,omitempty"` + // AverageQaQuestionNormalizedScore: Average QA normalized score averaged for + // questions averaged across all revisions of the parent scorecard. Will be + // only populated if the request specifies a dimension of QA_QUESTION_ID. + AverageQaQuestionNormalizedScore float64 `json:"averageQaQuestionNormalizedScore,omitempty"` + // AverageSilencePercentage: The average silence percentage. + AverageSilencePercentage float64 `json:"averageSilencePercentage,omitempty"` + // AverageTurnCount: The average turn count. + AverageTurnCount float64 `json:"averageTurnCount,omitempty"` + // ConversationCount: The conversation count. + ConversationCount int64 `json:"conversationCount,omitempty"` + // QaTagScores: Average QA normalized score for all the tags. + QaTagScores []*GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore `json:"qaTagScores,omitempty"` + // ForceSendFields is a list of field names (e.g. "AverageAgentSentimentScore") + // 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. "AverageAgentSentimentScore") 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 GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure + var s1 struct { + AverageAgentSentimentScore gensupport.JSONFloat64 `json:"averageAgentSentimentScore"` + AverageClientSentimentScore gensupport.JSONFloat64 `json:"averageClientSentimentScore"` + AverageCustomerSatisfactionRating gensupport.JSONFloat64 `json:"averageCustomerSatisfactionRating"` + AverageQaNormalizedScore gensupport.JSONFloat64 `json:"averageQaNormalizedScore"` + AverageQaQuestionNormalizedScore gensupport.JSONFloat64 `json:"averageQaQuestionNormalizedScore"` + AverageSilencePercentage gensupport.JSONFloat64 `json:"averageSilencePercentage"` + AverageTurnCount gensupport.JSONFloat64 `json:"averageTurnCount"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AverageAgentSentimentScore = float64(s1.AverageAgentSentimentScore) + s.AverageClientSentimentScore = float64(s1.AverageClientSentimentScore) + s.AverageCustomerSatisfactionRating = float64(s1.AverageCustomerSatisfactionRating) + s.AverageQaNormalizedScore = float64(s1.AverageQaNormalizedScore) + s.AverageQaQuestionNormalizedScore = float64(s1.AverageQaQuestionNormalizedScore) + s.AverageSilencePercentage = float64(s1.AverageSilencePercentage) + s.AverageTurnCount = float64(s1.AverageTurnCount) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointCon +// versationMeasureQaTagScore: Average QA normalized score for the tag. +type GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore struct { + // AverageTagNormalizedScore: Average tag normalized score per tag. + AverageTagNormalizedScore float64 `json:"averageTagNormalizedScore,omitempty"` + // Tag: Tag name. + Tag string `json:"tag,omitempty"` + // ForceSendFields is a list of field names (e.g. "AverageTagNormalizedScore") + // 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. "AverageTagNormalizedScore") 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 GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore + var s1 struct { + AverageTagNormalizedScore gensupport.JSONFloat64 `json:"averageTagNormalizedScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AverageTagNormalizedScore = float64(s1.AverageTagNormalizedScore) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries: +// A time series of metric values. +type GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries struct { + // DataPoints: The data points that make up the time series . + DataPoints []*GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint `json:"dataPoints,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataPoints") 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. "DataPoints") 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 GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1RedactionConfig: DLP resources used +// for redaction while ingesting conversations. DLP settings are applied to +// conversations ingested from the `UploadConversation` and +// `IngestConversations` endpoints, including conversation coming from CCAI +// Platform. They are not applied to conversations ingested from the +// `CreateConversation` endpoint or the Dialogflow / Agent Assist runtime +// integrations. When using Dialogflow / Agent Assist runtime integrations, +// redaction should be performed in Dialogflow / Agent Assist. +type GoogleCloudContactcenterinsightsV1alpha1RedactionConfig struct { + // DeidentifyTemplate: The fully-qualified DLP deidentify template resource + // name. Format: `projects/{project}/deidentifyTemplates/{template}` + DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"` + // InspectTemplate: The fully-qualified DLP inspect template resource name. + // Format: + // `projects/{project}/locations/{location}/inspectTemplates/{template}` + InspectTemplate string `json:"inspectTemplate,omitempty"` + // ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") 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. "DeidentifyTemplate") 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 GoogleCloudContactcenterinsightsV1alpha1RedactionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1RedactionConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation: An annotation +// that was generated during the customer and agent interaction. +type GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation struct { + // AnnotationId: The unique identifier of the annotation. Format: + // projects/{project}/locations/{location}/conversationDatasets/{dataset}/conver + // sationDataItems/{data_item}/conversationAnnotations/{annotation} + AnnotationId string `json:"annotationId,omitempty"` + // AnswerFeedback: The feedback that the customer has about the answer in + // `data`. + AnswerFeedback *GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback `json:"answerFeedback,omitempty"` + // ArticleSuggestion: Agent Assist Article Suggestion data. + ArticleSuggestion *GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData `json:"articleSuggestion,omitempty"` + // ConversationSummarizationSuggestion: Conversation summarization suggestion + // data. + ConversationSummarizationSuggestion *GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData `json:"conversationSummarizationSuggestion,omitempty"` + // CreateTime: The time at which this annotation was created. + CreateTime string `json:"createTime,omitempty"` + // DialogflowInteraction: Dialogflow interaction data. + DialogflowInteraction *GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData `json:"dialogflowInteraction,omitempty"` + // EndBoundary: The boundary in the conversation where the annotation ends, + // inclusive. + EndBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"endBoundary,omitempty"` + // FaqAnswer: Agent Assist FAQ answer data. + FaqAnswer *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData `json:"faqAnswer,omitempty"` + // SmartComposeSuggestion: Agent Assist Smart Compose suggestion data. + SmartComposeSuggestion *GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData `json:"smartComposeSuggestion,omitempty"` + // SmartReply: Agent Assist Smart Reply data. + SmartReply *GoogleCloudContactcenterinsightsV1alpha1SmartReplyData `json:"smartReply,omitempty"` + // StartBoundary: The boundary in the conversation where the annotation starts, + // inclusive. + StartBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"startBoundary,omitempty"` + // UserInput: Explicit input used for generating the answer + UserInput *GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput `json:"userInput,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnnotationId") 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. "AnnotationId") 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 GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput: Explicit +// input used for generating the answer +type GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput struct { + // GeneratorName: The resource name of associated generator. Format: + // `projects//locations//generators/` + GeneratorName string `json:"generatorName,omitempty"` + // Query: Query text. Article Search uses this to store the input query used to + // generate the search results. + Query string `json:"query,omitempty"` + // QuerySource: Query source for the answer. + // + // Possible values: + // "QUERY_SOURCE_UNSPECIFIED" - Unknown query source. + // "AGENT_QUERY" - The query is from agents. + // "SUGGESTED_QUERY" - The query is a query from previous suggestions, e.g. + // from a preceding SuggestKnowledgeAssist response. + QuerySource string `json:"querySource,omitempty"` + // ForceSendFields is a list of field names (e.g. "GeneratorName") 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. "GeneratorName") 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 GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1SentimentData: The data for a +// sentiment annotation. +type GoogleCloudContactcenterinsightsV1alpha1SentimentData struct { + // Magnitude: A non-negative number from 0 to infinity which represents the + // abolute magnitude of sentiment regardless of score. + Magnitude float64 `json:"magnitude,omitempty"` + // Score: The sentiment score between -1.0 (negative) and 1.0 (positive). + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "Magnitude") 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. "Magnitude") 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 GoogleCloudContactcenterinsightsV1alpha1SentimentData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SentimentData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1SentimentData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SentimentData + var s1 struct { + Magnitude gensupport.JSONFloat64 `json:"magnitude"` + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Magnitude = float64(s1.Magnitude) + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1SilenceData: The data for a silence +// annotation. +type GoogleCloudContactcenterinsightsV1alpha1SilenceData struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData: Agent +// Assist Smart Compose suggestion data. +type GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData struct { + // ConfidenceScore: The system's confidence score that this suggestion is a + // good match for this conversation, ranging from 0.0 (completely uncertain) to + // 1.0 (completely certain). + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // Metadata: Map that contains metadata about the Smart Compose suggestion and + // the document from which it originates. + Metadata map[string]string `json:"metadata,omitempty"` + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} + QueryRecord string `json:"queryRecord,omitempty"` + // Suggestion: The content of the suggestion. + Suggestion string `json:"suggestion,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") 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. "ConfidenceScore") 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 GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1SmartReplyData: Agent Assist Smart +// Reply data. +type GoogleCloudContactcenterinsightsV1alpha1SmartReplyData struct { + // ConfidenceScore: The system's confidence score that this reply is a good + // match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 + // (completely certain). + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // Metadata: Map that contains metadata about the Smart Reply and the document + // from which it originates. + Metadata map[string]string `json:"metadata,omitempty"` + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} + QueryRecord string `json:"queryRecord,omitempty"` + // Reply: The content of the reply. + Reply string `json:"reply,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") 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. "ConfidenceScore") 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 GoogleCloudContactcenterinsightsV1alpha1SmartReplyData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartReplyData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1SmartReplyData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartReplyData + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1SpeechConfig: Speech-to-Text +// configuration. Speech-to-Text settings are applied to conversations ingested +// from the `UploadConversation` and `IngestConversations` endpoints, including +// conversation coming from CCAI Platform. They are not applied to +// conversations ingested from the `CreateConversation` endpoint. +type GoogleCloudContactcenterinsightsV1alpha1SpeechConfig struct { + // SpeechRecognizer: The fully-qualified Speech Recognizer resource name. + // Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + SpeechRecognizer string `json:"speechRecognizer,omitempty"` + // ForceSendFields is a list of field names (e.g. "SpeechRecognizer") 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. "SpeechRecognizer") 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 GoogleCloudContactcenterinsightsV1alpha1SpeechConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SpeechConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata: Metadata +// for undeploying an issue model. +type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // Request: The original request for undeployment. + Request *GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest: The +// request to undeploy an issue model. +type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest struct { + // Name: Required. The issue model to undeploy. + 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 GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelResponse: The +// response to undeploy an issue model. +type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelResponse struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata: The +// metadata for an `UploadConversation` operation. +type GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata struct { + // AnalysisOperation: Output only. The operation name for a successfully + // created analysis operation, if any. + AnalysisOperation string `json:"analysisOperation,omitempty"` + // AppliedRedactionConfig: Output only. The redaction config applied to the + // uploaded conversation. + AppliedRedactionConfig *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig `json:"appliedRedactionConfig,omitempty"` + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // Request: Output only. The original request. + Request *GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnalysisOperation") 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. "AnalysisOperation") 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 GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest: Request +// to upload a conversation. +type GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest struct { + // Conversation: Required. The conversation resource to create. + Conversation *GoogleCloudContactcenterinsightsV1alpha1Conversation `json:"conversation,omitempty"` + // ConversationId: Optional. A unique ID for the new conversation. This ID will + // become the final component of the conversation's resource name. If no ID is + // specified, a server-generated ID will be used. This value should be 4-64 + // characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid + // characters are `a-z-` + ConversationId string `json:"conversationId,omitempty"` + // Parent: Required. The parent resource of the conversation. + Parent string `json:"parent,omitempty"` + // RedactionConfig: Optional. DLP settings for transcript redaction. Will + // default to the config specified in Settings. + RedactionConfig *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig `json:"redactionConfig,omitempty"` + // SpeechConfig: Optional. Speech-to-Text configuration. Will default to the + // config specified in Settings. + SpeechConfig *GoogleCloudContactcenterinsightsV1alpha1SpeechConfig `json:"speechConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "Conversation") 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. "Conversation") 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 GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1AuditConfig: Specifies the audit configuration for a service. The +// configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. An AuditConfig must have one +// or more AuditLogConfigs. If there are AuditConfigs for both `allServices` +// and a specific service, the union of the two AuditConfigs is used for that +// service: the log_types specified in each AuditConfig are enabled, and the +// exempted_members in each AuditLogConfig are exempted. Example Policy with +// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ +// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": +// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": +// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For +// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts `jose@example.com` from DATA_READ logging, and +// `aliya@example.com` from DATA_WRITE logging. +type GoogleIamV1AuditConfig struct { + // AuditLogConfigs: The configuration for logging of each type of permission. + AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"` + // Service: Specifies a service that will be enabled for audit logging. For + // example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` + // is a special value that covers all services. + Service string `json:"service,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") 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. "AuditLogConfigs") 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 GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1AuditConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1AuditLogConfig: Provides the configuration for logging a type of +// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", +// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": +// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +// exempting jose@example.com from DATA_READ logging. +type GoogleIamV1AuditLogConfig struct { + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of permission. Follows the same format of Binding.members. + ExemptedMembers []string `json:"exemptedMembers,omitempty"` + // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list + LogType string `json:"logType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExemptedMembers") 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. "ExemptedMembers") 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 GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1AuditLogConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1Binding: Associates `members`, or principals, with a `role`. +type GoogleIamV1Binding struct { + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the current + // request. If the condition evaluates to `false`, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the principals in this binding. To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Condition *GoogleTypeExpr `json:"condition,omitempty"` + // Members: Specifies the principals requesting access for a Google Cloud + // resource. `members` can have the following values: * `allUsers`: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. * `allAuthenticatedUsers`: A special identifier that + // represents anyone who is authenticated with a Google account or a service + // account. Does not include identities that come from external identity + // providers (IdPs) through identity federation. * `user:{emailid}`: An email + // address that represents a specific Google account. For example, + // `alice@example.com` . * `serviceAccount:{emailid}`: An email address that + // represents a Google service account. For example, + // `my-other-app@appspot.gserviceaccount.com`. * + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An + // identifier for a Kubernetes service account + // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * + // `group:{emailid}`: An email address that represents a Google group. For + // example, `admins@example.com`. * `domain:{domain}`: The G Suite domain + // (primary) that represents all the users of that domain. For example, + // `google.com` or `example.com`. * + // `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub + // ject/{subject_attribute_value}`: A single identity in a workforce identity + // pool. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ + // group/{group_id}`: All workforce identities in a group. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ + // attribute.{attribute_name}/{attribute_value}`: All workforce identities with + // a specific attribute value. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/ + // *`: All identities in a workforce identity pool. * + // `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo + // rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single + // identity in a workload identity pool. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global + // /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool + // group. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global + // /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value} + // `: All identities in a workload identity pool with a certain attribute. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations/global + // /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity + // pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a user that has been recently deleted. For + // example, `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered user + // retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a service account that has been recently + // deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the + // service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email + // address (plus unique identifier) representing a Google group that has been + // recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is recovered, + // this value reverts to `group:{emailid}` and the recovered group retains the + // role in the binding. * + // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool + // _id}/subject/{subject_attribute_value}`: Deleted single identity in a + // workforce identity pool. For example, + // `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po + // ol-id/subject/my-subject-attribute-value`. + Members []string `json:"members,omitempty"` + // Role: Role that is assigned to the list of `members`, or principals. For + // example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview + // of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). + Role string `json:"role,omitempty"` + // ForceSendFields is a list of field names (e.g. "Condition") 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. "Condition") 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 GoogleIamV1Binding) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1Binding + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1Policy: An Identity and Access Management (IAM) policy, which +// specifies access controls for Google Cloud resources. A `Policy` is a +// collection of `bindings`. A `binding` binds one or more `members`, or +// principals, to a single `role`. Principals can be user accounts, service +// accounts, Google groups, and domains (such as G Suite). A `role` is a named +// list of permissions; each `role` can be an IAM predefined role or a +// user-created custom role. For some types of Google Cloud resources, a +// `binding` can also specify a `condition`, which is a logical expression that +// allows access to a resource only if the expression evaluates to `true`. A +// condition can add constraints based on attributes of the request, the +// resource, or both. To learn which resources support conditions in their IAM +// policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** ``` { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com +// role: roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access after +// Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +// etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, +// see the IAM documentation (https://cloud.google.com/iam/docs/). +type GoogleIamV1Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this policy. + AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"` + // Bindings: Associates a list of `members`, or principals, with a `role`. + // Optionally, may specify a `condition` that determines how and when the + // `bindings` are applied. Each of the `bindings` must contain at least one + // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; + // up to 250 of these principals can be Google groups. Each occurrence of a + // principal counts towards these limits. For example, if the `bindings` grant + // 50 different roles to `user:alice@example.com`, and not to any other + // principal, then you can add another 1,450 principals to the `bindings` in + // the `Policy`. + Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"` + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AuditConfigs") 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. "AuditConfigs") 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 GoogleIamV1Policy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1Policy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type GoogleIamV1SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Google Cloud services (such as Projects) might reject + // them. + Policy *GoogleIamV1Policy `json:"policy,omitempty"` + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only the fields in the mask will be modified. If no mask is + // provided, the following default mask is used: `paths: "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + // ForceSendFields is a list of field names (e.g. "Policy") 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. "Policy") 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 GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1SetIamPolicyRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1TestIamPermissionsRequest: Request message for +// `TestIamPermissions` method. +type GoogleIamV1TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. Permissions + // with wildcards (such as `*` or `storage.*`) are not allowed. For more + // information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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 GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1TestIamPermissionsRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleIamV1TestIamPermissionsResponse: Response message for +// `TestIamPermissions` method. +type GoogleIamV1TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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 GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1TestIamPermissionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningListOperationsResponse: The response message for +// Operations.ListOperations. +type GoogleLongrunningListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // Operations: A list of operations that matches the specified filter in the + // request. + Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningListOperationsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningOperation: This resource represents a long-running +// operation that is the result of a network API call. +type GoogleLongrunningOperation struct { + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. + Done bool `json:"done,omitempty"` + // Error: The error result of the operation in case of failure or cancellation. + Error *GoogleRpcStatus `json:"error,omitempty"` + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. + Name string `json:"name,omitempty"` + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as `Delete`, the response is + // `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Done") 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. "Done") 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 GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningOperation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleProtobufEmpty: A generic empty message that you can re-use to avoid +// defining duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For instance: +// service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } +type GoogleProtobufEmpty struct { + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleRpcStatus: 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). +type GoogleRpcStatus struct { + // Code: The status code, which should be an enum value of google.rpc.Code. + Code int64 `json:"code,omitempty"` + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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 GoogleRpcStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleRpcStatus + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleTypeExpr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The syntax and +// semantics of CEL are documented at https://github.com/google/cel-spec. +// Example (Comparison): title: "Summary size limit" description: "Determines +// if a summary is less than 100 chars" expression: "document.summary.size() < +// 100" Example (Equality): title: "Requestor is owner" description: +// "Determines if requestor is the document owner" expression: "document.owner +// == request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional +// information. +type GoogleTypeExpr struct { + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. + Description string `json:"description,omitempty"` + // Expression: Textual representation of an expression in Common Expression + // Language syntax. + Expression string `json:"expression,omitempty"` + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. + Title string `json:"title,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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 GoogleTypeExpr) MarshalJSON() ([]byte, error) { + type NoMethod GoogleTypeExpr + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleTypeInterval: Represents a time interval, encoded as a Timestamp start +// (inclusive) and a Timestamp end (exclusive). The start must be less than or +// equal to the end. When the start equals the end, the interval is empty +// (matches no time). When both start and end are unspecified, the interval +// matches any time. +type GoogleTypeInterval struct { + // EndTime: Optional. Exclusive end of the interval. If specified, a Timestamp + // matching this interval will have to be before the end. + EndTime string `json:"endTime,omitempty"` + // StartTime: Optional. Inclusive start of the interval. If specified, a + // Timestamp matching this interval will have to be the same or after the + // start. + StartTime string `json:"startTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndTime") 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. "EndTime") 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 GoogleTypeInterval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleTypeInterval + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type ProjectsLocationsBulkDownloadFeedbackLabelsCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1bulkdownloadfeedbacklabelsrequest *GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BulkDownloadFeedbackLabels: Download feedback labels in bulk. +// +// - parent: The parent resource for new feedback labels. +func (r *ProjectsLocationsService) BulkDownloadFeedbackLabels(parent string, googlecloudcontactcenterinsightsv1bulkdownloadfeedbacklabelsrequest *GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest) *ProjectsLocationsBulkDownloadFeedbackLabelsCall { + c := &ProjectsLocationsBulkDownloadFeedbackLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1bulkdownloadfeedbacklabelsrequest = googlecloudcontactcenterinsightsv1bulkdownloadfeedbacklabelsrequest + 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 *ProjectsLocationsBulkDownloadFeedbackLabelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsBulkDownloadFeedbackLabelsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBulkDownloadFeedbackLabelsCall) Context(ctx context.Context) *ProjectsLocationsBulkDownloadFeedbackLabelsCall { + 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 *ProjectsLocationsBulkDownloadFeedbackLabelsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBulkDownloadFeedbackLabelsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1bulkdownloadfeedbacklabelsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:bulkDownloadFeedbackLabels") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.bulkDownloadFeedbackLabels" 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 *ProjectsLocationsBulkDownloadFeedbackLabelsCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBulkUploadFeedbackLabelsCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1bulkuploadfeedbacklabelsrequest *GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BulkUploadFeedbackLabels: Upload feedback labels in bulk. +// +// - parent: The parent resource for new feedback labels. +func (r *ProjectsLocationsService) BulkUploadFeedbackLabels(parent string, googlecloudcontactcenterinsightsv1bulkuploadfeedbacklabelsrequest *GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest) *ProjectsLocationsBulkUploadFeedbackLabelsCall { + c := &ProjectsLocationsBulkUploadFeedbackLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1bulkuploadfeedbacklabelsrequest = googlecloudcontactcenterinsightsv1bulkuploadfeedbacklabelsrequest + 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 *ProjectsLocationsBulkUploadFeedbackLabelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsBulkUploadFeedbackLabelsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBulkUploadFeedbackLabelsCall) Context(ctx context.Context) *ProjectsLocationsBulkUploadFeedbackLabelsCall { + 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 *ProjectsLocationsBulkUploadFeedbackLabelsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBulkUploadFeedbackLabelsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1bulkuploadfeedbacklabelsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:bulkUploadFeedbackLabels") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.bulkUploadFeedbackLabels" 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 *ProjectsLocationsBulkUploadFeedbackLabelsCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsGetEncryptionSpecCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetEncryptionSpec: Gets location-level encryption key specification. +// +// - name: The name of the encryption spec resource to get. +func (r *ProjectsLocationsService) GetEncryptionSpec(name string) *ProjectsLocationsGetEncryptionSpecCall { + c := &ProjectsLocationsGetEncryptionSpecCall{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 *ProjectsLocationsGetEncryptionSpecCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetEncryptionSpecCall { + 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 *ProjectsLocationsGetEncryptionSpecCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetEncryptionSpecCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGetEncryptionSpecCall) Context(ctx context.Context) *ProjectsLocationsGetEncryptionSpecCall { + 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 *ProjectsLocationsGetEncryptionSpecCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetEncryptionSpecCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.getEncryptionSpec" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1EncryptionSpec.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 *ProjectsLocationsGetEncryptionSpecCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1EncryptionSpec, 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 := &GoogleCloudContactcenterinsightsV1EncryptionSpec{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsGetSettingsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetSettings: Gets project-level settings. +// +// - name: The name of the settings resource to get. +func (r *ProjectsLocationsService) GetSettings(name string) *ProjectsLocationsGetSettingsCall { + c := &ProjectsLocationsGetSettingsCall{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 *ProjectsLocationsGetSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetSettingsCall { + 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 *ProjectsLocationsGetSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetSettingsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGetSettingsCall) Context(ctx context.Context) *ProjectsLocationsGetSettingsCall { + 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 *ProjectsLocationsGetSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetSettingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.getSettings" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1Settings.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 *ProjectsLocationsGetSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Settings, 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 := &GoogleCloudContactcenterinsightsV1Settings{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsListAllFeedbackLabelsCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListAllFeedbackLabels: List all feedback labels by project number. +// +// - parent: The parent resource of all feedback labels per project. +func (r *ProjectsLocationsService) ListAllFeedbackLabels(parent string) *ProjectsLocationsListAllFeedbackLabelsCall { + c := &ProjectsLocationsListAllFeedbackLabelsCall{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 in the entire project. Supports disjunctions (OR) and +// conjunctions (AND). Supported fields: * `issue_model_id` * `qa_question_id` +// * `min_create_time` * `max_create_time` * `min_update_time` * +// `max_update_time` * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING +func (c *ProjectsLocationsListAllFeedbackLabelsCall) Filter(filter string) *ProjectsLocationsListAllFeedbackLabelsCall { + 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 *ProjectsLocationsListAllFeedbackLabelsCall) PageSize(pageSize int64) *ProjectsLocationsListAllFeedbackLabelsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListAllFeedbackLabelsResponse`. This value indicates that this is a +// continuation of a prior `ListAllFeedbackLabels` call and that the system +// should return the next page of data. +func (c *ProjectsLocationsListAllFeedbackLabelsCall) PageToken(pageToken string) *ProjectsLocationsListAllFeedbackLabelsCall { + 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 *ProjectsLocationsListAllFeedbackLabelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsListAllFeedbackLabelsCall { + 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 *ProjectsLocationsListAllFeedbackLabelsCall) IfNoneMatch(entityTag string) *ProjectsLocationsListAllFeedbackLabelsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsListAllFeedbackLabelsCall) Context(ctx context.Context) *ProjectsLocationsListAllFeedbackLabelsCall { + 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 *ProjectsLocationsListAllFeedbackLabelsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListAllFeedbackLabelsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:listAllFeedbackLabels") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.listAllFeedbackLabels" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse.ServerRespon +// se.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 *ProjectsLocationsListAllFeedbackLabelsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse, 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 := &GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 *ProjectsLocationsListAllFeedbackLabelsCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse) 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 ProjectsLocationsQueryMetricsCall struct { + s *Service + location string + googlecloudcontactcenterinsightsv1querymetricsrequest *GoogleCloudContactcenterinsightsV1QueryMetricsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// QueryMetrics: Query metrics. +// +// - location: The location of the data. +// "projects/{project}/locations/{location}". +func (r *ProjectsLocationsService) QueryMetrics(location string, googlecloudcontactcenterinsightsv1querymetricsrequest *GoogleCloudContactcenterinsightsV1QueryMetricsRequest) *ProjectsLocationsQueryMetricsCall { + c := &ProjectsLocationsQueryMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.googlecloudcontactcenterinsightsv1querymetricsrequest = googlecloudcontactcenterinsightsv1querymetricsrequest + 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 *ProjectsLocationsQueryMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsQueryMetricsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsQueryMetricsCall) Context(ctx context.Context) *ProjectsLocationsQueryMetricsCall { + 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 *ProjectsLocationsQueryMetricsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsQueryMetricsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1querymetricsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:queryMetrics") + 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{ + "location": c.location, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.queryMetrics" 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 *ProjectsLocationsQueryMetricsCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsUpdateSettingsCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1settings *GoogleCloudContactcenterinsightsV1Settings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateSettings: Updates project-level settings. +// +// - name: Immutable. The resource name of the settings resource. Format: +// projects/{project}/locations/{location}/settings. +func (r *ProjectsLocationsService) UpdateSettings(name string, googlecloudcontactcenterinsightsv1settings *GoogleCloudContactcenterinsightsV1Settings) *ProjectsLocationsUpdateSettingsCall { + c := &ProjectsLocationsUpdateSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudcontactcenterinsightsv1settings = googlecloudcontactcenterinsightsv1settings + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The list of +// fields to be updated. +func (c *ProjectsLocationsUpdateSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateSettingsCall { + 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 *ProjectsLocationsUpdateSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateSettingsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsUpdateSettingsCall) Context(ctx context.Context) *ProjectsLocationsUpdateSettingsCall { + 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 *ProjectsLocationsUpdateSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsUpdateSettingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1settings) + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.updateSettings" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1Settings.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 *ProjectsLocationsUpdateSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Settings, 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 := &GoogleCloudContactcenterinsightsV1Settings{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAnalysisRulesCreateCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1analysisrule *GoogleCloudContactcenterinsightsV1AnalysisRule + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a analysis rule. +// +// - parent: The parent resource of the analysis rule. Required. The location +// to create a analysis rule for. Format: `projects//locations/` or +// `projects//locations/`. +func (r *ProjectsLocationsAnalysisRulesService) Create(parent string, googlecloudcontactcenterinsightsv1analysisrule *GoogleCloudContactcenterinsightsV1AnalysisRule) *ProjectsLocationsAnalysisRulesCreateCall { + c := &ProjectsLocationsAnalysisRulesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1analysisrule = googlecloudcontactcenterinsightsv1analysisrule + 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 *ProjectsLocationsAnalysisRulesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnalysisRulesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAnalysisRulesCreateCall) Context(ctx context.Context) *ProjectsLocationsAnalysisRulesCreateCall { + 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 *ProjectsLocationsAnalysisRulesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAnalysisRulesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1analysisrule) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analysisRules") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.analysisRules.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1AnalysisRule.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 *ProjectsLocationsAnalysisRulesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1AnalysisRule, 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 := &GoogleCloudContactcenterinsightsV1AnalysisRule{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAnalysisRulesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a analysis rule. +// +// - name: The name of the analysis rule to delete. +func (r *ProjectsLocationsAnalysisRulesService) Delete(name string) *ProjectsLocationsAnalysisRulesDeleteCall { + c := &ProjectsLocationsAnalysisRulesDeleteCall{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 *ProjectsLocationsAnalysisRulesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnalysisRulesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAnalysisRulesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAnalysisRulesDeleteCall { + 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 *ProjectsLocationsAnalysisRulesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAnalysisRulesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.analysisRules.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 *ProjectsLocationsAnalysisRulesDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAnalysisRulesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a analysis rule. +// +// - name: The name of the AnalysisRule to get. +func (r *ProjectsLocationsAnalysisRulesService) Get(name string) *ProjectsLocationsAnalysisRulesGetCall { + c := &ProjectsLocationsAnalysisRulesGetCall{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 *ProjectsLocationsAnalysisRulesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnalysisRulesGetCall { + 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 *ProjectsLocationsAnalysisRulesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnalysisRulesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAnalysisRulesGetCall) Context(ctx context.Context) *ProjectsLocationsAnalysisRulesGetCall { + 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 *ProjectsLocationsAnalysisRulesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAnalysisRulesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.analysisRules.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1AnalysisRule.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 *ProjectsLocationsAnalysisRulesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1AnalysisRule, 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 := &GoogleCloudContactcenterinsightsV1AnalysisRule{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAnalysisRulesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists analysis rules. +// +// - parent: The parent resource of the analysis rules. +func (r *ProjectsLocationsAnalysisRulesService) List(parent string) *ProjectsLocationsAnalysisRulesListCall { + c := &ProjectsLocationsAnalysisRulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// analysis rule to return in the response. If this value is zero, the service +// will select a default size. A call may return fewer objects than requested. +// A non-empty `next_page_token` in the response indicates that more data is +// available. +func (c *ProjectsLocationsAnalysisRulesListCall) PageSize(pageSize int64) *ProjectsLocationsAnalysisRulesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListAnalysisRulesResponse`; indicates that this is a continuation of a +// prior `ListAnalysisRules` call and the system should return the next page of +// data. +func (c *ProjectsLocationsAnalysisRulesListCall) PageToken(pageToken string) *ProjectsLocationsAnalysisRulesListCall { + 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 *ProjectsLocationsAnalysisRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnalysisRulesListCall { + 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 *ProjectsLocationsAnalysisRulesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnalysisRulesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAnalysisRulesListCall) Context(ctx context.Context) *ProjectsLocationsAnalysisRulesListCall { + 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 *ProjectsLocationsAnalysisRulesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAnalysisRulesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analysisRules") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.analysisRules.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse.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 *ProjectsLocationsAnalysisRulesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse, 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 := &GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 *ProjectsLocationsAnalysisRulesListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse) 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 ProjectsLocationsAnalysisRulesPatchCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1analysisrule *GoogleCloudContactcenterinsightsV1AnalysisRule + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a analysis rule. +// +// - name: Identifier. The resource name of the analysis rule. Format: +// projects/{project}/locations/{location}/analysisRules/{analysis_rule}. +func (r *ProjectsLocationsAnalysisRulesService) Patch(name string, googlecloudcontactcenterinsightsv1analysisrule *GoogleCloudContactcenterinsightsV1AnalysisRule) *ProjectsLocationsAnalysisRulesPatchCall { + c := &ProjectsLocationsAnalysisRulesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudcontactcenterinsightsv1analysisrule = googlecloudcontactcenterinsightsv1analysisrule + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. If the update_mask is not provided, the update will be applied +// to all fields. +func (c *ProjectsLocationsAnalysisRulesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAnalysisRulesPatchCall { + 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 *ProjectsLocationsAnalysisRulesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnalysisRulesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAnalysisRulesPatchCall) Context(ctx context.Context) *ProjectsLocationsAnalysisRulesPatchCall { + 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 *ProjectsLocationsAnalysisRulesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAnalysisRulesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1analysisrule) + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.analysisRules.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1AnalysisRule.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 *ProjectsLocationsAnalysisRulesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1AnalysisRule, 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 := &GoogleCloudContactcenterinsightsV1AnalysisRule{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall struct { + s *Service + location string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// CalculateStats: Gets conversation statistics. +// +// - location: The location of the conversations. +func (r *ProjectsLocationsAuthorizedViewSetAuthorizedViewService) CalculateStats(location string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall { + c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + return c +} + +// Filter sets the optional parameter "filter": A filter to reduce results to a +// specific subset. This field is useful for getting statistics about +// conversations with specific properties. +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) Filter(filter string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall { + c.urlParams_.Set("filter", filter) + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:calculateStats") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "location": c.location, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.authorizedView.calculateStats" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1CalculateStatsResponse.ServerResponse.Head +// er 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewCalculateStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1CalculateStatsResponse, 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 := &GoogleCloudContactcenterinsightsV1CalculateStatsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall struct { + s *Service + location string + googlecloudcontactcenterinsightsv1querymetricsrequest *GoogleCloudContactcenterinsightsV1QueryMetricsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// QueryMetrics: Query metrics. +// +// - location: The location of the data. +// "projects/{project}/locations/{location}". +func (r *ProjectsLocationsAuthorizedViewSetAuthorizedViewService) QueryMetrics(location string, googlecloudcontactcenterinsightsv1querymetricsrequest *GoogleCloudContactcenterinsightsV1QueryMetricsRequest) *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall { + c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.googlecloudcontactcenterinsightsv1querymetricsrequest = googlecloudcontactcenterinsightsv1querymetricsrequest + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1querymetricsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:queryMetrics") + 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{ + "location": c.location, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.authorizedView.queryMetrics" 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewQueryMetricsCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService) Create(parent string, googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall { + c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall{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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) FeedbackLabelId(feedbackLabelId string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService) Delete(name string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall { + c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall{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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService) Get(name string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall { + c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall{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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsGetCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService) List(parent string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { + c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall{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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) Filter(filter string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/feedbackLabels") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsListCall) 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 ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsService) Patch(name string, googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall { + c := &ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall{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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall { + 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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSet.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 *ProjectsLocationsAuthorizedViewSetAuthorizedViewsConversationsFeedbackLabelsPatchCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService) GetIamPolicy(resource string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall { + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall { + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall { + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall { + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1TestIamPermissionsResponse.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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, 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 := &GoogleIamV1TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a conversation. Note that this method does not support audio +// transcription or redaction. Use `conversations.upload` instead. +// +// - parent: The parent resource of the conversation. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) Create(parent string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation + return c +} + +// ConversationId sets the optional parameter "conversationId": A unique ID for +// the new conversation. This ID will become the final component of the +// conversation's resource name. If no ID is specified, a server-generated ID +// will be used. This value should be 4-64 characters and must match the +// regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) ConversationId(conversationId string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall { + c.urlParams_.Set("conversationId", conversationId) + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall { + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation) + 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") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.create" 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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_) + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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_) + } + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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_) + } + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a conversation. +// +// - name: Immutable. The resource name of the conversation. Format: +// projects/{project}/locations/{location}/conversations/{conversation}. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) Patch(name string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. All possible fields can be updated by passing `*`, or a subset +// of the following updateable fields can be provided: * `agent_id` * +// `language_code` * `labels` * `metadata` * `quality_metadata` * +// `call_metadata` * `start_time` * `expire_time` or `ttl` * +// `data_source.gcs_source.audio_uri` or +// `data_source.dialogflow_source.audio_uri` +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall { + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall { + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation) + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.patch" 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsPatchCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Upload: Create a long-running conversation upload operation. This method +// differs from `CreateConversation` by allowing audio transcription and +// optional DLP redaction. +// +// - parent: The parent resource of the conversation. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) Upload(parent string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation + return c +} + +// ConversationId sets the optional parameter "conversationId": A unique ID for +// the new conversation. This ID will become the final component of the +// conversation's resource name. If no ID is specified, a server-generated ID +// will be used. This value should be 4-64 characters and must match the +// regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) ConversationId(conversationId string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { + c.urlParams_.Set("conversationId", conversationId) + return c +} + +// RedactionConfigDeidentifyTemplate sets the optional parameter +// "redactionConfig.deidentifyTemplate": The fully-qualified DLP deidentify +// template resource name. Format: +// `projects/{project}/deidentifyTemplates/{template}` +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) RedactionConfigDeidentifyTemplate(redactionConfigDeidentifyTemplate string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { + c.urlParams_.Set("redactionConfig.deidentifyTemplate", redactionConfigDeidentifyTemplate) + return c +} + +// RedactionConfigInspectTemplate sets the optional parameter +// "redactionConfig.inspectTemplate": The fully-qualified DLP inspect template +// resource name. Format: +// `projects/{project}/locations/{location}/inspectTemplates/{template}` +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) RedactionConfigInspectTemplate(redactionConfigInspectTemplate string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { + c.urlParams_.Set("redactionConfig.inspectTemplate", redactionConfigInspectTemplate) + return c +} + +// SpeechConfigSpeechRecognizer sets the optional parameter +// "speechConfig.speechRecognizer": The fully-qualified Speech Recognizer +// resource name. Format: +// `projects/{project_id}/locations/{location}/recognizer/{recognizer}` +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) SpeechConfigSpeechRecognizer(speechConfigSpeechRecognizer string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { + c.urlParams_.Set("speechConfig.speechRecognizer", speechConfigSpeechRecognizer) + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall { + 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation) + 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:upload") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.upload" 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 *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsUploadCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +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_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(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, + }) + 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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_) + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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_) + } + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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_) + } + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 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_) + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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_) + } + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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_) + } + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 + 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 *ProjectsLocationsConversationsService) BulkAnalyze(parent string, googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest) *ProjectsLocationsConversationsBulkAnalyzeCall { + c := &ProjectsLocationsConversationsBulkAnalyzeCall{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 *ProjectsLocationsConversationsBulkAnalyzeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsBulkAnalyzeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsBulkAnalyzeCall) Context(ctx context.Context) *ProjectsLocationsConversationsBulkAnalyzeCall { + 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 *ProjectsLocationsConversationsBulkAnalyzeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsBulkAnalyzeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsBulkAnalyzeCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsBulkDeleteCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest *GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BulkDelete: Deletes multiple conversations in a single request. +// +// - parent: The parent resource to delete conversations from. Format: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsConversationsService) BulkDelete(parent string, googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest *GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest) *ProjectsLocationsConversationsBulkDeleteCall { + c := &ProjectsLocationsConversationsBulkDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest = googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest + 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 *ProjectsLocationsConversationsBulkDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsBulkDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsBulkDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsBulkDeleteCall { + 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 *ProjectsLocationsConversationsBulkDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsBulkDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest) + 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:bulkDelete") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.conversations.bulkDelete" 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 *ProjectsLocationsConversationsBulkDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsCalculateStatsCall struct { + s *Service + location string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// CalculateStats: Gets conversation statistics. +// +// - location: The location of the conversations. +func (r *ProjectsLocationsConversationsService) CalculateStats(location string) *ProjectsLocationsConversationsCalculateStatsCall { + c := &ProjectsLocationsConversationsCalculateStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + return c +} + +// Filter sets the optional parameter "filter": A filter to reduce results to a +// specific subset. This field is useful for getting statistics about +// conversations with specific properties. +func (c *ProjectsLocationsConversationsCalculateStatsCall) Filter(filter string) *ProjectsLocationsConversationsCalculateStatsCall { + c.urlParams_.Set("filter", filter) + 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 *ProjectsLocationsConversationsCalculateStatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCalculateStatsCall { + 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 *ProjectsLocationsConversationsCalculateStatsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsCalculateStatsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsCalculateStatsCall) Context(ctx context.Context) *ProjectsLocationsConversationsCalculateStatsCall { + 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 *ProjectsLocationsConversationsCalculateStatsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsCalculateStatsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}/conversations:calculateStats") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "location": c.location, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.conversations.calculateStats" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1CalculateStatsResponse.ServerResponse.Head +// er 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 *ProjectsLocationsConversationsCalculateStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1CalculateStatsResponse, 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 := &GoogleCloudContactcenterinsightsV1CalculateStatsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsCreateCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a conversation. Note that this method does not support audio +// transcription or redaction. Use `conversations.upload` instead. +// +// - parent: The parent resource of the conversation. +func (r *ProjectsLocationsConversationsService) Create(parent string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsConversationsCreateCall { + c := &ProjectsLocationsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation + return c +} + +// ConversationId sets the optional parameter "conversationId": A unique ID for +// the new conversation. This ID will become the final component of the +// conversation's resource name. If no ID is specified, a server-generated ID +// will be used. This value should be 4-64 characters and must match the +// regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` +func (c *ProjectsLocationsConversationsCreateCall) ConversationId(conversationId string) *ProjectsLocationsConversationsCreateCall { + c.urlParams_.Set("conversationId", conversationId) + 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 *ProjectsLocationsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsCreateCall { + 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 *ProjectsLocationsConversationsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation) + 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") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.conversations.create" 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 *ProjectsLocationsConversationsCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsDeleteCall 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 *ProjectsLocationsConversationsService) Delete(name string) *ProjectsLocationsConversationsDeleteCall { + c := &ProjectsLocationsConversationsDeleteCall{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 *ProjectsLocationsConversationsDeleteCall) Force(force bool) *ProjectsLocationsConversationsDeleteCall { + 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 *ProjectsLocationsConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsDeleteCall { + 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 *ProjectsLocationsConversationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsGetCall 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 *ProjectsLocationsConversationsService) Get(name string) *ProjectsLocationsConversationsGetCall { + c := &ProjectsLocationsConversationsGetCall{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 *ProjectsLocationsConversationsGetCall) View(view string) *ProjectsLocationsConversationsGetCall { + 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 *ProjectsLocationsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsGetCall { + 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 *ProjectsLocationsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsGetCall { + 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 *ProjectsLocationsConversationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsGetCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsIngestCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1ingestconversationsrequest *GoogleCloudContactcenterinsightsV1IngestConversationsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Ingest: Imports conversations and processes them according to the user's +// configuration. +// +// - parent: The parent resource for new conversations. +func (r *ProjectsLocationsConversationsService) Ingest(parent string, googlecloudcontactcenterinsightsv1ingestconversationsrequest *GoogleCloudContactcenterinsightsV1IngestConversationsRequest) *ProjectsLocationsConversationsIngestCall { + c := &ProjectsLocationsConversationsIngestCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1ingestconversationsrequest = googlecloudcontactcenterinsightsv1ingestconversationsrequest + 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 *ProjectsLocationsConversationsIngestCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsIngestCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsIngestCall) Context(ctx context.Context) *ProjectsLocationsConversationsIngestCall { + 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 *ProjectsLocationsConversationsIngestCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsIngestCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1ingestconversationsrequest) + 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:ingest") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.conversations.ingest" 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 *ProjectsLocationsConversationsIngestCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsListCall 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 *ProjectsLocationsConversationsService) List(parent string) *ProjectsLocationsConversationsListCall { + c := &ProjectsLocationsConversationsListCall{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 *ProjectsLocationsConversationsListCall) Filter(filter string) *ProjectsLocationsConversationsListCall { + 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 *ProjectsLocationsConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsConversationsListCall { + 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 *ProjectsLocationsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsListCall { + 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 *ProjectsLocationsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsListCall { + 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 *ProjectsLocationsConversationsListCall) View(view string) *ProjectsLocationsConversationsListCall { + 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 *ProjectsLocationsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsListCall { + 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 *ProjectsLocationsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsListCall { + 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 *ProjectsLocationsConversationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsListCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 *ProjectsLocationsConversationsListCall) 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 ProjectsLocationsConversationsPatchCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a conversation. +// +// - name: Immutable. The resource name of the conversation. Format: +// projects/{project}/locations/{location}/conversations/{conversation}. +func (r *ProjectsLocationsConversationsService) Patch(name string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsConversationsPatchCall { + c := &ProjectsLocationsConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. All possible fields can be updated by passing `*`, or a subset +// of the following updateable fields can be provided: * `agent_id` * +// `language_code` * `labels` * `metadata` * `quality_metadata` * +// `call_metadata` * `start_time` * `expire_time` or `ttl` * +// `data_source.gcs_source.audio_uri` or +// `data_source.dialogflow_source.audio_uri` +func (c *ProjectsLocationsConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationsPatchCall { + 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 *ProjectsLocationsConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationsPatchCall { + 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 *ProjectsLocationsConversationsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation) + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.conversations.patch" 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 *ProjectsLocationsConversationsPatchCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsUploadCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1uploadconversationrequest *GoogleCloudContactcenterinsightsV1UploadConversationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Upload: Create a long-running conversation upload operation. This method +// differs from `CreateConversation` by allowing audio transcription and +// optional DLP redaction. +// +// - parent: The parent resource of the conversation. +func (r *ProjectsLocationsConversationsService) Upload(parent string, googlecloudcontactcenterinsightsv1uploadconversationrequest *GoogleCloudContactcenterinsightsV1UploadConversationRequest) *ProjectsLocationsConversationsUploadCall { + c := &ProjectsLocationsConversationsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1uploadconversationrequest = googlecloudcontactcenterinsightsv1uploadconversationrequest + 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 *ProjectsLocationsConversationsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsUploadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsUploadCall) Context(ctx context.Context) *ProjectsLocationsConversationsUploadCall { + 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 *ProjectsLocationsConversationsUploadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsUploadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1uploadconversationrequest) + 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:upload") + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.conversations.upload" 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 *ProjectsLocationsConversationsUploadCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsAnalysesCreateCall 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 *ProjectsLocationsConversationsAnalysesService) Create(parent string, googlecloudcontactcenterinsightsv1analysis *GoogleCloudContactcenterinsightsV1Analysis) *ProjectsLocationsConversationsAnalysesCreateCall { + c := &ProjectsLocationsConversationsAnalysesCreateCall{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 *ProjectsLocationsConversationsAnalysesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsAnalysesCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesCreateCall { + 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 *ProjectsLocationsConversationsAnalysesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsAnalysesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsAnalysesCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsAnalysesDeleteCall 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 *ProjectsLocationsConversationsAnalysesService) Delete(name string) *ProjectsLocationsConversationsAnalysesDeleteCall { + c := &ProjectsLocationsConversationsAnalysesDeleteCall{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 *ProjectsLocationsConversationsAnalysesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsAnalysesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesDeleteCall { + 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 *ProjectsLocationsConversationsAnalysesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsAnalysesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsAnalysesDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsAnalysesGetCall 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 *ProjectsLocationsConversationsAnalysesService) Get(name string) *ProjectsLocationsConversationsAnalysesGetCall { + c := &ProjectsLocationsConversationsAnalysesGetCall{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 *ProjectsLocationsConversationsAnalysesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesGetCall { + 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 *ProjectsLocationsConversationsAnalysesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsAnalysesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsAnalysesGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesGetCall { + 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 *ProjectsLocationsConversationsAnalysesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsAnalysesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsAnalysesGetCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsAnalysesListCall 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 *ProjectsLocationsConversationsAnalysesService) List(parent string) *ProjectsLocationsConversationsAnalysesListCall { + c := &ProjectsLocationsConversationsAnalysesListCall{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 *ProjectsLocationsConversationsAnalysesListCall) Filter(filter string) *ProjectsLocationsConversationsAnalysesListCall { + 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 *ProjectsLocationsConversationsAnalysesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsAnalysesListCall { + 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 *ProjectsLocationsConversationsAnalysesListCall) PageToken(pageToken string) *ProjectsLocationsConversationsAnalysesListCall { + 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 *ProjectsLocationsConversationsAnalysesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesListCall { + 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 *ProjectsLocationsConversationsAnalysesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsAnalysesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsAnalysesListCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesListCall { + 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 *ProjectsLocationsConversationsAnalysesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsAnalysesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analyses") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsAnalysesListCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 *ProjectsLocationsConversationsAnalysesListCall) 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 ProjectsLocationsConversationsFeedbackLabelsCreateCall 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 *ProjectsLocationsConversationsFeedbackLabelsService) Create(parent string, googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel) *ProjectsLocationsConversationsFeedbackLabelsCreateCall { + c := &ProjectsLocationsConversationsFeedbackLabelsCreateCall{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 *ProjectsLocationsConversationsFeedbackLabelsCreateCall) FeedbackLabelId(feedbackLabelId string) *ProjectsLocationsConversationsFeedbackLabelsCreateCall { + 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 *ProjectsLocationsConversationsFeedbackLabelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsFeedbackLabelsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsFeedbackLabelsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsFeedbackLabelsCreateCall { + 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 *ProjectsLocationsConversationsFeedbackLabelsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsFeedbackLabelsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsFeedbackLabelsCreateCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsFeedbackLabelsDeleteCall 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 *ProjectsLocationsConversationsFeedbackLabelsService) Delete(name string) *ProjectsLocationsConversationsFeedbackLabelsDeleteCall { + c := &ProjectsLocationsConversationsFeedbackLabelsDeleteCall{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 *ProjectsLocationsConversationsFeedbackLabelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsFeedbackLabelsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsFeedbackLabelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsFeedbackLabelsDeleteCall { + 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 *ProjectsLocationsConversationsFeedbackLabelsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsFeedbackLabelsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + 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, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsFeedbackLabelsDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsFeedbackLabelsGetCall 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 *ProjectsLocationsConversationsFeedbackLabelsService) Get(name string) *ProjectsLocationsConversationsFeedbackLabelsGetCall { + c := &ProjectsLocationsConversationsFeedbackLabelsGetCall{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 *ProjectsLocationsConversationsFeedbackLabelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsFeedbackLabelsGetCall { + 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 *ProjectsLocationsConversationsFeedbackLabelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsFeedbackLabelsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsFeedbackLabelsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsFeedbackLabelsGetCall { + 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 *ProjectsLocationsConversationsFeedbackLabelsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsFeedbackLabelsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsFeedbackLabelsGetCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsConversationsFeedbackLabelsListCall 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 *ProjectsLocationsConversationsFeedbackLabelsService) List(parent string) *ProjectsLocationsConversationsFeedbackLabelsListCall { + c := &ProjectsLocationsConversationsFeedbackLabelsListCall{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 *ProjectsLocationsConversationsFeedbackLabelsListCall) Filter(filter string) *ProjectsLocationsConversationsFeedbackLabelsListCall { + 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 *ProjectsLocationsConversationsFeedbackLabelsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsFeedbackLabelsListCall { + 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 *ProjectsLocationsConversationsFeedbackLabelsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsFeedbackLabelsListCall { + 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 *ProjectsLocationsConversationsFeedbackLabelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsFeedbackLabelsListCall { + 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 *ProjectsLocationsConversationsFeedbackLabelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsFeedbackLabelsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConversationsFeedbackLabelsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsFeedbackLabelsListCall { + 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 *ProjectsLocationsConversationsFeedbackLabelsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsFeedbackLabelsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/feedbackLabels") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsConversationsFeedbackLabelsListCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + 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 *ProjectsLocationsConversationsFeedbackLabelsListCall) 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 ProjectsLocationsConversationsFeedbackLabelsPatchCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetEncryptionSpec: Gets location-level encryption key specification. +// Patch: Update feedback label. // -// - name: The name of the encryption spec resource to get. -func (r *ProjectsLocationsService) GetEncryptionSpec(name string) *ProjectsLocationsGetEncryptionSpecCall { - c := &ProjectsLocationsGetEncryptionSpecCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. Resource name of the FeedbackLabel. Format: +// projects/{project}/locations/{location}/conversations/{conversation}/feedba +// ckLabels/{feedback_label}. +func (r *ProjectsLocationsConversationsFeedbackLabelsService) Patch(name string, googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel) *ProjectsLocationsConversationsFeedbackLabelsPatchCall { + c := &ProjectsLocationsConversationsFeedbackLabelsPatchCall{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 *ProjectsLocationsConversationsFeedbackLabelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationsFeedbackLabelsPatchCall { + 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 *ProjectsLocationsGetEncryptionSpecCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetEncryptionSpecCall { +func (c *ProjectsLocationsConversationsFeedbackLabelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsFeedbackLabelsPatchCall { 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 *ProjectsLocationsGetEncryptionSpecCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetEncryptionSpecCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGetEncryptionSpecCall) Context(ctx context.Context) *ProjectsLocationsGetEncryptionSpecCall { +func (c *ProjectsLocationsConversationsFeedbackLabelsPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationsFeedbackLabelsPatchCall { 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 *ProjectsLocationsGetEncryptionSpecCall) Header() http.Header { +func (c *ProjectsLocationsConversationsFeedbackLabelsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetEncryptionSpecCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsConversationsFeedbackLabelsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(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("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -6855,13 +16178,13 @@ func (c *ProjectsLocationsGetEncryptionSpecCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.getEncryptionSpec" call. +// Do executes the "contactcenterinsights.projects.locations.conversations.feedbackLabels.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1EncryptionSpec.ServerResponse.Header or +// *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 *ProjectsLocationsGetEncryptionSpecCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1EncryptionSpec, error) { +func (c *ProjectsLocationsConversationsFeedbackLabelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1FeedbackLabel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6880,7 +16203,7 @@ func (c *ProjectsLocationsGetEncryptionSpecCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1EncryptionSpec{ + ret := &GoogleCloudContactcenterinsightsV1FeedbackLabel{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6893,66 +16216,65 @@ func (c *ProjectsLocationsGetEncryptionSpecCall) Do(opts ...googleapi.CallOption return ret, nil } -type ProjectsLocationsGetSettingsCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEncryptionSpecInitializeCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1initializeencryptionspecrequest *GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetSettings: Gets project-level settings. +// Initialize: Initializes a location-level encryption key specification. An +// error will result if the location has resources already created before the +// initialization. After the encryption specification is initialized at a +// location, it is immutable and all newly created resources under the location +// will be encrypted with the existing specification. // -// - name: The name of the settings resource to get. -func (r *ProjectsLocationsService) GetSettings(name string) *ProjectsLocationsGetSettingsCall { - c := &ProjectsLocationsGetSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. The resource name of the encryption key specification +// resource. Format: projects/{project}/locations/{location}/encryptionSpec. +func (r *ProjectsLocationsEncryptionSpecService) Initialize(name string, googlecloudcontactcenterinsightsv1initializeencryptionspecrequest *GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest) *ProjectsLocationsEncryptionSpecInitializeCall { + c := &ProjectsLocationsEncryptionSpecInitializeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudcontactcenterinsightsv1initializeencryptionspecrequest = googlecloudcontactcenterinsightsv1initializeencryptionspecrequest 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 *ProjectsLocationsGetSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetSettingsCall { +func (c *ProjectsLocationsEncryptionSpecInitializeCall) Fields(s ...googleapi.Field) *ProjectsLocationsEncryptionSpecInitializeCall { 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 *ProjectsLocationsGetSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetSettingsCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGetSettingsCall) Context(ctx context.Context) *ProjectsLocationsGetSettingsCall { +func (c *ProjectsLocationsEncryptionSpecInitializeCall) Context(ctx context.Context) *ProjectsLocationsEncryptionSpecInitializeCall { 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 *ProjectsLocationsGetSettingsCall) Header() http.Header { +func (c *ProjectsLocationsEncryptionSpecInitializeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetSettingsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsEncryptionSpecInitializeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1initializeencryptionspecrequest) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:initialize") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -6963,13 +16285,13 @@ func (c *ProjectsLocationsGetSettingsCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.getSettings" call. +// Do executes the "contactcenterinsights.projects.locations.encryptionSpec.initialize" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1Settings.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *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 *ProjectsLocationsGetSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Settings, error) { +func (c *ProjectsLocationsEncryptionSpecInitializeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6988,7 +16310,7 @@ func (c *ProjectsLocationsGetSettingsCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1Settings{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7001,85 +16323,77 @@ func (c *ProjectsLocationsGetSettingsCall) Do(opts ...googleapi.CallOption) (*Go return ret, nil } -type ProjectsLocationsUpdateSettingsCall struct { - s *Service - name string - googlecloudcontactcenterinsightsv1settings *GoogleCloudContactcenterinsightsV1Settings - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsInsightsdataExportCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1exportinsightsdatarequest *GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UpdateSettings: Updates project-level settings. +// Export: Export insights data to a destination defined in the request body. // -// - name: Immutable. The resource name of the settings resource. Format: -// projects/{project}/locations/{location}/settings. -func (r *ProjectsLocationsService) UpdateSettings(name string, googlecloudcontactcenterinsightsv1settings *GoogleCloudContactcenterinsightsV1Settings) *ProjectsLocationsUpdateSettingsCall { - c := &ProjectsLocationsUpdateSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudcontactcenterinsightsv1settings = googlecloudcontactcenterinsightsv1settings - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The list of -// fields to be updated. -func (c *ProjectsLocationsUpdateSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateSettingsCall { - c.urlParams_.Set("updateMask", updateMask) +// - parent: The parent resource to export data from. +func (r *ProjectsLocationsInsightsdataService) Export(parent string, googlecloudcontactcenterinsightsv1exportinsightsdatarequest *GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest) *ProjectsLocationsInsightsdataExportCall { + c := &ProjectsLocationsInsightsdataExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1exportinsightsdatarequest = googlecloudcontactcenterinsightsv1exportinsightsdatarequest 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 *ProjectsLocationsUpdateSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateSettingsCall { +func (c *ProjectsLocationsInsightsdataExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightsdataExportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsUpdateSettingsCall) Context(ctx context.Context) *ProjectsLocationsUpdateSettingsCall { +func (c *ProjectsLocationsInsightsdataExportCall) Context(ctx context.Context) *ProjectsLocationsInsightsdataExportCall { 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 *ProjectsLocationsUpdateSettingsCall) Header() http.Header { +func (c *ProjectsLocationsInsightsdataExportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsUpdateSettingsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsInsightsdataExportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1settings) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1exportinsightsdatarequest) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/insightsdata:export") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.updateSettings" call. +// Do executes the "contactcenterinsights.projects.locations.insightsdata.export" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1Settings.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *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 *ProjectsLocationsUpdateSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Settings, error) { +func (c *ProjectsLocationsInsightsdataExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7098,7 +16412,7 @@ func (c *ProjectsLocationsUpdateSettingsCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1Settings{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7111,77 +16425,83 @@ func (c *ProjectsLocationsUpdateSettingsCall) Do(opts ...googleapi.CallOption) ( return ret, nil } -type ProjectsLocationsConversationsBulkAnalyzeCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIssueModelsCalculateIssueModelStatsCall struct { + s *Service + issueModel string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// BulkAnalyze: Analyzes multiple conversations in a single request. +// CalculateIssueModelStats: Gets an issue model's statistics. // -// - parent: The parent resource to create analyses in. -func (r *ProjectsLocationsConversationsService) BulkAnalyze(parent string, googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest) *ProjectsLocationsConversationsBulkAnalyzeCall { - c := &ProjectsLocationsConversationsBulkAnalyzeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest = googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest +// - issueModel: The resource name of the issue model to query against. +func (r *ProjectsLocationsIssueModelsService) CalculateIssueModelStats(issueModel string) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall { + c := &ProjectsLocationsIssueModelsCalculateIssueModelStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.issueModel = issueModel 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 *ProjectsLocationsConversationsBulkAnalyzeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsBulkAnalyzeCall { +func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall { 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 *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsBulkAnalyzeCall) Context(ctx context.Context) *ProjectsLocationsConversationsBulkAnalyzeCall { +func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall { 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 *ProjectsLocationsConversationsBulkAnalyzeCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsBulkAnalyzeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations:bulkAnalyze") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+issueModel}:calculateIssueModelStats") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "issueModel": c.issueModel, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.bulkAnalyze" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.calculateIssueModelStats" 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 *ProjectsLocationsConversationsBulkAnalyzeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// *GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse.ServerRes +// ponse.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 *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7200,7 +16520,7 @@ func (c *ProjectsLocationsConversationsBulkAnalyzeCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7213,59 +16533,58 @@ func (c *ProjectsLocationsConversationsBulkAnalyzeCall) Do(opts ...googleapi.Cal return ret, nil } -type ProjectsLocationsConversationsBulkDeleteCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest *GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIssueModelsCreateCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BulkDelete: Deletes multiple conversations in a single request. +// Create: Creates an issue model. // -// - parent: The parent resource to delete conversations from. Format: -// projects/{project}/locations/{location}. -func (r *ProjectsLocationsConversationsService) BulkDelete(parent string, googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest *GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest) *ProjectsLocationsConversationsBulkDeleteCall { - c := &ProjectsLocationsConversationsBulkDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent resource of the issue model. +func (r *ProjectsLocationsIssueModelsService) Create(parent string, googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel) *ProjectsLocationsIssueModelsCreateCall { + c := &ProjectsLocationsIssueModelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest = googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest + c.googlecloudcontactcenterinsightsv1issuemodel = googlecloudcontactcenterinsightsv1issuemodel 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 *ProjectsLocationsConversationsBulkDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsBulkDeleteCall { +func (c *ProjectsLocationsIssueModelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsBulkDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsBulkDeleteCall { +func (c *ProjectsLocationsIssueModelsCreateCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsCreateCall { 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 *ProjectsLocationsConversationsBulkDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsBulkDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIssueModelsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1issuemodel) 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:bulkDelete") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issueModels") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -7278,13 +16597,13 @@ func (c *ProjectsLocationsConversationsBulkDeleteCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.bulkDelete" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.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 *ProjectsLocationsConversationsBulkDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIssueModelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7316,91 +16635,71 @@ func (c *ProjectsLocationsConversationsBulkDeleteCall) Do(opts ...googleapi.Call return ret, nil } -type ProjectsLocationsConversationsCalculateStatsCall struct { - s *Service - location string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIssueModelsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// CalculateStats: Gets conversation statistics. +// Delete: Deletes an issue model. // -// - location: The location of the conversations. -func (r *ProjectsLocationsConversationsService) CalculateStats(location string) *ProjectsLocationsConversationsCalculateStatsCall { - c := &ProjectsLocationsConversationsCalculateStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - return c -} - -// Filter sets the optional parameter "filter": A filter to reduce results to a -// specific subset. This field is useful for getting statistics about -// conversations with specific properties. -func (c *ProjectsLocationsConversationsCalculateStatsCall) Filter(filter string) *ProjectsLocationsConversationsCalculateStatsCall { - c.urlParams_.Set("filter", filter) +// - name: The name of the issue model to delete. +func (r *ProjectsLocationsIssueModelsService) Delete(name string) *ProjectsLocationsIssueModelsDeleteCall { + c := &ProjectsLocationsIssueModelsDeleteCall{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 *ProjectsLocationsConversationsCalculateStatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCalculateStatsCall { +func (c *ProjectsLocationsIssueModelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsDeleteCall { 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 *ProjectsLocationsConversationsCalculateStatsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsCalculateStatsCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsCalculateStatsCall) Context(ctx context.Context) *ProjectsLocationsConversationsCalculateStatsCall { +func (c *ProjectsLocationsIssueModelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsDeleteCall { 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 *ProjectsLocationsConversationsCalculateStatsCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsCalculateStatsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIssueModelsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}/conversations:calculateStats") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "location": c.location, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.calculateStats" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1CalculateStatsResponse.ServerResponse.Head -// er 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 *ProjectsLocationsConversationsCalculateStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1CalculateStatsResponse, error) { +// *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 *ProjectsLocationsIssueModelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7419,7 +16718,7 @@ func (c *ProjectsLocationsConversationsCalculateStatsCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1CalculateStatsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7432,69 +16731,60 @@ func (c *ProjectsLocationsConversationsCalculateStatsCall) Do(opts ...googleapi. return ret, nil } -type ProjectsLocationsConversationsCreateCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIssueModelsDeployCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1deployissuemodelrequest *GoogleCloudContactcenterinsightsV1DeployIssueModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a conversation. Note that this method does not support audio -// transcription or redaction. Use `conversations.upload` instead. +// Deploy: Deploys an issue model. Returns an error if a model is already +// deployed. An issue model can only be used in analysis after it has been +// deployed. // -// - parent: The parent resource of the conversation. -func (r *ProjectsLocationsConversationsService) Create(parent string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsConversationsCreateCall { - c := &ProjectsLocationsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation - return c -} - -// ConversationId sets the optional parameter "conversationId": A unique ID for -// the new conversation. This ID will become the final component of the -// conversation's resource name. If no ID is specified, a server-generated ID -// will be used. This value should be 4-64 characters and must match the -// regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` -func (c *ProjectsLocationsConversationsCreateCall) ConversationId(conversationId string) *ProjectsLocationsConversationsCreateCall { - c.urlParams_.Set("conversationId", conversationId) +// - name: The issue model to deploy. +func (r *ProjectsLocationsIssueModelsService) Deploy(name string, googlecloudcontactcenterinsightsv1deployissuemodelrequest *GoogleCloudContactcenterinsightsV1DeployIssueModelRequest) *ProjectsLocationsIssueModelsDeployCall { + c := &ProjectsLocationsIssueModelsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudcontactcenterinsightsv1deployissuemodelrequest = googlecloudcontactcenterinsightsv1deployissuemodelrequest 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 *ProjectsLocationsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCreateCall { +func (c *ProjectsLocationsIssueModelsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsDeployCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsCreateCall { +func (c *ProjectsLocationsIssueModelsDeployCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsDeployCall { 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 *ProjectsLocationsConversationsCreateCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsDeployCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIssueModelsDeployCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1deployissuemodelrequest) 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") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:deploy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -7502,18 +16792,18 @@ func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http. } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.create" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.deploy" 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 +// *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 *ProjectsLocationsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Conversation, error) { +func (c *ProjectsLocationsIssueModelsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7532,7 +16822,7 @@ func (c *ProjectsLocationsConversationsCreateCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1Conversation{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7545,62 +16835,60 @@ func (c *ProjectsLocationsConversationsCreateCall) Do(opts ...googleapi.CallOpti return ret, nil } -type ProjectsLocationsConversationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIssueModelsExportCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1exportissuemodelrequest *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a conversation. +// Export: Exports an issue model to the provided destination. // -// - name: The name of the conversation to delete. -func (r *ProjectsLocationsConversationsService) Delete(name string) *ProjectsLocationsConversationsDeleteCall { - c := &ProjectsLocationsConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The issue model to export. +func (r *ProjectsLocationsIssueModelsService) Export(name string, googlecloudcontactcenterinsightsv1exportissuemodelrequest *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest) *ProjectsLocationsIssueModelsExportCall { + c := &ProjectsLocationsIssueModelsExportCall{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 *ProjectsLocationsConversationsDeleteCall) Force(force bool) *ProjectsLocationsConversationsDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) + c.googlecloudcontactcenterinsightsv1exportissuemodelrequest = googlecloudcontactcenterinsightsv1exportissuemodelrequest 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 *ProjectsLocationsConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsDeleteCall { +func (c *ProjectsLocationsIssueModelsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsExportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsDeleteCall { +func (c *ProjectsLocationsIssueModelsExportCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsExportCall { 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 *ProjectsLocationsConversationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsExportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsIssueModelsExportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1exportissuemodelrequest) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:export") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -7611,13 +16899,13 @@ func (c *ProjectsLocationsConversationsDeleteCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.delete" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.export" 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 *ProjectsLocationsConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// *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 *ProjectsLocationsIssueModelsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7636,7 +16924,7 @@ func (c *ProjectsLocationsConversationsDeleteCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7649,7 +16937,7 @@ func (c *ProjectsLocationsConversationsDeleteCall) Do(opts ...googleapi.CallOpti return ret, nil } -type ProjectsLocationsConversationsGetCall struct { +type ProjectsLocationsIssueModelsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -7658,36 +16946,19 @@ type ProjectsLocationsConversationsGetCall struct { header_ http.Header } -// Get: Gets a conversation. +// Get: Gets an issue model. // -// - name: The name of the conversation to get. -func (r *ProjectsLocationsConversationsService) Get(name string) *ProjectsLocationsConversationsGetCall { - c := &ProjectsLocationsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the issue model to get. +func (r *ProjectsLocationsIssueModelsService) Get(name string) *ProjectsLocationsIssueModelsGetCall { + c := &ProjectsLocationsIssueModelsGetCall{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 *ProjectsLocationsConversationsGetCall) View(view string) *ProjectsLocationsConversationsGetCall { - 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 *ProjectsLocationsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsGetCall { +func (c *ProjectsLocationsIssueModelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7695,27 +16966,27 @@ func (c *ProjectsLocationsConversationsGetCall) Fields(s ...googleapi.Field) *Pr // 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 *ProjectsLocationsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsGetCall { +func (c *ProjectsLocationsIssueModelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsGetCall { +func (c *ProjectsLocationsIssueModelsGetCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsGetCall { 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 *ProjectsLocationsConversationsGetCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIssueModelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -7736,13 +17007,13 @@ func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.get" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.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 +// *GoogleCloudContactcenterinsightsV1IssueModel.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 *ProjectsLocationsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Conversation, error) { +func (c *ProjectsLocationsIssueModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1IssueModel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7761,7 +17032,7 @@ func (c *ProjectsLocationsConversationsGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1Conversation{ + ret := &GoogleCloudContactcenterinsightsV1IssueModel{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7774,59 +17045,58 @@ func (c *ProjectsLocationsConversationsGetCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsConversationsIngestCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1ingestconversationsrequest *GoogleCloudContactcenterinsightsV1IngestConversationsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIssueModelsImportCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1importissuemodelrequest *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Ingest: Imports conversations and processes them according to the user's -// configuration. +// Import: Imports an issue model from a Cloud Storage bucket. // -// - parent: The parent resource for new conversations. -func (r *ProjectsLocationsConversationsService) Ingest(parent string, googlecloudcontactcenterinsightsv1ingestconversationsrequest *GoogleCloudContactcenterinsightsV1IngestConversationsRequest) *ProjectsLocationsConversationsIngestCall { - c := &ProjectsLocationsConversationsIngestCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent resource of the issue model. +func (r *ProjectsLocationsIssueModelsService) Import(parent string, googlecloudcontactcenterinsightsv1importissuemodelrequest *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest) *ProjectsLocationsIssueModelsImportCall { + c := &ProjectsLocationsIssueModelsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudcontactcenterinsightsv1ingestconversationsrequest = googlecloudcontactcenterinsightsv1ingestconversationsrequest + c.googlecloudcontactcenterinsightsv1importissuemodelrequest = googlecloudcontactcenterinsightsv1importissuemodelrequest 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 *ProjectsLocationsConversationsIngestCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsIngestCall { +func (c *ProjectsLocationsIssueModelsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsImportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsIngestCall) Context(ctx context.Context) *ProjectsLocationsConversationsIngestCall { +func (c *ProjectsLocationsIssueModelsImportCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsImportCall { 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 *ProjectsLocationsConversationsIngestCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsImportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsIngestCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIssueModelsImportCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1ingestconversationsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1importissuemodelrequest) 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:ingest") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issueModels:import") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -7839,13 +17109,13 @@ func (c *ProjectsLocationsConversationsIngestCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.ingest" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.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 *ProjectsLocationsConversationsIngestCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIssueModelsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7877,7 +17147,7 @@ func (c *ProjectsLocationsConversationsIngestCall) Do(opts ...googleapi.CallOpti return ret, nil } -type ProjectsLocationsConversationsListCall struct { +type ProjectsLocationsIssueModelsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -7886,74 +17156,19 @@ type ProjectsLocationsConversationsListCall struct { header_ http.Header } -// List: Lists conversations. +// List: Lists issue models. // -// - parent: The parent resource of the conversation. -func (r *ProjectsLocationsConversationsService) List(parent string) *ProjectsLocationsConversationsListCall { - c := &ProjectsLocationsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent resource of the issue model. +func (r *ProjectsLocationsIssueModelsService) List(parent string) *ProjectsLocationsIssueModelsListCall { + c := &ProjectsLocationsIssueModelsListCall{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 *ProjectsLocationsConversationsListCall) Filter(filter string) *ProjectsLocationsConversationsListCall { - 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 *ProjectsLocationsConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsConversationsListCall { - 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 *ProjectsLocationsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsListCall { - 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 *ProjectsLocationsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsListCall { - 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 *ProjectsLocationsConversationsListCall) View(view string) *ProjectsLocationsConversationsListCall { - 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 *ProjectsLocationsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsListCall { +func (c *ProjectsLocationsIssueModelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7961,27 +17176,27 @@ func (c *ProjectsLocationsConversationsListCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsListCall { +func (c *ProjectsLocationsIssueModelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsListCall { +func (c *ProjectsLocationsIssueModelsListCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsListCall { 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 *ProjectsLocationsConversationsListCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIssueModelsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -7989,7 +17204,7 @@ func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Re var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issueModels") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8002,13 +17217,123 @@ func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.list" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.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 +// *GoogleCloudContactcenterinsightsV1ListIssueModelsResponse.ServerResponse.Hea +// der 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 *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListConversationsResponse, error) { +func (c *ProjectsLocationsIssueModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListIssueModelsResponse, 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 := &GoogleCloudContactcenterinsightsV1ListIssueModelsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsIssueModelsPatchCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an issue model. +// +// - name: Immutable. The resource name of the issue model. Format: +// projects/{project}/locations/{location}/issueModels/{issue_model}. +func (r *ProjectsLocationsIssueModelsService) Patch(name string, googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel) *ProjectsLocationsIssueModelsPatchCall { + c := &ProjectsLocationsIssueModelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudcontactcenterinsightsv1issuemodel = googlecloudcontactcenterinsightsv1issuemodel + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. +func (c *ProjectsLocationsIssueModelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIssueModelsPatchCall { + 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 *ProjectsLocationsIssueModelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsIssueModelsPatchCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsPatchCall { + 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 *ProjectsLocationsIssueModelsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIssueModelsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1issuemodel) + 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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.issueModels.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1IssueModel.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 *ProjectsLocationsIssueModelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1IssueModel, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8027,7 +17352,7 @@ func (c *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1ListConversationsResponse{ + ret := &GoogleCloudContactcenterinsightsV1IssueModel{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8040,94 +17365,61 @@ func (c *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption 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 *ProjectsLocationsConversationsListCall) 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 ProjectsLocationsConversationsPatchCall struct { - s *Service - name string - googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIssueModelsUndeployCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1undeployissuemodelrequest *GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a conversation. +// Undeploy: Undeploys an issue model. An issue model can not be used in +// analysis after it has been undeployed. // -// - name: Immutable. The resource name of the conversation. Format: -// projects/{project}/locations/{location}/conversations/{conversation}. -func (r *ProjectsLocationsConversationsService) Patch(name string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsConversationsPatchCall { - c := &ProjectsLocationsConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The issue model to undeploy. +func (r *ProjectsLocationsIssueModelsService) Undeploy(name string, googlecloudcontactcenterinsightsv1undeployissuemodelrequest *GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest) *ProjectsLocationsIssueModelsUndeployCall { + c := &ProjectsLocationsIssueModelsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation - return c -} - -// UpdateMask sets the optional parameter "updateMask": The list of fields to -// be updated. All possible fields can be updated by passing `*`, or a subset -// of the following updateable fields can be provided: * `agent_id` * -// `language_code` * `labels` * `metadata` * `quality_metadata` * -// `call_metadata` * `start_time` * `expire_time` or `ttl` * -// `data_source.gcs_source.audio_uri` or -// `data_source.dialogflow_source.audio_uri` -func (c *ProjectsLocationsConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationsPatchCall { - c.urlParams_.Set("updateMask", updateMask) + c.googlecloudcontactcenterinsightsv1undeployissuemodelrequest = googlecloudcontactcenterinsightsv1undeployissuemodelrequest 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 *ProjectsLocationsConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsPatchCall { +func (c *ProjectsLocationsIssueModelsUndeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsUndeployCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationsPatchCall { +func (c *ProjectsLocationsIssueModelsUndeployCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsUndeployCall { 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 *ProjectsLocationsConversationsPatchCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsUndeployCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIssueModelsUndeployCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1undeployissuemodelrequest) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undeploy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -8138,13 +17430,13 @@ func (c *ProjectsLocationsConversationsPatchCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.patch" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.undeploy" 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 +// *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 *ProjectsLocationsConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Conversation, error) { +func (c *ProjectsLocationsIssueModelsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8163,7 +17455,7 @@ func (c *ProjectsLocationsConversationsPatchCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1Conversation{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8176,79 +17468,71 @@ func (c *ProjectsLocationsConversationsPatchCall) Do(opts ...googleapi.CallOptio return ret, nil } -type ProjectsLocationsConversationsUploadCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1uploadconversationrequest *GoogleCloudContactcenterinsightsV1UploadConversationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIssueModelsIssuesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Upload: Create a long-running conversation upload operation. This method -// differs from `CreateConversation` by allowing audio transcription and -// optional DLP redaction. +// Delete: Deletes an issue. // -// - parent: The parent resource of the conversation. -func (r *ProjectsLocationsConversationsService) Upload(parent string, googlecloudcontactcenterinsightsv1uploadconversationrequest *GoogleCloudContactcenterinsightsV1UploadConversationRequest) *ProjectsLocationsConversationsUploadCall { - c := &ProjectsLocationsConversationsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontactcenterinsightsv1uploadconversationrequest = googlecloudcontactcenterinsightsv1uploadconversationrequest +// - name: The name of the issue to delete. +func (r *ProjectsLocationsIssueModelsIssuesService) Delete(name string) *ProjectsLocationsIssueModelsIssuesDeleteCall { + c := &ProjectsLocationsIssueModelsIssuesDeleteCall{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 *ProjectsLocationsConversationsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsUploadCall { +func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsUploadCall) Context(ctx context.Context) *ProjectsLocationsConversationsUploadCall { +func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesDeleteCall { 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 *ProjectsLocationsConversationsUploadCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsUploadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) +func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1uploadconversationrequest) - 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:upload") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.upload" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.issues.delete" 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 *ProjectsLocationsConversationsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// *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 *ProjectsLocationsIssueModelsIssuesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8267,7 +17551,7 @@ func (c *ProjectsLocationsConversationsUploadCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8280,78 +17564,83 @@ func (c *ProjectsLocationsConversationsUploadCall) Do(opts ...googleapi.CallOpti return ret, nil } -type ProjectsLocationsConversationsAnalysesCreateCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1analysis *GoogleCloudContactcenterinsightsV1Analysis - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIssueModelsIssuesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates an analysis. The long running operation is done when the -// analysis has completed. +// Get: Gets an issue. // -// - parent: The parent resource of the analysis. -func (r *ProjectsLocationsConversationsAnalysesService) Create(parent string, googlecloudcontactcenterinsightsv1analysis *GoogleCloudContactcenterinsightsV1Analysis) *ProjectsLocationsConversationsAnalysesCreateCall { - c := &ProjectsLocationsConversationsAnalysesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontactcenterinsightsv1analysis = googlecloudcontactcenterinsightsv1analysis +// - name: The name of the issue to get. +func (r *ProjectsLocationsIssueModelsIssuesService) Get(name string) *ProjectsLocationsIssueModelsIssuesGetCall { + c := &ProjectsLocationsIssueModelsIssuesGetCall{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 *ProjectsLocationsConversationsAnalysesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesCreateCall { +func (c *ProjectsLocationsIssueModelsIssuesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesGetCall { 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 *ProjectsLocationsIssueModelsIssuesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsIssuesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsAnalysesCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesCreateCall { +func (c *ProjectsLocationsIssueModelsIssuesGetCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesGetCall { 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 *ProjectsLocationsConversationsAnalysesCreateCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsIssuesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsAnalysesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1analysis) - if err != nil { - return nil, err +func (c *ProjectsLocationsIssueModelsIssuesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analyses") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.analyses.create" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.issues.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 +// *GoogleCloudContactcenterinsightsV1Issue.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 *ProjectsLocationsConversationsAnalysesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIssueModelsIssuesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Issue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8370,7 +17659,7 @@ func (c *ProjectsLocationsConversationsAnalysesCreateCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudContactcenterinsightsV1Issue{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8383,71 +17672,83 @@ func (c *ProjectsLocationsConversationsAnalysesCreateCall) Do(opts ...googleapi. return ret, nil } -type ProjectsLocationsConversationsAnalysesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIssueModelsIssuesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an analysis. +// List: Lists issues. // -// - name: The name of the analysis to delete. -func (r *ProjectsLocationsConversationsAnalysesService) Delete(name string) *ProjectsLocationsConversationsAnalysesDeleteCall { - c := &ProjectsLocationsConversationsAnalysesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent resource of the issue. +func (r *ProjectsLocationsIssueModelsIssuesService) List(parent string) *ProjectsLocationsIssueModelsIssuesListCall { + c := &ProjectsLocationsIssueModelsIssuesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent 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 *ProjectsLocationsConversationsAnalysesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesDeleteCall { +func (c *ProjectsLocationsIssueModelsIssuesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesListCall { 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 *ProjectsLocationsIssueModelsIssuesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsIssuesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsAnalysesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesDeleteCall { +func (c *ProjectsLocationsIssueModelsIssuesListCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesListCall { 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 *ProjectsLocationsConversationsAnalysesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsIssuesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsAnalysesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIssueModelsIssuesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issues") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.analyses.delete" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.issues.list" 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 *ProjectsLocationsConversationsAnalysesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// *GoogleCloudContactcenterinsightsV1ListIssuesResponse.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 *ProjectsLocationsIssueModelsIssuesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListIssuesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8466,7 +17767,7 @@ func (c *ProjectsLocationsConversationsAnalysesDeleteCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudContactcenterinsightsV1ListIssuesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8479,66 +17780,69 @@ func (c *ProjectsLocationsConversationsAnalysesDeleteCall) Do(opts ...googleapi. return ret, nil } -type ProjectsLocationsConversationsAnalysesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIssueModelsIssuesPatchCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1issue *GoogleCloudContactcenterinsightsV1Issue + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets an analysis. +// Patch: Updates an issue. // -// - name: The name of the analysis to get. -func (r *ProjectsLocationsConversationsAnalysesService) Get(name string) *ProjectsLocationsConversationsAnalysesGetCall { - c := &ProjectsLocationsConversationsAnalysesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. The resource name of the issue. Format: +// projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{i +// ssue}. +func (r *ProjectsLocationsIssueModelsIssuesService) Patch(name string, googlecloudcontactcenterinsightsv1issue *GoogleCloudContactcenterinsightsV1Issue) *ProjectsLocationsIssueModelsIssuesPatchCall { + c := &ProjectsLocationsIssueModelsIssuesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudcontactcenterinsightsv1issue = googlecloudcontactcenterinsightsv1issue + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. +func (c *ProjectsLocationsIssueModelsIssuesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIssueModelsIssuesPatchCall { + 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 *ProjectsLocationsConversationsAnalysesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesGetCall { +func (c *ProjectsLocationsIssueModelsIssuesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesPatchCall { 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 *ProjectsLocationsConversationsAnalysesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsAnalysesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsAnalysesGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesGetCall { +func (c *ProjectsLocationsIssueModelsIssuesPatchCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesPatchCall { 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 *ProjectsLocationsConversationsAnalysesGetCall) Header() http.Header { +func (c *ProjectsLocationsIssueModelsIssuesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsAnalysesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsIssueModelsIssuesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1issue) + 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("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -8549,13 +17853,13 @@ func (c *ProjectsLocationsConversationsAnalysesGetCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.analyses.get" call. +// Do executes the "contactcenterinsights.projects.locations.issueModels.issues.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1Analysis.ServerResponse.Header or (if a +// *GoogleCloudContactcenterinsightsV1Issue.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 *ProjectsLocationsConversationsAnalysesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Analysis, error) { +func (c *ProjectsLocationsIssueModelsIssuesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Issue, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8574,7 +17878,7 @@ func (c *ProjectsLocationsConversationsAnalysesGetCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1Analysis{ + ret := &GoogleCloudContactcenterinsightsV1Issue{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8587,111 +17891,79 @@ func (c *ProjectsLocationsConversationsAnalysesGetCall) Do(opts ...googleapi.Cal return ret, nil } -type ProjectsLocationsConversationsAnalysesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists analyses. +// 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`. // -// - parent: The parent resource of the analyses. -func (r *ProjectsLocationsConversationsAnalysesService) List(parent string) *ProjectsLocationsConversationsAnalysesListCall { - c := &ProjectsLocationsConversationsAnalysesListCall{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 *ProjectsLocationsConversationsAnalysesListCall) Filter(filter string) *ProjectsLocationsConversationsAnalysesListCall { - 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 *ProjectsLocationsConversationsAnalysesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsAnalysesListCall { - 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 *ProjectsLocationsConversationsAnalysesListCall) PageToken(pageToken string) *ProjectsLocationsConversationsAnalysesListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{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 *ProjectsLocationsConversationsAnalysesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesListCall { +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { 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 *ProjectsLocationsConversationsAnalysesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsAnalysesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsConversationsAnalysesListCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesListCall { +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { 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 *ProjectsLocationsConversationsAnalysesListCall) Header() http.Header { +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversationsAnalysesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analyses") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + 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, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.conversations.analyses.list" call. +// Do executes the "contactcenterinsights.projects.locations.operations.cancel" 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 *ProjectsLocationsConversationsAnalysesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListAnalysesResponse, error) { +// *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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8710,7 +17982,7 @@ func (c *ProjectsLocationsConversationsAnalysesListCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1ListAnalysesResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8723,86 +17995,68 @@ func (c *ProjectsLocationsConversationsAnalysesListCall) Do(opts ...googleapi.Ca 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 *ProjectsLocationsConversationsAnalysesListCall) 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 ProjectsLocationsEncryptionSpecInitializeCall struct { - s *Service - name string - googlecloudcontactcenterinsightsv1initializeencryptionspecrequest *GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Initialize: Initializes a location-level encryption key specification. An -// error will result if the location has resources already created before the -// initialization. After the encryption specification is initialized at a -// location, it is immutable and all newly created resources under the location -// will be encrypted with the existing specification. +// 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: Immutable. The resource name of the encryption key specification -// resource. Format: projects/{project}/locations/{location}/encryptionSpec. -func (r *ProjectsLocationsEncryptionSpecService) Initialize(name string, googlecloudcontactcenterinsightsv1initializeencryptionspecrequest *GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest) *ProjectsLocationsEncryptionSpecInitializeCall { - c := &ProjectsLocationsEncryptionSpecInitializeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudcontactcenterinsightsv1initializeencryptionspecrequest = googlecloudcontactcenterinsightsv1initializeencryptionspecrequest 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 *ProjectsLocationsEncryptionSpecInitializeCall) Fields(s ...googleapi.Field) *ProjectsLocationsEncryptionSpecInitializeCall { +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { 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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEncryptionSpecInitializeCall) Context(ctx context.Context) *ProjectsLocationsEncryptionSpecInitializeCall { +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { 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 *ProjectsLocationsEncryptionSpecInitializeCall) Header() http.Header { +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEncryptionSpecInitializeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1initializeencryptionspecrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:initialize") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -8813,13 +18067,13 @@ func (c *ProjectsLocationsEncryptionSpecInitializeCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.encryptionSpec.initialize" call. +// Do executes the "contactcenterinsights.projects.locations.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 *ProjectsLocationsEncryptionSpecInitializeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8851,77 +18105,104 @@ func (c *ProjectsLocationsEncryptionSpecInitializeCall) Do(opts ...googleapi.Cal return ret, nil } -type ProjectsLocationsInsightsdataExportCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1exportinsightsdatarequest *GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Export: Export insights data to a destination defined in the request body. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // -// - parent: The parent resource to export data from. -func (r *ProjectsLocationsInsightsdataService) Export(parent string, googlecloudcontactcenterinsightsv1exportinsightsdatarequest *GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest) *ProjectsLocationsInsightsdataExportCall { - c := &ProjectsLocationsInsightsdataExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontactcenterinsightsv1exportinsightsdatarequest = googlecloudcontactcenterinsightsv1exportinsightsdatarequest +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsInsightsdataExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightsdataExportCall { +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsInsightsdataExportCall) Context(ctx context.Context) *ProjectsLocationsInsightsdataExportCall { +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { 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 *ProjectsLocationsInsightsdataExportCall) Header() http.Header { +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsInsightsdataExportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1exportinsightsdatarequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/insightsdata:export") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.insightsdata.export" call. +// Do executes the "contactcenterinsights.projects.locations.operations.list" 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 +// *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 *ProjectsLocationsInsightsdataExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8940,7 +18221,7 @@ func (c *ProjectsLocationsInsightsdataExportCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8953,83 +18234,100 @@ func (c *ProjectsLocationsInsightsdataExportCall) Do(opts ...googleapi.CallOptio return ret, nil } -type ProjectsLocationsIssueModelsCalculateIssueModelStatsCall struct { - s *Service - issueModel string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsOperationsListCall) 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) + } } -// CalculateIssueModelStats: Gets an issue model's statistics. +type ProjectsLocationsPhraseMatchersCreateCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a phrase matcher. // -// - issueModel: The resource name of the issue model to query against. -func (r *ProjectsLocationsIssueModelsService) CalculateIssueModelStats(issueModel string) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall { - c := &ProjectsLocationsIssueModelsCalculateIssueModelStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.issueModel = issueModel +// - parent: The parent resource of the phrase matcher. Required. The location +// to create a phrase matcher for. Format: `projects//locations/` or +// `projects//locations/`. +func (r *ProjectsLocationsPhraseMatchersService) Create(parent string, googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher) *ProjectsLocationsPhraseMatchersCreateCall { + c := &ProjectsLocationsPhraseMatchersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1phrasematcher = googlecloudcontactcenterinsightsv1phrasematcher 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 *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall { +func (c *ProjectsLocationsPhraseMatchersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersCreateCall { 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 *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall { +func (c *ProjectsLocationsPhraseMatchersCreateCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersCreateCall { 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 *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Header() http.Header { +func (c *ProjectsLocationsPhraseMatchersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsPhraseMatchersCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1phrasematcher) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+issueModel}:calculateIssueModelStats") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/phraseMatchers") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "issueModel": c.issueModel, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.calculateIssueModelStats" call. +// Do executes the "contactcenterinsights.projects.locations.phraseMatchers.create" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse.ServerRes -// ponse.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 *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse, error) { +// *GoogleCloudContactcenterinsightsV1PhraseMatcher.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 *ProjectsLocationsPhraseMatchersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1PhraseMatcher, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9048,7 +18346,7 @@ func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse{ + ret := &GoogleCloudContactcenterinsightsV1PhraseMatcher{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9061,77 +18359,71 @@ func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Do(opts ...go return ret, nil } -type ProjectsLocationsIssueModelsCreateCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPhraseMatchersDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates an issue model. +// Delete: Deletes a phrase matcher. // -// - parent: The parent resource of the issue model. -func (r *ProjectsLocationsIssueModelsService) Create(parent string, googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel) *ProjectsLocationsIssueModelsCreateCall { - c := &ProjectsLocationsIssueModelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontactcenterinsightsv1issuemodel = googlecloudcontactcenterinsightsv1issuemodel +// - name: The name of the phrase matcher to delete. +func (r *ProjectsLocationsPhraseMatchersService) Delete(name string) *ProjectsLocationsPhraseMatchersDeleteCall { + c := &ProjectsLocationsPhraseMatchersDeleteCall{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 *ProjectsLocationsIssueModelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsCreateCall { +func (c *ProjectsLocationsPhraseMatchersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsCreateCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsCreateCall { +func (c *ProjectsLocationsPhraseMatchersDeleteCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersDeleteCall { 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 *ProjectsLocationsIssueModelsCreateCall) Header() http.Header { +func (c *ProjectsLocationsPhraseMatchersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) +func (c *ProjectsLocationsPhraseMatchersDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1issuemodel) - if err != nil { - return nil, err - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issueModels") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.create" call. +// Do executes the "contactcenterinsights.projects.locations.phraseMatchers.delete" 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 *ProjectsLocationsIssueModelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// *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 *ProjectsLocationsPhraseMatchersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9150,7 +18442,7 @@ func (c *ProjectsLocationsIssueModelsCreateCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9163,19 +18455,20 @@ func (c *ProjectsLocationsIssueModelsCreateCall) Do(opts ...googleapi.CallOption return ret, nil } -type ProjectsLocationsIssueModelsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPhraseMatchersGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an issue model. +// Get: Gets a phrase matcher. // -// - name: The name of the issue model to delete. -func (r *ProjectsLocationsIssueModelsService) Delete(name string) *ProjectsLocationsIssueModelsDeleteCall { - c := &ProjectsLocationsIssueModelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the phrase matcher to get. +func (r *ProjectsLocationsPhraseMatchersService) Get(name string) *ProjectsLocationsPhraseMatchersGetCall { + c := &ProjectsLocationsPhraseMatchersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -9183,34 +18476,45 @@ func (r *ProjectsLocationsIssueModelsService) Delete(name string) *ProjectsLocat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIssueModelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsDeleteCall { +func (c *ProjectsLocationsPhraseMatchersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersGetCall { 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 *ProjectsLocationsPhraseMatchersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPhraseMatchersGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsDeleteCall { +func (c *ProjectsLocationsPhraseMatchersGetCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersGetCall { 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 *ProjectsLocationsIssueModelsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsPhraseMatchersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPhraseMatchersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -9221,13 +18525,13 @@ func (c *ProjectsLocationsIssueModelsDeleteCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.delete" call. +// Do executes the "contactcenterinsights.projects.locations.phraseMatchers.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 +// *GoogleCloudContactcenterinsightsV1PhraseMatcher.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 *ProjectsLocationsIssueModelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPhraseMatchersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1PhraseMatcher, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9246,7 +18550,7 @@ func (c *ProjectsLocationsIssueModelsDeleteCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudContactcenterinsightsV1PhraseMatcher{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9259,79 +18563,110 @@ func (c *ProjectsLocationsIssueModelsDeleteCall) Do(opts ...googleapi.CallOption return ret, nil } -type ProjectsLocationsIssueModelsDeployCall struct { - s *Service - name string - googlecloudcontactcenterinsightsv1deployissuemodelrequest *GoogleCloudContactcenterinsightsV1DeployIssueModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPhraseMatchersListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Deploy: Deploys an issue model. Returns an error if a model is already -// deployed. An issue model can only be used in analysis after it has been -// deployed. +// List: Lists phrase matchers. // -// - name: The issue model to deploy. -func (r *ProjectsLocationsIssueModelsService) Deploy(name string, googlecloudcontactcenterinsightsv1deployissuemodelrequest *GoogleCloudContactcenterinsightsV1DeployIssueModelRequest) *ProjectsLocationsIssueModelsDeployCall { - c := &ProjectsLocationsIssueModelsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudcontactcenterinsightsv1deployissuemodelrequest = googlecloudcontactcenterinsightsv1deployissuemodelrequest +// - parent: The parent resource of the phrase matcher. +func (r *ProjectsLocationsPhraseMatchersService) List(parent string) *ProjectsLocationsPhraseMatchersListCall { + c := &ProjectsLocationsPhraseMatchersListCall{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 phrase matchers with specific +// properties. +func (c *ProjectsLocationsPhraseMatchersListCall) Filter(filter string) *ProjectsLocationsPhraseMatchersListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// phrase matchers 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 *ProjectsLocationsPhraseMatchersListCall) PageSize(pageSize int64) *ProjectsLocationsPhraseMatchersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListPhraseMatchersResponse`. This value indicates that this is a +// continuation of a prior `ListPhraseMatchers` call and that the system should +// return the next page of data. +func (c *ProjectsLocationsPhraseMatchersListCall) PageToken(pageToken string) *ProjectsLocationsPhraseMatchersListCall { + 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 *ProjectsLocationsIssueModelsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsDeployCall { +func (c *ProjectsLocationsPhraseMatchersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersListCall { 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 *ProjectsLocationsPhraseMatchersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPhraseMatchersListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsDeployCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsDeployCall { +func (c *ProjectsLocationsPhraseMatchersListCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersListCall { 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 *ProjectsLocationsIssueModelsDeployCall) Header() http.Header { +func (c *ProjectsLocationsPhraseMatchersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsDeployCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1deployissuemodelrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsPhraseMatchersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:deploy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/phraseMatchers") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.deploy" call. +// Do executes the "contactcenterinsights.projects.locations.phraseMatchers.list" 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 *ProjectsLocationsIssueModelsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// *GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse.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 *ProjectsLocationsPhraseMatchersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9350,7 +18685,7 @@ func (c *ProjectsLocationsIssueModelsDeployCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9363,60 +18698,89 @@ func (c *ProjectsLocationsIssueModelsDeployCall) Do(opts ...googleapi.CallOption return ret, nil } -type ProjectsLocationsIssueModelsExportCall struct { - s *Service - name string - googlecloudcontactcenterinsightsv1exportissuemodelrequest *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsPhraseMatchersListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse) 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) + } } -// Export: Exports an issue model to the provided destination. +type ProjectsLocationsPhraseMatchersPatchCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a phrase matcher. // -// - name: The issue model to export. -func (r *ProjectsLocationsIssueModelsService) Export(name string, googlecloudcontactcenterinsightsv1exportissuemodelrequest *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest) *ProjectsLocationsIssueModelsExportCall { - c := &ProjectsLocationsIssueModelsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the phrase matcher. Format: +// projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}. +func (r *ProjectsLocationsPhraseMatchersService) Patch(name string, googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher) *ProjectsLocationsPhraseMatchersPatchCall { + c := &ProjectsLocationsPhraseMatchersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudcontactcenterinsightsv1exportissuemodelrequest = googlecloudcontactcenterinsightsv1exportissuemodelrequest + c.googlecloudcontactcenterinsightsv1phrasematcher = googlecloudcontactcenterinsightsv1phrasematcher + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// be updated. +func (c *ProjectsLocationsPhraseMatchersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsPhraseMatchersPatchCall { + 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 *ProjectsLocationsIssueModelsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsExportCall { +func (c *ProjectsLocationsPhraseMatchersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsExportCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsExportCall { +func (c *ProjectsLocationsPhraseMatchersPatchCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersPatchCall { 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 *ProjectsLocationsIssueModelsExportCall) Header() http.Header { +func (c *ProjectsLocationsPhraseMatchersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsExportCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPhraseMatchersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1exportissuemodelrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1phrasematcher) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:export") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -9427,13 +18791,13 @@ func (c *ProjectsLocationsIssueModelsExportCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.export" call. +// Do executes the "contactcenterinsights.projects.locations.phraseMatchers.patch" 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 +// *GoogleCloudContactcenterinsightsV1PhraseMatcher.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 *ProjectsLocationsIssueModelsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPhraseMatchersPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1PhraseMatcher, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9452,7 +18816,7 @@ func (c *ProjectsLocationsIssueModelsExportCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudContactcenterinsightsV1PhraseMatcher{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9465,83 +18829,87 @@ func (c *ProjectsLocationsIssueModelsExportCall) Do(opts ...googleapi.CallOption return ret, nil } -type ProjectsLocationsIssueModelsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsQaScorecardsCreateCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1qascorecard *GoogleCloudContactcenterinsightsV1QaScorecard + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets an issue model. +// Create: Create a QaScorecard. // -// - name: The name of the issue model to get. -func (r *ProjectsLocationsIssueModelsService) Get(name string) *ProjectsLocationsIssueModelsGetCall { - c := &ProjectsLocationsIssueModelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent resource of the QaScorecard. +func (r *ProjectsLocationsQaScorecardsService) Create(parent string, googlecloudcontactcenterinsightsv1qascorecard *GoogleCloudContactcenterinsightsV1QaScorecard) *ProjectsLocationsQaScorecardsCreateCall { + c := &ProjectsLocationsQaScorecardsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1qascorecard = googlecloudcontactcenterinsightsv1qascorecard + return c +} + +// QaScorecardId sets the optional parameter "qaScorecardId": A unique ID for +// the new QaScorecard. This ID will become the final component of the +// QaScorecard's resource name. If no ID is specified, a server-generated ID +// will be used. This value should be 4-64 characters and must match the +// regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`. +func (c *ProjectsLocationsQaScorecardsCreateCall) QaScorecardId(qaScorecardId string) *ProjectsLocationsQaScorecardsCreateCall { + c.urlParams_.Set("qaScorecardId", qaScorecardId) 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 *ProjectsLocationsIssueModelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsGetCall { +func (c *ProjectsLocationsQaScorecardsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsCreateCall { 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 *ProjectsLocationsIssueModelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsGetCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsGetCall { +func (c *ProjectsLocationsQaScorecardsCreateCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsCreateCall { 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 *ProjectsLocationsIssueModelsGetCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ -} - -func (c *ProjectsLocationsIssueModelsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +} + +func (c *ProjectsLocationsQaScorecardsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1qascorecard) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/qaScorecards") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.get" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.create" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1IssueModel.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudContactcenterinsightsV1QaScorecard.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 *ProjectsLocationsIssueModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1IssueModel, error) { +func (c *ProjectsLocationsQaScorecardsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1QaScorecard, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9560,7 +18928,7 @@ func (c *ProjectsLocationsIssueModelsGetCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1IssueModel{ + ret := &GoogleCloudContactcenterinsightsV1QaScorecard{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9573,77 +18941,79 @@ func (c *ProjectsLocationsIssueModelsGetCall) Do(opts ...googleapi.CallOption) ( return ret, nil } -type ProjectsLocationsIssueModelsImportCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1importissuemodelrequest *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsQaScorecardsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Import: Imports an issue model from a Cloud Storage bucket. +// Delete: Deletes a QaScorecard. // -// - parent: The parent resource of the issue model. -func (r *ProjectsLocationsIssueModelsService) Import(parent string, googlecloudcontactcenterinsightsv1importissuemodelrequest *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest) *ProjectsLocationsIssueModelsImportCall { - c := &ProjectsLocationsIssueModelsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontactcenterinsightsv1importissuemodelrequest = googlecloudcontactcenterinsightsv1importissuemodelrequest +// - name: The name of the QaScorecard to delete. +func (r *ProjectsLocationsQaScorecardsService) Delete(name string) *ProjectsLocationsQaScorecardsDeleteCall { + c := &ProjectsLocationsQaScorecardsDeleteCall{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 +// QaScorecard's child resources will also be deleted. Otherwise, the request +// will only succeed if it has none. +func (c *ProjectsLocationsQaScorecardsDeleteCall) Force(force bool) *ProjectsLocationsQaScorecardsDeleteCall { + 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 *ProjectsLocationsIssueModelsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsImportCall { +func (c *ProjectsLocationsQaScorecardsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsImportCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsImportCall { +func (c *ProjectsLocationsQaScorecardsDeleteCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsDeleteCall { 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 *ProjectsLocationsIssueModelsImportCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsImportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) +func (c *ProjectsLocationsQaScorecardsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1importissuemodelrequest) - if err != nil { - return nil, err - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issueModels:import") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.import" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.delete" 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 *ProjectsLocationsIssueModelsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// *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 *ProjectsLocationsQaScorecardsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9662,7 +19032,7 @@ func (c *ProjectsLocationsIssueModelsImportCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9675,28 +19045,28 @@ func (c *ProjectsLocationsIssueModelsImportCall) Do(opts ...googleapi.CallOption return ret, nil } -type ProjectsLocationsIssueModelsListCall struct { +type ProjectsLocationsQaScorecardsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists issue models. +// Get: Gets a QaScorecard. // -// - parent: The parent resource of the issue model. -func (r *ProjectsLocationsIssueModelsService) List(parent string) *ProjectsLocationsIssueModelsListCall { - c := &ProjectsLocationsIssueModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the QaScorecard to get. +func (r *ProjectsLocationsQaScorecardsService) Get(name string) *ProjectsLocationsQaScorecardsGetCall { + c := &ProjectsLocationsQaScorecardsGetCall{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 *ProjectsLocationsIssueModelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsListCall { +func (c *ProjectsLocationsQaScorecardsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9704,27 +19074,27 @@ func (c *ProjectsLocationsIssueModelsListCall) Fields(s ...googleapi.Field) *Pro // 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 *ProjectsLocationsIssueModelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsListCall { +func (c *ProjectsLocationsQaScorecardsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsQaScorecardsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsListCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsListCall { +func (c *ProjectsLocationsQaScorecardsGetCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsGetCall { 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 *ProjectsLocationsIssueModelsListCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsQaScorecardsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -9732,7 +19102,7 @@ func (c *ProjectsLocationsIssueModelsListCall) doRequest(alt string) (*http.Resp var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issueModels") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -9740,18 +19110,18 @@ func (c *ProjectsLocationsIssueModelsListCall) doRequest(alt string) (*http.Resp } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.list" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1ListIssueModelsResponse.ServerResponse.Hea -// der 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 *ProjectsLocationsIssueModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListIssueModelsResponse, error) { +// *GoogleCloudContactcenterinsightsV1QaScorecard.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 *ProjectsLocationsQaScorecardsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1QaScorecard, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9770,7 +19140,7 @@ func (c *ProjectsLocationsIssueModelsListCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1ListIssueModelsResponse{ + ret := &GoogleCloudContactcenterinsightsV1QaScorecard{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9783,85 +19153,102 @@ func (c *ProjectsLocationsIssueModelsListCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsIssueModelsPatchCall struct { - s *Service - name string - googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsQaScorecardsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates an issue model. +// List: Lists QaScorecards. // -// - name: Immutable. The resource name of the issue model. Format: -// projects/{project}/locations/{location}/issueModels/{issue_model}. -func (r *ProjectsLocationsIssueModelsService) Patch(name string, googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel) *ProjectsLocationsIssueModelsPatchCall { - c := &ProjectsLocationsIssueModelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudcontactcenterinsightsv1issuemodel = googlecloudcontactcenterinsightsv1issuemodel +// - parent: The parent resource of the scorecards. +func (r *ProjectsLocationsQaScorecardsService) List(parent string) *ProjectsLocationsQaScorecardsListCall { + c := &ProjectsLocationsQaScorecardsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// UpdateMask sets the optional parameter "updateMask": The list of fields to -// be updated. -func (c *ProjectsLocationsIssueModelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIssueModelsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// PageSize sets the optional parameter "pageSize": The maximum number of +// scorecards to return in the response. If the 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 *ProjectsLocationsQaScorecardsListCall) PageSize(pageSize int64) *ProjectsLocationsQaScorecardsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListQaScorecardsResponse`. This value indicates that this is a +// continuation of a prior `ListQaScorecards` call and that the system should +// return the next page of data. +func (c *ProjectsLocationsQaScorecardsListCall) PageToken(pageToken string) *ProjectsLocationsQaScorecardsListCall { + 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 *ProjectsLocationsIssueModelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsPatchCall { +func (c *ProjectsLocationsQaScorecardsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsListCall { 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 *ProjectsLocationsQaScorecardsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsQaScorecardsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsPatchCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsPatchCall { +func (c *ProjectsLocationsQaScorecardsListCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsListCall { 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 *ProjectsLocationsIssueModelsPatchCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1issuemodel) - if err != nil { - return nil, err +func (c *ProjectsLocationsQaScorecardsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/qaScorecards") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.patch" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1IssueModel.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 *ProjectsLocationsIssueModelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1IssueModel, error) { +// *GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse.ServerResponse.He +// ader 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 *ProjectsLocationsQaScorecardsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9880,7 +19267,7 @@ func (c *ProjectsLocationsIssueModelsPatchCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1IssueModel{ + ret := &GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9893,61 +19280,91 @@ func (c *ProjectsLocationsIssueModelsPatchCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsIssueModelsUndeployCall struct { - s *Service - name string - googlecloudcontactcenterinsightsv1undeployissuemodelrequest *GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsQaScorecardsListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse) 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) + } } -// Undeploy: Undeploys an issue model. An issue model can not be used in -// analysis after it has been undeployed. +type ProjectsLocationsQaScorecardsPatchCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1qascorecard *GoogleCloudContactcenterinsightsV1QaScorecard + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a QaScorecard. // -// - name: The issue model to undeploy. -func (r *ProjectsLocationsIssueModelsService) Undeploy(name string, googlecloudcontactcenterinsightsv1undeployissuemodelrequest *GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest) *ProjectsLocationsIssueModelsUndeployCall { - c := &ProjectsLocationsIssueModelsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Identifier. The scorecard name. Format: +// projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}. +func (r *ProjectsLocationsQaScorecardsService) Patch(name string, googlecloudcontactcenterinsightsv1qascorecard *GoogleCloudContactcenterinsightsV1QaScorecard) *ProjectsLocationsQaScorecardsPatchCall { + c := &ProjectsLocationsQaScorecardsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudcontactcenterinsightsv1undeployissuemodelrequest = googlecloudcontactcenterinsightsv1undeployissuemodelrequest + c.googlecloudcontactcenterinsightsv1qascorecard = googlecloudcontactcenterinsightsv1qascorecard + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The list of +// fields to be updated. All possible fields can be updated by passing `*`, or +// a subset of the following updateable fields can be provided: * `description` +// * `display_name` +func (c *ProjectsLocationsQaScorecardsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsQaScorecardsPatchCall { + 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 *ProjectsLocationsIssueModelsUndeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsUndeployCall { +func (c *ProjectsLocationsQaScorecardsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsUndeployCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsUndeployCall { +func (c *ProjectsLocationsQaScorecardsPatchCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsPatchCall { 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 *ProjectsLocationsIssueModelsUndeployCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsUndeployCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsQaScorecardsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1undeployissuemodelrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1qascorecard) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undeploy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -9958,13 +19375,13 @@ func (c *ProjectsLocationsIssueModelsUndeployCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.undeploy" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.patch" 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 +// *GoogleCloudContactcenterinsightsV1QaScorecard.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 *ProjectsLocationsIssueModelsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsQaScorecardsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1QaScorecard, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9983,7 +19400,7 @@ func (c *ProjectsLocationsIssueModelsUndeployCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudContactcenterinsightsV1QaScorecard{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9996,71 +19413,88 @@ func (c *ProjectsLocationsIssueModelsUndeployCall) Do(opts ...googleapi.CallOpti return ret, nil } -type ProjectsLocationsIssueModelsIssuesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsQaScorecardsRevisionsCreateCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1qascorecardrevision *GoogleCloudContactcenterinsightsV1QaScorecardRevision + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an issue. +// Create: Creates a QaScorecardRevision. // -// - name: The name of the issue to delete. -func (r *ProjectsLocationsIssueModelsIssuesService) Delete(name string) *ProjectsLocationsIssueModelsIssuesDeleteCall { - c := &ProjectsLocationsIssueModelsIssuesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent resource of the QaScorecardRevision. +func (r *ProjectsLocationsQaScorecardsRevisionsService) Create(parent string, googlecloudcontactcenterinsightsv1qascorecardrevision *GoogleCloudContactcenterinsightsV1QaScorecardRevision) *ProjectsLocationsQaScorecardsRevisionsCreateCall { + c := &ProjectsLocationsQaScorecardsRevisionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1qascorecardrevision = googlecloudcontactcenterinsightsv1qascorecardrevision + return c +} + +// QaScorecardRevisionId sets the optional parameter "qaScorecardRevisionId": A +// unique ID for the new QaScorecardRevision. This ID will become the final +// component of the QaScorecardRevision's resource name. If no ID is specified, +// a server-generated ID will be used. This value should be 4-64 characters and +// must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are +// `a-z-`. +func (c *ProjectsLocationsQaScorecardsRevisionsCreateCall) QaScorecardRevisionId(qaScorecardRevisionId string) *ProjectsLocationsQaScorecardsRevisionsCreateCall { + c.urlParams_.Set("qaScorecardRevisionId", qaScorecardRevisionId) 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 *ProjectsLocationsIssueModelsIssuesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesDeleteCall { +func (c *ProjectsLocationsQaScorecardsRevisionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesDeleteCall { +func (c *ProjectsLocationsQaScorecardsRevisionsCreateCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsCreateCall { 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 *ProjectsLocationsIssueModelsIssuesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsQaScorecardsRevisionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1qascorecardrevision) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/revisions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.issues.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 *ProjectsLocationsIssueModelsIssuesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1QaScorecardRevision.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 *ProjectsLocationsQaScorecardsRevisionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1QaScorecardRevision, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10079,7 +19513,7 @@ func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudContactcenterinsightsV1QaScorecardRevision{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10092,66 +19526,62 @@ func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) Do(opts ...googleapi.Call return ret, nil } -type ProjectsLocationsIssueModelsIssuesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsQaScorecardsRevisionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets an issue. +// Delete: Deletes a QaScorecardRevision. // -// - name: The name of the issue to get. -func (r *ProjectsLocationsIssueModelsIssuesService) Get(name string) *ProjectsLocationsIssueModelsIssuesGetCall { - c := &ProjectsLocationsIssueModelsIssuesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the QaScorecardRevision to delete. +func (r *ProjectsLocationsQaScorecardsRevisionsService) Delete(name string) *ProjectsLocationsQaScorecardsRevisionsDeleteCall { + c := &ProjectsLocationsQaScorecardsRevisionsDeleteCall{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 +// QaScorecardRevision's child resources will also be deleted. Otherwise, the +// request will only succeed if it has none. +func (c *ProjectsLocationsQaScorecardsRevisionsDeleteCall) Force(force bool) *ProjectsLocationsQaScorecardsRevisionsDeleteCall { + 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 *ProjectsLocationsIssueModelsIssuesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesGetCall { +func (c *ProjectsLocationsQaScorecardsRevisionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsDeleteCall { 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 *ProjectsLocationsIssueModelsIssuesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsIssuesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsIssuesGetCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesGetCall { +func (c *ProjectsLocationsQaScorecardsRevisionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsDeleteCall { 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 *ProjectsLocationsIssueModelsIssuesGetCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsIssuesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -10162,13 +19592,13 @@ func (c *ProjectsLocationsIssueModelsIssuesGetCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.issues.get" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1Issue.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 *ProjectsLocationsIssueModelsIssuesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Issue, error) { +// *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 *ProjectsLocationsQaScorecardsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10187,7 +19617,7 @@ func (c *ProjectsLocationsIssueModelsIssuesGetCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1Issue{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10200,83 +19630,77 @@ func (c *ProjectsLocationsIssueModelsIssuesGetCall) Do(opts ...googleapi.CallOpt return ret, nil } -type ProjectsLocationsIssueModelsIssuesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsQaScorecardsRevisionsDeployCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1deployqascorecardrevisionrequest *GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists issues. +// Deploy: Deploy a QaScorecardRevision. // -// - parent: The parent resource of the issue. -func (r *ProjectsLocationsIssueModelsIssuesService) List(parent string) *ProjectsLocationsIssueModelsIssuesListCall { - c := &ProjectsLocationsIssueModelsIssuesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the QaScorecardRevision to deploy. +func (r *ProjectsLocationsQaScorecardsRevisionsService) Deploy(name string, googlecloudcontactcenterinsightsv1deployqascorecardrevisionrequest *GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest) *ProjectsLocationsQaScorecardsRevisionsDeployCall { + c := &ProjectsLocationsQaScorecardsRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudcontactcenterinsightsv1deployqascorecardrevisionrequest = googlecloudcontactcenterinsightsv1deployqascorecardrevisionrequest 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 *ProjectsLocationsIssueModelsIssuesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesListCall { +func (c *ProjectsLocationsQaScorecardsRevisionsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsDeployCall { 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 *ProjectsLocationsIssueModelsIssuesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsIssuesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsIssuesListCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesListCall { +func (c *ProjectsLocationsQaScorecardsRevisionsDeployCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsDeployCall { 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 *ProjectsLocationsIssueModelsIssuesListCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsDeployCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsIssuesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsQaScorecardsRevisionsDeployCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1deployqascorecardrevisionrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:deploy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + 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, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.issues.list" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.deploy" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1ListIssuesResponse.ServerResponse.Header +// *GoogleCloudContactcenterinsightsV1QaScorecardRevision.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 *ProjectsLocationsIssueModelsIssuesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListIssuesResponse, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1QaScorecardRevision, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10295,7 +19719,7 @@ func (c *ProjectsLocationsIssueModelsIssuesListCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1ListIssuesResponse{ + ret := &GoogleCloudContactcenterinsightsV1QaScorecardRevision{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10308,69 +19732,66 @@ func (c *ProjectsLocationsIssueModelsIssuesListCall) Do(opts ...googleapi.CallOp return ret, nil } -type ProjectsLocationsIssueModelsIssuesPatchCall struct { - s *Service - name string - googlecloudcontactcenterinsightsv1issue *GoogleCloudContactcenterinsightsV1Issue - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsQaScorecardsRevisionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates an issue. +// Get: Gets a QaScorecardRevision. // -// - name: Immutable. The resource name of the issue. Format: -// projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{i -// ssue}. -func (r *ProjectsLocationsIssueModelsIssuesService) Patch(name string, googlecloudcontactcenterinsightsv1issue *GoogleCloudContactcenterinsightsV1Issue) *ProjectsLocationsIssueModelsIssuesPatchCall { - c := &ProjectsLocationsIssueModelsIssuesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the QaScorecardRevision to get. +func (r *ProjectsLocationsQaScorecardsRevisionsService) Get(name string) *ProjectsLocationsQaScorecardsRevisionsGetCall { + c := &ProjectsLocationsQaScorecardsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudcontactcenterinsightsv1issue = googlecloudcontactcenterinsightsv1issue - return c -} - -// UpdateMask sets the optional parameter "updateMask": The list of fields to -// be updated. -func (c *ProjectsLocationsIssueModelsIssuesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIssueModelsIssuesPatchCall { - 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 *ProjectsLocationsIssueModelsIssuesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesPatchCall { +func (c *ProjectsLocationsQaScorecardsRevisionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsGetCall { 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 *ProjectsLocationsQaScorecardsRevisionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsQaScorecardsRevisionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIssueModelsIssuesPatchCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesPatchCall { +func (c *ProjectsLocationsQaScorecardsRevisionsGetCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsGetCall { 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 *ProjectsLocationsIssueModelsIssuesPatchCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIssueModelsIssuesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1issue) - if err != nil { - return nil, err +func (c *ProjectsLocationsQaScorecardsRevisionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -10381,13 +19802,13 @@ func (c *ProjectsLocationsIssueModelsIssuesPatchCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.issueModels.issues.patch" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1Issue.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 +// *GoogleCloudContactcenterinsightsV1QaScorecardRevision.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 *ProjectsLocationsIssueModelsIssuesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Issue, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1QaScorecardRevision, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10406,7 +19827,7 @@ func (c *ProjectsLocationsIssueModelsIssuesPatchCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1Issue{ + ret := &GoogleCloudContactcenterinsightsV1QaScorecardRevision{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10419,79 +19840,112 @@ func (c *ProjectsLocationsIssueModelsIssuesPatchCall) Do(opts ...googleapi.CallO return ret, nil } -type ProjectsLocationsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsQaScorecardsRevisionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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`. +// List: Lists all revisions under the parent QaScorecard. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall { - c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent resource of the scorecard revisions. To list all +// revisions of all scorecards, substitute the QaScorecard ID with a '-' +// character. +func (r *ProjectsLocationsQaScorecardsRevisionsService) List(parent string) *ProjectsLocationsQaScorecardsRevisionsListCall { + c := &ProjectsLocationsQaScorecardsRevisionsListCall{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 scorecard revisions with specific +// properties. +func (c *ProjectsLocationsQaScorecardsRevisionsListCall) Filter(filter string) *ProjectsLocationsQaScorecardsRevisionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// scorecard revisions to return in the response. If the 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 *ProjectsLocationsQaScorecardsRevisionsListCall) PageSize(pageSize int64) *ProjectsLocationsQaScorecardsRevisionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListQaScorecardRevisionsResponse`. This value indicates that this is a +// continuation of a prior `ListQaScorecardRevisions` call and that the system +// should return the next page of data. +func (c *ProjectsLocationsQaScorecardsRevisionsListCall) PageToken(pageToken string) *ProjectsLocationsQaScorecardsRevisionsListCall { + 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 *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsQaScorecardsRevisionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsListCall { 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 *ProjectsLocationsQaScorecardsRevisionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsQaScorecardsRevisionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsQaScorecardsRevisionsListCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsListCall { 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 *ProjectsLocationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/revisions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.operations.cancel" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.list" 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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// *GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse.ServerRes +// ponse.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 *ProjectsLocationsQaScorecardsRevisionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10510,7 +19964,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10523,85 +19977,98 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsQaScorecardsRevisionsListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse) 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 ProjectsLocationsQaScorecardsRevisionsTuneQaScorecardRevisionCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1tuneqascorecardrevisionrequest *GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest + urlParams_ gensupport.URLParams + 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. +// TuneQaScorecardRevision: Fine tune one or more QaModels. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { - c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent resource for new fine tuning job instance. +func (r *ProjectsLocationsQaScorecardsRevisionsService) TuneQaScorecardRevision(parent string, googlecloudcontactcenterinsightsv1tuneqascorecardrevisionrequest *GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest) *ProjectsLocationsQaScorecardsRevisionsTuneQaScorecardRevisionCall { + c := &ProjectsLocationsQaScorecardsRevisionsTuneQaScorecardRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1tuneqascorecardrevisionrequest = googlecloudcontactcenterinsightsv1tuneqascorecardrevisionrequest 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 *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsQaScorecardsRevisionsTuneQaScorecardRevisionCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsTuneQaScorecardRevisionCall { 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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsQaScorecardsRevisionsTuneQaScorecardRevisionCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsTuneQaScorecardRevisionCall { 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 *ProjectsLocationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsTuneQaScorecardRevisionCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsQaScorecardsRevisionsTuneQaScorecardRevisionCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1tuneqascorecardrevisionrequest) + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:tuneQaScorecardRevision") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.operations.get" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.tuneQaScorecardRevision" 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 *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsTuneQaScorecardRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10633,87 +20100,60 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* return ret, nil } -type ProjectsLocationsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsQaScorecardsRevisionsUndeployCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1undeployqascorecardrevisionrequest *GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest + urlParams_ gensupport.URLParams + 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`. +// Undeploy: Undeploy a QaScorecardRevision. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { - c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the QaScorecardRevision to undeploy. +func (r *ProjectsLocationsQaScorecardsRevisionsService) Undeploy(name string, googlecloudcontactcenterinsightsv1undeployqascorecardrevisionrequest *GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest) *ProjectsLocationsQaScorecardsRevisionsUndeployCall { + c := &ProjectsLocationsQaScorecardsRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) + c.googlecloudcontactcenterinsightsv1undeployqascorecardrevisionrequest = googlecloudcontactcenterinsightsv1undeployqascorecardrevisionrequest 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 *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsQaScorecardsRevisionsUndeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsUndeployCall { 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsQaScorecardsRevisionsUndeployCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsUndeployCall { 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 *ProjectsLocationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsUndeployCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsQaScorecardsRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1undeployqascorecardrevisionrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undeploy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -10724,13 +20164,13 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.operations.list" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.undeploy" 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 +// *GoogleCloudContactcenterinsightsV1QaScorecardRevision.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1QaScorecardRevision, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10749,7 +20189,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudContactcenterinsightsV1QaScorecardRevision{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10762,81 +20202,68 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( 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 *ProjectsLocationsOperationsListCall) 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 ProjectsLocationsPhraseMatchersCreateCall struct { - s *Service - parent string - googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1qaquestion *GoogleCloudContactcenterinsightsV1QaQuestion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a phrase matcher. +// Create: Create a QaQuestion. // -// - parent: The parent resource of the phrase matcher. Required. The location -// to create a phrase matcher for. Format: `projects//locations/` or -// `projects//locations/`. -func (r *ProjectsLocationsPhraseMatchersService) Create(parent string, googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher) *ProjectsLocationsPhraseMatchersCreateCall { - c := &ProjectsLocationsPhraseMatchersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent resource of the QaQuestion. +func (r *ProjectsLocationsQaScorecardsRevisionsQaQuestionsService) Create(parent string, googlecloudcontactcenterinsightsv1qaquestion *GoogleCloudContactcenterinsightsV1QaQuestion) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall { + c := &ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudcontactcenterinsightsv1phrasematcher = googlecloudcontactcenterinsightsv1phrasematcher + c.googlecloudcontactcenterinsightsv1qaquestion = googlecloudcontactcenterinsightsv1qaquestion + return c +} + +// QaQuestionId sets the optional parameter "qaQuestionId": A unique ID for the +// new question. This ID will become the final component of the question's +// resource name. If no ID is specified, a server-generated ID will be used. +// This value should be 4-64 characters and must match the regular expression +// `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`. +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall) QaQuestionId(qaQuestionId string) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall { + c.urlParams_.Set("qaQuestionId", qaQuestionId) 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 *ProjectsLocationsPhraseMatchersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersCreateCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsPhraseMatchersCreateCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersCreateCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall { 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 *ProjectsLocationsPhraseMatchersCreateCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPhraseMatchersCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1phrasematcher) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1qaquestion) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/phraseMatchers") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/qaQuestions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -10849,13 +20276,13 @@ func (c *ProjectsLocationsPhraseMatchersCreateCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.phraseMatchers.create" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.create" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1PhraseMatcher.ServerResponse.Header or -// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudContactcenterinsightsV1QaQuestion.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 *ProjectsLocationsPhraseMatchersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1PhraseMatcher, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1QaQuestion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10874,7 +20301,7 @@ func (c *ProjectsLocationsPhraseMatchersCreateCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1PhraseMatcher{ + ret := &GoogleCloudContactcenterinsightsV1QaQuestion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10887,7 +20314,7 @@ func (c *ProjectsLocationsPhraseMatchersCreateCall) Do(opts ...googleapi.CallOpt return ret, nil } -type ProjectsLocationsPhraseMatchersDeleteCall struct { +type ProjectsLocationsQaScorecardsRevisionsQaQuestionsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -10895,11 +20322,11 @@ type ProjectsLocationsPhraseMatchersDeleteCall struct { header_ http.Header } -// Delete: Deletes a phrase matcher. +// Delete: Deletes a QaQuestion. // -// - name: The name of the phrase matcher to delete. -func (r *ProjectsLocationsPhraseMatchersService) Delete(name string) *ProjectsLocationsPhraseMatchersDeleteCall { - c := &ProjectsLocationsPhraseMatchersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the QaQuestion to delete. +func (r *ProjectsLocationsQaScorecardsRevisionsQaQuestionsService) Delete(name string) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsDeleteCall { + c := &ProjectsLocationsQaScorecardsRevisionsQaQuestionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -10907,27 +20334,27 @@ func (r *ProjectsLocationsPhraseMatchersService) Delete(name string) *ProjectsLo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsPhraseMatchersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersDeleteCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsPhraseMatchersDeleteCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersDeleteCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsDeleteCall { 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 *ProjectsLocationsPhraseMatchersDeleteCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPhraseMatchersDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) var body io.Reader = nil c.urlParams_.Set("alt", alt) @@ -10945,13 +20372,13 @@ func (c *ProjectsLocationsPhraseMatchersDeleteCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.phraseMatchers.delete" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.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 *ProjectsLocationsPhraseMatchersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10983,7 +20410,7 @@ func (c *ProjectsLocationsPhraseMatchersDeleteCall) Do(opts ...googleapi.CallOpt return ret, nil } -type ProjectsLocationsPhraseMatchersGetCall struct { +type ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -10992,11 +20419,11 @@ type ProjectsLocationsPhraseMatchersGetCall struct { header_ http.Header } -// Get: Gets a phrase matcher. +// Get: Gets a QaQuestion. // -// - name: The name of the phrase matcher to get. -func (r *ProjectsLocationsPhraseMatchersService) Get(name string) *ProjectsLocationsPhraseMatchersGetCall { - c := &ProjectsLocationsPhraseMatchersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the QaQuestion to get. +func (r *ProjectsLocationsQaScorecardsRevisionsQaQuestionsService) Get(name string) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall { + c := &ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -11004,7 +20431,7 @@ func (r *ProjectsLocationsPhraseMatchersService) Get(name string) *ProjectsLocat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsPhraseMatchersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersGetCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -11012,27 +20439,27 @@ func (c *ProjectsLocationsPhraseMatchersGetCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsPhraseMatchersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPhraseMatchersGetCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsPhraseMatchersGetCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersGetCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall { 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 *ProjectsLocationsPhraseMatchersGetCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPhraseMatchersGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -11053,13 +20480,13 @@ func (c *ProjectsLocationsPhraseMatchersGetCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.phraseMatchers.get" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1PhraseMatcher.ServerResponse.Header or -// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudContactcenterinsightsV1QaQuestion.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 *ProjectsLocationsPhraseMatchersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1PhraseMatcher, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1QaQuestion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11078,7 +20505,7 @@ func (c *ProjectsLocationsPhraseMatchersGetCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1PhraseMatcher{ + ret := &GoogleCloudContactcenterinsightsV1QaQuestion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11091,7 +20518,7 @@ func (c *ProjectsLocationsPhraseMatchersGetCall) Do(opts ...googleapi.CallOption return ret, nil } -type ProjectsLocationsPhraseMatchersListCall struct { +type ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -11100,38 +20527,30 @@ type ProjectsLocationsPhraseMatchersListCall struct { header_ http.Header } -// List: Lists phrase matchers. +// List: Lists QaQuestions. // -// - parent: The parent resource of the phrase matcher. -func (r *ProjectsLocationsPhraseMatchersService) List(parent string) *ProjectsLocationsPhraseMatchersListCall { - c := &ProjectsLocationsPhraseMatchersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent resource of the questions. +func (r *ProjectsLocationsQaScorecardsRevisionsQaQuestionsService) List(parent string) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall { + c := &ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall{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 phrase matchers with specific -// properties. -func (c *ProjectsLocationsPhraseMatchersListCall) Filter(filter string) *ProjectsLocationsPhraseMatchersListCall { - c.urlParams_.Set("filter", filter) - return c -} - // PageSize sets the optional parameter "pageSize": The maximum number of -// phrase matchers 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 *ProjectsLocationsPhraseMatchersListCall) PageSize(pageSize int64) *ProjectsLocationsPhraseMatchersListCall { +// questions to return in the response. If the 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 *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall) PageSize(pageSize int64) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The value returned by the -// last `ListPhraseMatchersResponse`. This value indicates that this is a -// continuation of a prior `ListPhraseMatchers` call and that the system should +// last `ListQaQuestionsResponse`. This value indicates that this is a +// continuation of a prior `ListQaQuestions` call and that the system should // return the next page of data. -func (c *ProjectsLocationsPhraseMatchersListCall) PageToken(pageToken string) *ProjectsLocationsPhraseMatchersListCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall) PageToken(pageToken string) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -11139,7 +20558,7 @@ func (c *ProjectsLocationsPhraseMatchersListCall) PageToken(pageToken string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsPhraseMatchersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersListCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -11147,27 +20566,27 @@ func (c *ProjectsLocationsPhraseMatchersListCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsPhraseMatchersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPhraseMatchersListCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsPhraseMatchersListCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersListCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall { 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 *ProjectsLocationsPhraseMatchersListCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPhraseMatchersListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -11175,7 +20594,7 @@ func (c *ProjectsLocationsPhraseMatchersListCall) doRequest(alt string) (*http.R var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/phraseMatchers") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/qaQuestions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -11188,13 +20607,13 @@ func (c *ProjectsLocationsPhraseMatchersListCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.phraseMatchers.list" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse.ServerResponse. -// Header or (if a response was returned at all) in +// *GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse.ServerResponse.Hea +// der 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 *ProjectsLocationsPhraseMatchersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11213,7 +20632,7 @@ func (c *ProjectsLocationsPhraseMatchersListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse{ + ret := &GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11229,7 +20648,7 @@ func (c *ProjectsLocationsPhraseMatchersListCall) Do(opts ...googleapi.CallOptio // 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 *ProjectsLocationsPhraseMatchersListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse) error) error { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -11247,29 +20666,33 @@ func (c *ProjectsLocationsPhraseMatchersListCall) Pages(ctx context.Context, f f } } -type ProjectsLocationsPhraseMatchersPatchCall struct { - s *Service - name string - googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1qaquestion *GoogleCloudContactcenterinsightsV1QaQuestion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a phrase matcher. +// Patch: Updates a QaQuestion. // -// - name: The resource name of the phrase matcher. Format: -// projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}. -func (r *ProjectsLocationsPhraseMatchersService) Patch(name string, googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher) *ProjectsLocationsPhraseMatchersPatchCall { - c := &ProjectsLocationsPhraseMatchersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Identifier. The resource name of the question. Format: +// projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisio +// ns/{revision}/qaQuestions/{qa_question}. +func (r *ProjectsLocationsQaScorecardsRevisionsQaQuestionsService) Patch(name string, googlecloudcontactcenterinsightsv1qaquestion *GoogleCloudContactcenterinsightsV1QaQuestion) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall { + c := &ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudcontactcenterinsightsv1phrasematcher = googlecloudcontactcenterinsightsv1phrasematcher + c.googlecloudcontactcenterinsightsv1qaquestion = googlecloudcontactcenterinsightsv1qaquestion return c } -// UpdateMask sets the optional parameter "updateMask": The list of fields to -// be updated. -func (c *ProjectsLocationsPhraseMatchersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsPhraseMatchersPatchCall { +// UpdateMask sets the optional parameter "updateMask": Required. The list of +// fields to be updated. All possible fields can be updated by passing `*`, or +// a subset of the following updateable fields can be provided: * +// `abbreviation` * `answer_choices` * `answer_instructions` * `order` * +// `question_body` * `tags` +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -11277,30 +20700,30 @@ func (c *ProjectsLocationsPhraseMatchersPatchCall) UpdateMask(updateMask string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsPhraseMatchersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersPatchCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsPhraseMatchersPatchCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersPatchCall { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall) Context(ctx context.Context) *ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall { 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 *ProjectsLocationsPhraseMatchersPatchCall) Header() http.Header { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPhraseMatchersPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1phrasematcher) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1qaquestion) if err != nil { return nil, err } @@ -11319,13 +20742,13 @@ func (c *ProjectsLocationsPhraseMatchersPatchCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contactcenterinsights.projects.locations.phraseMatchers.patch" call. +// Do executes the "contactcenterinsights.projects.locations.qaScorecards.revisions.qaQuestions.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudContactcenterinsightsV1PhraseMatcher.ServerResponse.Header or -// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudContactcenterinsightsV1QaQuestion.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 *ProjectsLocationsPhraseMatchersPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1PhraseMatcher, error) { +func (c *ProjectsLocationsQaScorecardsRevisionsQaQuestionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1QaQuestion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11344,7 +20767,7 @@ func (c *ProjectsLocationsPhraseMatchersPatchCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContactcenterinsightsV1PhraseMatcher{ + ret := &GoogleCloudContactcenterinsightsV1QaQuestion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index d4ffe94761a..cbda5ea7771 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -9267,7 +9267,7 @@ } } }, - "revision": "20241003", + "revision": "20241017", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -12332,7 +12332,8 @@ "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", - "SDF_VERSION_7_1" + "SDF_VERSION_7_1", + "SDF_VERSION_8" ], "enumDeprecated": [ false, @@ -12348,6 +12349,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -12364,7 +12366,8 @@ "SDF version 5.5", "SDF version 6", "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", - "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version." + "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", + "SDF version 8. **This SDF version is in beta. It is only available to a subset of users.**" ], "type": "string" } @@ -19849,7 +19852,8 @@ "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", - "SDF_VERSION_7_1" + "SDF_VERSION_7_1", + "SDF_VERSION_8" ], "enumDeprecated": [ false, @@ -19865,6 +19869,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -19881,7 +19886,8 @@ "SDF version 5.5", "SDF version 6", "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", - "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version." + "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", + "SDF version 8. **This SDF version is in beta. It is only available to a subset of users.**" ], "type": "string" } @@ -19929,7 +19935,8 @@ "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", - "SDF_VERSION_7_1" + "SDF_VERSION_7_1", + "SDF_VERSION_8" ], "enumDeprecated": [ false, @@ -19945,6 +19952,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -19961,7 +19969,8 @@ "SDF version 5.5", "SDF version 6", "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", - "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version." + "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", + "SDF version 8. **This SDF version is in beta. It is only available to a subset of users.**" ], "type": "string" } diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index 1dc16bf0a91..908ac9da552 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -4797,6 +4797,8 @@ type CreateSdfDownloadTaskRequest struct { // "SDF_VERSION_7_1" - SDF version 7.1. Read the [v7 migration // guide](/display-video/api/structured-data-file/v7-migration-guide) before // migrating to this version. + // "SDF_VERSION_8" - SDF version 8. **This SDF version is in beta. It is only + // available to a subset of users.** Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiserId") to // unconditionally include in API requests. By default, fields with empty or @@ -13206,6 +13208,8 @@ type SdfConfig struct { // "SDF_VERSION_7_1" - SDF version 7.1. Read the [v7 migration // guide](/display-video/api/structured-data-file/v7-migration-guide) before // migrating to this version. + // "SDF_VERSION_8" - SDF version 8. **This SDF version is in beta. It is only + // available to a subset of users.** Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdminEmail") to // unconditionally include in API requests. By default, fields with empty or @@ -13281,6 +13285,8 @@ type SdfDownloadTaskMetadata struct { // "SDF_VERSION_7_1" - SDF version 7.1. Read the [v7 migration // guide](/display-video/api/structured-data-file/v7-migration-guide) before // migrating to this version. + // "SDF_VERSION_8" - SDF version 8. **This SDF version is in beta. It is only + // available to a subset of users.** Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or diff --git a/displayvideo/v3/displayvideo-api.json b/displayvideo/v3/displayvideo-api.json index a787c705ff4..8bf08c8e9f7 100644 --- a/displayvideo/v3/displayvideo-api.json +++ b/displayvideo/v3/displayvideo-api.json @@ -9222,7 +9222,7 @@ } } }, - "revision": "20241003", + "revision": "20241017", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -9566,6 +9566,116 @@ "description": "Details of Adloox settings.", "id": "Adloox", "properties": { + "adultExplicitSexualContent": { + "description": "Optional. Adult explicit sexual content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "armsAmmunitionContent": { + "description": "Optional. Arms ammunition content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "crimeHarmfulActsIndividualsSocietyHumanRightsViolationsContent": { + "description": "Optional. Crime harmful acts to individuals society human rights violations content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "deathInjuryMilitaryConflictContent": { + "description": "Optional. Death injury military conflict content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "debatedSensitiveSocialIssueContent": { + "description": "Optional. Debated sensitive social issue content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "displayIabViewability": { + "description": "Optional. Display IAB viewability.", + "enum": [ + "DISPLAY_IAB_VIEWABILITY_UNSPECIFIED", + "DISPLAY_IAB_VIEWABILITY_10", + "DISPLAY_IAB_VIEWABILITY_20", + "DISPLAY_IAB_VIEWABILITY_35", + "DISPLAY_IAB_VIEWABILITY_50", + "DISPLAY_IAB_VIEWABILITY_75" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any display viewability options.", + "10%+ in view (IAB display viewability standard).", + "20%+ in view (IAB display viewability standard).", + "35%+ in view (IAB display viewability standard).", + "50%+ in view (IAB display viewability standard).", + "75%+ in view (IAB display viewability standard)." + ], + "type": "string" + }, "excludedAdlooxCategories": { "description": "Adloox's brand safety settings.", "items": { @@ -9594,6 +9704,167 @@ "type": "string" }, "type": "array" + }, + "excludedFraudIvtMfaCategories": { + "description": "Optional. Adloox's fraud IVT MFA settings.", + "items": { + "enum": [ + "FRAUD_IVT_MFA_CATEGORY_UNSPECIFIED", + "FRAUD_IVT_MFA" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any fraud IVT MFA categories.", + "FRAUD, IVT, MFA." + ], + "type": "string" + }, + "type": "array" + }, + "hateSpeechActsAggressionContent": { + "description": "Optional. Hate speech acts of aggression content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "illegalDrugsTobaccoEcigarettesVapingAlcoholContent": { + "description": "Optional. Illegal drugs tobacco ecigarettes vaping alcohol content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "misinformationContent": { + "description": "Optional. Misinformation content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "obscenityProfanityContent": { + "description": "Optional. Obscenity profanity content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "onlinePiracyContent": { + "description": "Optional. Online piracy content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "spamHarmfulContent": { + "description": "Optional. Spam harmful content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "terrorismContent": { + "description": "Optional. Terrorism content.", + "enum": [ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any GARM risk level option.", + "Exclude floor risk.", + "Exclude high and floor risk.", + "Exclude high, medium, and floor risk.", + "Exclude All Level of Risk (Low, Medium, High and Floor)." + ], + "type": "string" + }, + "videoIabViewability": { + "description": "Optional. Video IAB viewability.", + "enum": [ + "VIDEO_IAB_VIEWABILITY_UNSPECIFIED", + "VIDEO_IAB_VIEWABILITY_10", + "VIDEO_IAB_VIEWABILITY_20", + "VIDEO_IAB_VIEWABILITY_35", + "VIDEO_IAB_VIEWABILITY_50", + "VIDEO_IAB_VIEWABILITY_75" + ], + "enumDescriptions": [ + "This enum is only a placeholder and it doesn't specify any video viewability options.", + "10%+ in view (IAB video viewability standard).", + "20%+ in view (IAB video viewability standard).", + "35%+ in view (IAB video viewability standard).", + "50%+ in view (IAB video viewability standard).", + "75%+ in view (IAB video viewability standard)." + ], + "type": "string" } }, "type": "object" @@ -12907,7 +13178,8 @@ "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", - "SDF_VERSION_7_1" + "SDF_VERSION_7_1", + "SDF_VERSION_8" ], "enumDeprecated": [ false, @@ -12923,6 +13195,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -12939,7 +13212,8 @@ "SDF version 5.5", "SDF version 6", "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", - "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version." + "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", + "SDF version 8. **This SDF version is in beta. It is only available to a subset of users.**" ], "type": "string" } @@ -20620,7 +20894,8 @@ "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", - "SDF_VERSION_7_1" + "SDF_VERSION_7_1", + "SDF_VERSION_8" ], "enumDeprecated": [ false, @@ -20636,6 +20911,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -20652,7 +20928,8 @@ "SDF version 5.5", "SDF version 6", "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", - "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version." + "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", + "SDF version 8. **This SDF version is in beta. It is only available to a subset of users.**" ], "type": "string" } @@ -20700,7 +20977,8 @@ "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", - "SDF_VERSION_7_1" + "SDF_VERSION_7_1", + "SDF_VERSION_8" ], "enumDeprecated": [ false, @@ -20716,6 +20994,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -20732,7 +21011,8 @@ "SDF version 5.5", "SDF version 6", "SDF version 7. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", - "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version." + "SDF version 7.1. Read the [v7 migration guide](/display-video/api/structured-data-file/v7-migration-guide) before migrating to this version.", + "SDF version 8. **This SDF version is in beta. It is only available to a subset of users.**" ], "type": "string" } diff --git a/displayvideo/v3/displayvideo-gen.go b/displayvideo/v3/displayvideo-gen.go index 6ab65bb3e53..a9068d69f82 100644 --- a/displayvideo/v3/displayvideo-gen.go +++ b/displayvideo/v3/displayvideo-gen.go @@ -1070,6 +1070,80 @@ func (s AdUrl) MarshalJSON() ([]byte, error) { // Adloox: Details of Adloox settings. type Adloox struct { + // AdultExplicitSexualContent: Optional. Adult explicit sexual content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + AdultExplicitSexualContent string `json:"adultExplicitSexualContent,omitempty"` + // ArmsAmmunitionContent: Optional. Arms ammunition content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + ArmsAmmunitionContent string `json:"armsAmmunitionContent,omitempty"` + // CrimeHarmfulActsIndividualsSocietyHumanRightsViolationsContent: Optional. + // Crime harmful acts to individuals society human rights violations content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + CrimeHarmfulActsIndividualsSocietyHumanRightsViolationsContent string `json:"crimeHarmfulActsIndividualsSocietyHumanRightsViolationsContent,omitempty"` + // DeathInjuryMilitaryConflictContent: Optional. Death injury military conflict + // content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + DeathInjuryMilitaryConflictContent string `json:"deathInjuryMilitaryConflictContent,omitempty"` + // DebatedSensitiveSocialIssueContent: Optional. Debated sensitive social issue + // content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + DebatedSensitiveSocialIssueContent string `json:"debatedSensitiveSocialIssueContent,omitempty"` + // DisplayIabViewability: Optional. Display IAB viewability. + // + // Possible values: + // "DISPLAY_IAB_VIEWABILITY_UNSPECIFIED" - This enum is only a placeholder + // and it doesn't specify any display viewability options. + // "DISPLAY_IAB_VIEWABILITY_10" - 10%+ in view (IAB display viewability + // standard). + // "DISPLAY_IAB_VIEWABILITY_20" - 20%+ in view (IAB display viewability + // standard). + // "DISPLAY_IAB_VIEWABILITY_35" - 35%+ in view (IAB display viewability + // standard). + // "DISPLAY_IAB_VIEWABILITY_50" - 50%+ in view (IAB display viewability + // standard). + // "DISPLAY_IAB_VIEWABILITY_75" - 75%+ in view (IAB display viewability + // standard). + DisplayIabViewability string `json:"displayIabViewability,omitempty"` // ExcludedAdlooxCategories: Adloox's brand safety settings. // // Possible values: @@ -1084,13 +1158,115 @@ type Adloox struct { // "LOW_VIEWABILITY_DOMAINS" - Low viewability domains. // "FRAUD" - Fraud. ExcludedAdlooxCategories []string `json:"excludedAdlooxCategories,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExcludedAdlooxCategories") + // ExcludedFraudIvtMfaCategories: Optional. Adloox's fraud IVT MFA settings. + // + // Possible values: + // "FRAUD_IVT_MFA_CATEGORY_UNSPECIFIED" - This enum is only a placeholder and + // it doesn't specify any fraud IVT MFA categories. + // "FRAUD_IVT_MFA" - FRAUD, IVT, MFA. + ExcludedFraudIvtMfaCategories []string `json:"excludedFraudIvtMfaCategories,omitempty"` + // HateSpeechActsAggressionContent: Optional. Hate speech acts of aggression + // content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + HateSpeechActsAggressionContent string `json:"hateSpeechActsAggressionContent,omitempty"` + // IllegalDrugsTobaccoEcigarettesVapingAlcoholContent: Optional. Illegal drugs + // tobacco ecigarettes vaping alcohol content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + IllegalDrugsTobaccoEcigarettesVapingAlcoholContent string `json:"illegalDrugsTobaccoEcigarettesVapingAlcoholContent,omitempty"` + // MisinformationContent: Optional. Misinformation content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + MisinformationContent string `json:"misinformationContent,omitempty"` + // ObscenityProfanityContent: Optional. Obscenity profanity content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + ObscenityProfanityContent string `json:"obscenityProfanityContent,omitempty"` + // OnlinePiracyContent: Optional. Online piracy content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + OnlinePiracyContent string `json:"onlinePiracyContent,omitempty"` + // SpamHarmfulContent: Optional. Spam harmful content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + SpamHarmfulContent string `json:"spamHarmfulContent,omitempty"` + // TerrorismContent: Optional. Terrorism content. + // + // Possible values: + // "GARM_RISK_EXCLUSION_UNSPECIFIED" - This enum is only a placeholder and it + // doesn't specify any GARM risk level option. + // "GARM_RISK_EXCLUSION_FLOOR" - Exclude floor risk. + // "GARM_RISK_EXCLUSION_HIGH" - Exclude high and floor risk. + // "GARM_RISK_EXCLUSION_MEDIUM" - Exclude high, medium, and floor risk. + // "GARM_RISK_EXCLUSION_LOW" - Exclude All Level of Risk (Low, Medium, High + // and Floor). + TerrorismContent string `json:"terrorismContent,omitempty"` + // VideoIabViewability: Optional. Video IAB viewability. + // + // Possible values: + // "VIDEO_IAB_VIEWABILITY_UNSPECIFIED" - This enum is only a placeholder and + // it doesn't specify any video viewability options. + // "VIDEO_IAB_VIEWABILITY_10" - 10%+ in view (IAB video viewability + // standard). + // "VIDEO_IAB_VIEWABILITY_20" - 20%+ in view (IAB video viewability + // standard). + // "VIDEO_IAB_VIEWABILITY_35" - 35%+ in view (IAB video viewability + // standard). + // "VIDEO_IAB_VIEWABILITY_50" - 50%+ in view (IAB video viewability + // standard). + // "VIDEO_IAB_VIEWABILITY_75" - 75%+ in view (IAB video viewability + // standard). + VideoIabViewability string `json:"videoIabViewability,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdultExplicitSexualContent") // 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. "ExcludedAdlooxCategories") to + // NullFields is a list of field names (e.g. "AdultExplicitSexualContent") 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. @@ -5413,6 +5589,8 @@ type CreateSdfDownloadTaskRequest struct { // "SDF_VERSION_7_1" - SDF version 7.1. Read the [v7 migration // guide](/display-video/api/structured-data-file/v7-migration-guide) before // migrating to this version. + // "SDF_VERSION_8" - SDF version 8. **This SDF version is in beta. It is only + // available to a subset of users.** Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiserId") to // unconditionally include in API requests. By default, fields with empty or @@ -14043,6 +14221,8 @@ type SdfConfig struct { // "SDF_VERSION_7_1" - SDF version 7.1. Read the [v7 migration // guide](/display-video/api/structured-data-file/v7-migration-guide) before // migrating to this version. + // "SDF_VERSION_8" - SDF version 8. **This SDF version is in beta. It is only + // available to a subset of users.** Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdminEmail") to // unconditionally include in API requests. By default, fields with empty or @@ -14118,6 +14298,8 @@ type SdfDownloadTaskMetadata struct { // "SDF_VERSION_7_1" - SDF version 7.1. Read the [v7 migration // guide](/display-video/api/structured-data-file/v7-migration-guide) before // migrating to this version. + // "SDF_VERSION_8" - SDF version 8. **This SDF version is in beta. It is only + // available to a subset of users.** Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with empty or diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json index a07b7913146..9cb7812606f 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json @@ -610,7 +610,7 @@ } } }, - "revision": "20241011", + "revision": "20241017", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { "AndroidxCrawlerOutputPoint": { @@ -1071,6 +1071,11 @@ "description": "An interaction with the device, such as a tap, text entry, wait, etc.", "id": "GoogleFirebaseAppdistroV1alphaDeviceInteraction", "properties": { + "keyCode": { + "description": "Output only. Key code for a key event action.", + "readOnly": true, + "type": "string" + }, "screenshot": { "$ref": "GoogleFirebaseAppdistroV1alphaScreenshot", "description": "Output only. The screenshot used in the context of this action. The screen may have changed before the action was actually taken.", diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go index 5c6d0edee19..80ef9c073c8 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go @@ -777,6 +777,8 @@ func (s GoogleFirebaseAppdistroV1alphaDeviceExecution) MarshalJSON() ([]byte, er // GoogleFirebaseAppdistroV1alphaDeviceInteraction: An interaction with the // device, such as a tap, text entry, wait, etc. type GoogleFirebaseAppdistroV1alphaDeviceInteraction struct { + // KeyCode: Output only. Key code for a key event action. + KeyCode string `json:"keyCode,omitempty"` // Screenshot: Output only. The screenshot used in the context of this action. // The screen may have changed before the action was actually taken. Screenshot *GoogleFirebaseAppdistroV1alphaScreenshot `json:"screenshot,omitempty"` @@ -788,13 +790,13 @@ type GoogleFirebaseAppdistroV1alphaDeviceInteraction struct { TextInput string `json:"textInput,omitempty"` // Wait: Output only. A wait action. Wait *GoogleFirebaseAppdistroV1alphaDeviceInteractionWait `json:"wait,omitempty"` - // ForceSendFields is a list of field names (e.g. "Screenshot") 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. "KeyCode") 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. "Screenshot") to include in API + // NullFields is a list of field names (e.g. "KeyCode") 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. diff --git a/gkehub/v2/gkehub-api.json b/gkehub/v2/gkehub-api.json index 346d9485cf3..d3eb6a3f90d 100644 --- a/gkehub/v2/gkehub-api.json +++ b/gkehub/v2/gkehub-api.json @@ -471,7 +471,7 @@ } } }, - "revision": "20241006", + "revision": "20241010", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceState": { @@ -916,6 +916,22 @@ "description": "State information for ConfigSync.", "id": "ConfigManagementConfigSyncState", "properties": { + "clusterLevelStopSyncingState": { + "description": "Whether syncing resources to the cluster is stopped at the cluster level.", + "enum": [ + "STOP_SYNCING_STATE_UNSPECIFIED", + "NOT_STOPPED", + "PENDING", + "STOPPED" + ], + "enumDescriptions": [ + "State cannot be determined", + "Syncing resources to the cluster is not stopped at the cluster level.", + "Some reconcilers stop syncing resources to the cluster, while others are still syncing.", + "Syncing resources to the cluster is stopped at the cluster level." + ], + "type": "string" + }, "deploymentState": { "$ref": "ConfigManagementConfigSyncDeploymentState", "description": "Information about the deployment of ConfigSync, including the version. of the various Pods deployed" diff --git a/gkehub/v2/gkehub-gen.go b/gkehub/v2/gkehub-gen.go index efec1d81217..fe7d7def01b 100644 --- a/gkehub/v2/gkehub-gen.go +++ b/gkehub/v2/gkehub-gen.go @@ -699,6 +699,18 @@ func (s ConfigManagementConfigSyncError) MarshalJSON() ([]byte, error) { // ConfigManagementConfigSyncState: State information for ConfigSync. type ConfigManagementConfigSyncState struct { + // ClusterLevelStopSyncingState: Whether syncing resources to the cluster is + // stopped at the cluster level. + // + // Possible values: + // "STOP_SYNCING_STATE_UNSPECIFIED" - State cannot be determined + // "NOT_STOPPED" - Syncing resources to the cluster is not stopped at the + // cluster level. + // "PENDING" - Some reconcilers stop syncing resources to the cluster, while + // others are still syncing. + // "STOPPED" - Syncing resources to the cluster is stopped at the cluster + // level. + ClusterLevelStopSyncingState string `json:"clusterLevelStopSyncingState,omitempty"` // DeploymentState: Information about the deployment of ConfigSync, including // the version. of the various Pods deployed DeploymentState *ConfigManagementConfigSyncDeploymentState `json:"deploymentState,omitempty"` @@ -739,15 +751,15 @@ type ConfigManagementConfigSyncState struct { SyncState *ConfigManagementSyncState `json:"syncState,omitempty"` // Version: The version of ConfigSync deployed. Version *ConfigManagementConfigSyncVersion `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeploymentState") 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 is a list of field names (e.g. + // "ClusterLevelStopSyncingState") 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. "DeploymentState") 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. "ClusterLevelStopSyncingState") 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:"-"` } diff --git a/gkehub/v2beta/gkehub-api.json b/gkehub/v2beta/gkehub-api.json index 0c0f9857505..e608bb4dc43 100644 --- a/gkehub/v2beta/gkehub-api.json +++ b/gkehub/v2beta/gkehub-api.json @@ -471,7 +471,7 @@ } } }, - "revision": "20241006", + "revision": "20241010", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceState": { @@ -916,6 +916,22 @@ "description": "State information for ConfigSync.", "id": "ConfigManagementConfigSyncState", "properties": { + "clusterLevelStopSyncingState": { + "description": "Whether syncing resources to the cluster is stopped at the cluster level.", + "enum": [ + "STOP_SYNCING_STATE_UNSPECIFIED", + "NOT_STOPPED", + "PENDING", + "STOPPED" + ], + "enumDescriptions": [ + "State cannot be determined", + "Syncing resources to the cluster is not stopped at the cluster level.", + "Some reconcilers stop syncing resources to the cluster, while others are still syncing.", + "Syncing resources to the cluster is stopped at the cluster level." + ], + "type": "string" + }, "deploymentState": { "$ref": "ConfigManagementConfigSyncDeploymentState", "description": "Information about the deployment of ConfigSync, including the version. of the various Pods deployed" diff --git a/gkehub/v2beta/gkehub-gen.go b/gkehub/v2beta/gkehub-gen.go index 43de18d5f8d..05c2477a9fa 100644 --- a/gkehub/v2beta/gkehub-gen.go +++ b/gkehub/v2beta/gkehub-gen.go @@ -699,6 +699,18 @@ func (s ConfigManagementConfigSyncError) MarshalJSON() ([]byte, error) { // ConfigManagementConfigSyncState: State information for ConfigSync. type ConfigManagementConfigSyncState struct { + // ClusterLevelStopSyncingState: Whether syncing resources to the cluster is + // stopped at the cluster level. + // + // Possible values: + // "STOP_SYNCING_STATE_UNSPECIFIED" - State cannot be determined + // "NOT_STOPPED" - Syncing resources to the cluster is not stopped at the + // cluster level. + // "PENDING" - Some reconcilers stop syncing resources to the cluster, while + // others are still syncing. + // "STOPPED" - Syncing resources to the cluster is stopped at the cluster + // level. + ClusterLevelStopSyncingState string `json:"clusterLevelStopSyncingState,omitempty"` // DeploymentState: Information about the deployment of ConfigSync, including // the version. of the various Pods deployed DeploymentState *ConfigManagementConfigSyncDeploymentState `json:"deploymentState,omitempty"` @@ -739,15 +751,15 @@ type ConfigManagementConfigSyncState struct { SyncState *ConfigManagementSyncState `json:"syncState,omitempty"` // Version: The version of ConfigSync deployed. Version *ConfigManagementConfigSyncVersion `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeploymentState") 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 is a list of field names (e.g. + // "ClusterLevelStopSyncingState") 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. "DeploymentState") 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. "ClusterLevelStopSyncingState") 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:"-"` } diff --git a/memcache/v1/memcache-api.json b/memcache/v1/memcache-api.json index c9e6a241e09..d48d38c8293 100644 --- a/memcache/v1/memcache-api.json +++ b/memcache/v1/memcache-api.json @@ -584,7 +584,7 @@ } } }, - "revision": "20240919", + "revision": "20241010", "rootUrl": "https://memcache.googleapis.com/", "schemas": { "ApplyParametersRequest": { @@ -2095,22 +2095,22 @@ "id": "TimeOfDay", "properties": { "hours": { - "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "description": "Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", "format": "int32", "type": "integer" }, "minutes": { - "description": "Minutes of hour of day. Must be from 0 to 59.", + "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.", "format": "int32", "type": "integer" }, "nanos": { - "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.", "format": "int32", "type": "integer" }, "seconds": { - "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "description": "Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.", "format": "int32", "type": "integer" } diff --git a/memcache/v1/memcache-gen.go b/memcache/v1/memcache-gen.go index c4fa00ae862..8b9a6807cc1 100644 --- a/memcache/v1/memcache-gen.go +++ b/memcache/v1/memcache-gen.go @@ -1925,16 +1925,19 @@ func (s TenantProjectProxy) MarshalJSON() ([]byte, error) { // significant or are specified elsewhere. An API may choose to allow leap // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. type TimeOfDay struct { - // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may - // choose to allow the value "24:00:00" for scenarios like business closing - // time. + // Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0 + // and typically must be less than or equal to 23. An API may choose to allow + // the value "24:00:00" for scenarios like business closing time. Hours int64 `json:"hours,omitempty"` - // Minutes: Minutes of hour of day. Must be from 0 to 59. + // Minutes: Minutes of an hour. Must be greater than or equal to 0 and less + // than or equal to 59. Minutes int64 `json:"minutes,omitempty"` - // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + // Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal + // to 0 and less than or equal to 999,999,999. Nanos int64 `json:"nanos,omitempty"` - // Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An - // API may allow the value 60 if it allows leap-seconds. + // Seconds: Seconds of a minute. Must be greater than or equal to 0 and + // typically must be less than or equal to 59. An API may allow the value 60 if + // it allows leap-seconds. Seconds int64 `json:"seconds,omitempty"` // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/memcache/v1beta2/memcache-api.json b/memcache/v1beta2/memcache-api.json index b79d6866b71..4ad1be83eb3 100644 --- a/memcache/v1beta2/memcache-api.json +++ b/memcache/v1beta2/memcache-api.json @@ -612,7 +612,7 @@ } } }, - "revision": "20240919", + "revision": "20241010", "rootUrl": "https://memcache.googleapis.com/", "schemas": { "ApplyParametersRequest": { @@ -2151,22 +2151,22 @@ "id": "TimeOfDay", "properties": { "hours": { - "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "description": "Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", "format": "int32", "type": "integer" }, "minutes": { - "description": "Minutes of hour of day. Must be from 0 to 59.", + "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.", "format": "int32", "type": "integer" }, "nanos": { - "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.", "format": "int32", "type": "integer" }, "seconds": { - "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "description": "Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.", "format": "int32", "type": "integer" } diff --git a/memcache/v1beta2/memcache-gen.go b/memcache/v1beta2/memcache-gen.go index 5449c8b9229..a80a1c16d41 100644 --- a/memcache/v1beta2/memcache-gen.go +++ b/memcache/v1beta2/memcache-gen.go @@ -1960,16 +1960,19 @@ func (s TenantProjectProxy) MarshalJSON() ([]byte, error) { // significant or are specified elsewhere. An API may choose to allow leap // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. type TimeOfDay struct { - // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API may - // choose to allow the value "24:00:00" for scenarios like business closing - // time. + // Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0 + // and typically must be less than or equal to 23. An API may choose to allow + // the value "24:00:00" for scenarios like business closing time. Hours int64 `json:"hours,omitempty"` - // Minutes: Minutes of hour of day. Must be from 0 to 59. + // Minutes: Minutes of an hour. Must be greater than or equal to 0 and less + // than or equal to 59. Minutes int64 `json:"minutes,omitempty"` - // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + // Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal + // to 0 and less than or equal to 999,999,999. Nanos int64 `json:"nanos,omitempty"` - // Seconds: Seconds of minutes of the time. Must normally be from 0 to 59. An - // API may allow the value 60 if it allows leap-seconds. + // Seconds: Seconds of a minute. Must be greater than or equal to 0 and + // typically must be less than or equal to 59. An API may allow the value 60 if + // it allows leap-seconds. Seconds int64 `json:"seconds,omitempty"` // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index ac4bbfb3622..7acdf313c99 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -1417,7 +1417,7 @@ } } }, - "revision": "20241015", + "revision": "20241016", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Accepted": { @@ -1747,7 +1747,12 @@ "ClaimHomepageRequest": { "description": "Request message for the `ClaimHomepage` method.", "id": "ClaimHomepageRequest", - "properties": {}, + "properties": { + "overwrite": { + "description": "Optional. When set to `true`, this option removes any existing claim on the requested website and replaces it with a claim from the account that makes the request.", + "type": "boolean" + } + }, "type": "object" }, "CreateAndConfigureAccountRequest": { diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index 9c1dadb1a22..7fc7d4cf9ec 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -724,6 +724,26 @@ func (s CarrierRate) MarshalJSON() ([]byte, error) { // ClaimHomepageRequest: Request message for the `ClaimHomepage` method. type ClaimHomepageRequest struct { + // Overwrite: Optional. When set to `true`, this option removes any existing + // claim on the requested website and replaces it with a claim from the account + // that makes the request. + Overwrite bool `json:"overwrite,omitempty"` + // ForceSendFields is a list of field names (e.g. "Overwrite") 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. "Overwrite") 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 ClaimHomepageRequest) MarshalJSON() ([]byte, error) { + type NoMethod ClaimHomepageRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CreateAndConfigureAccountRequest: Request message for the diff --git a/merchantapi/datasources_v1beta/merchantapi-api.json b/merchantapi/datasources_v1beta/merchantapi-api.json index 7cc4f370460..b8ac0b6e72d 100644 --- a/merchantapi/datasources_v1beta/merchantapi-api.json +++ b/merchantapi/datasources_v1beta/merchantapi-api.json @@ -321,7 +321,7 @@ } } }, - "revision": "20241015", + "revision": "20241016", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "DataSource": { @@ -923,7 +923,7 @@ "type": "string" }, "feedLabel": { - "description": "Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.", + "description": "Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. The fields must be unset for data sources without file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.", "type": "string" }, "referencingPrimaryDataSources": { diff --git a/merchantapi/datasources_v1beta/merchantapi-gen.go b/merchantapi/datasources_v1beta/merchantapi-gen.go index ff723023a3d..1736c8a1834 100644 --- a/merchantapi/datasources_v1beta/merchantapi-gen.go +++ b/merchantapi/datasources_v1beta/merchantapi-gen.go @@ -847,9 +847,9 @@ type SupplementalProductDataSource struct { // (https://developers.google.com/shopping-content/guides/products/feed-labels). // `feedLabel` and `contentLanguage` must be either both set or unset for data // sources with product content type. They must be set for data sources with a - // file input. If set, the data source will only accept products matching this - // combination. If unset, the data source will accept produts without that - // restriction. + // file input. The fields must be unset for data sources without file input. If + // set, the data source will only accept products matching this combination. If + // unset, the data source will accept produts without that restriction. FeedLabel string `json:"feedLabel,omitempty"` // ReferencingPrimaryDataSources: Output only. The (unordered and deduplicated) // list of all primary data sources linked to this data source in either diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index bd38fc1b870..e8a93e98ca6 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -2812,7 +2812,7 @@ } } }, - "revision": "20240923", + "revision": "20241009", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AcceptHubSpokeRequest": { @@ -2937,6 +2937,20 @@ "description": "This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.", "type": "boolean" }, + "ipVersion": { + "description": "The requested IP version for the PSC connection.", + "enum": [ + "IP_VERSION_UNSPECIFIED", + "IPV4", + "IPV6" + ], + "enumDescriptions": [ + "Default value. We will use IPv4 or IPv6 depending on the IP version of first available subnetwork.", + "Will use IPv4 only.", + "Will use IPv6 only." + ], + "type": "string" + }, "network": { "description": "The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.", "type": "string" @@ -3030,6 +3044,20 @@ "description": "The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map.", "type": "string" }, + "ipVersion": { + "description": "The requested IP version for the PSC connection.", + "enum": [ + "IP_VERSION_UNSPECIFIED", + "IPV4", + "IPV6" + ], + "enumDescriptions": [ + "Default value. We will use IPv4 or IPv6 depending on the IP version of first available subnetwork.", + "Will use IPv4 only.", + "Will use IPv6 only." + ], + "type": "string" + }, "network": { "description": "The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC).", "type": "string" @@ -3070,14 +3098,18 @@ "ACTIVE", "FAILED", "CREATING", - "DELETING" + "DELETING", + "CREATE_REPAIRING", + "DELETE_REPAIRING" ], "enumDescriptions": [ "An invalid state as the default case.", "The connection has been created successfully. However, for the up-to-date connection status, please use the service attachment's \"ConnectedEndpoint.status\" as the source of truth.", "The connection is not functional since some resources on the connection fail to be created.", "The connection is being created.", - "The connection is being deleted." + "The connection is being deleted.", + "The connection is being repaired to complete creation.", + "The connection is being repaired to complete deletion." ], "type": "string" } @@ -3480,7 +3512,7 @@ }, "migration": { "$ref": "Migration", - "description": "Optional. Should be present if usage is set to FOR_MIGRATION." + "description": "Optional. Must be present if usage is set to FOR_MIGRATION. This field is for internal use." }, "name": { "description": "Immutable. The name of an internal range. Format: projects/{project}/locations/{location}/internalRanges/{internal_range} See: https://google.aip.dev/122#fields-representing-resource-names", @@ -3552,7 +3584,7 @@ "Unspecified usage is allowed in calls which identify the resource by other fields and do not need Usage set to complete. These are, i.e.: GetInternalRange and DeleteInternalRange. Usage needs to be specified explicitly in CreateInternalRange or UpdateInternalRange calls.", "A VPC resource can use the reserved CIDR block by associating it with the internal range resource if usage is set to FOR_VPC.", "Ranges created with EXTERNAL_TO_VPC cannot be associated with VPC resources and are meant to block out address ranges for various use cases, like for example, usage on-prem, with dynamic route announcements via interconnect.", - "Ranges created FOR_MIGRATION can be used to lock a CIDR range between a source and target subnet. If usage is set to FOR_MIGRATION the peering value has to be set to FOR_SELF or default to FOR_SELF when unset." + "Ranges created FOR_MIGRATION can be used to lock a CIDR range between a source and target subnet. If usage is set to FOR_MIGRATION, the peering value has to be set to FOR_SELF or default to FOR_SELF when unset. This value is for internal use." ], "type": "string" }, @@ -4465,6 +4497,20 @@ "description": "The last Compute Engine operation to setup PSC connection.", "type": "string" }, + "ipVersion": { + "description": "The requested IP version for the PSC connection.", + "enum": [ + "IP_VERSION_UNSPECIFIED", + "IPV4", + "IPV6" + ], + "enumDescriptions": [ + "Default value. We will use IPv4 or IPv6 depending on the IP version of first available subnetwork.", + "Will use IPv4 only.", + "Will use IPv6 only." + ], + "type": "string" + }, "producerInstanceId": { "deprecated": true, "description": "Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.", @@ -4498,14 +4544,18 @@ "ACTIVE", "FAILED", "CREATING", - "DELETING" + "DELETING", + "CREATE_REPAIRING", + "DELETE_REPAIRING" ], "enumDescriptions": [ "An invalid state as the default case.", "The connection has been created successfully. However, for the up-to-date connection status, please use the created forwarding rule's \"PscConnectionStatus\" as the source of truth.", "The connection is not functional since some resources on the connection fail to be created.", "The connection is being created.", - "The connection is being deleted." + "The connection is being deleted.", + "The connection is being repaired to complete creation.", + "The connection is being repaired to complete deletion." ], "type": "string" } diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index 08dd7020b95..7199dbd5c16 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -615,6 +615,14 @@ type ConsumerPscConfig struct { // DisableGlobalAccess: This is used in PSC consumer ForwardingRule to control // whether the PSC endpoint can be accessed from another region. DisableGlobalAccess bool `json:"disableGlobalAccess,omitempty"` + // IpVersion: The requested IP version for the PSC connection. + // + // Possible values: + // "IP_VERSION_UNSPECIFIED" - Default value. We will use IPv4 or IPv6 + // depending on the IP version of first available subnetwork. + // "IPV4" - Will use IPv4 only. + // "IPV6" - Will use IPv6 only. + IpVersion string `json:"ipVersion,omitempty"` // Network: The resource path of the consumer network where PSC connections are // allowed to be created in. Note, this network does not need be in the // ConsumerPscConfig.project in the case of SharedVPC. Example: @@ -694,6 +702,14 @@ type ConsumerPscConnection struct { // rule that is created to connect to the producer service attachment in this // service connection map. Ip string `json:"ip,omitempty"` + // IpVersion: The requested IP version for the PSC connection. + // + // Possible values: + // "IP_VERSION_UNSPECIFIED" - Default value. We will use IPv4 or IPv6 + // depending on the IP version of first available subnetwork. + // "IPV4" - Will use IPv4 only. + // "IPV6" - Will use IPv6 only. + IpVersion string `json:"ipVersion,omitempty"` // Network: The consumer network whose PSC forwarding rule is connected to the // service attachments in this service connection map. Note that the network // could be on a different project (shared VPC). @@ -727,6 +743,10 @@ type ConsumerPscConnection struct { // 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. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "Error") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -1210,7 +1230,8 @@ type InternalRange struct { IpCidrRange string `json:"ipCidrRange,omitempty"` // Labels: User-defined labels. Labels map[string]string `json:"labels,omitempty"` - // Migration: Optional. Should be present if usage is set to FOR_MIGRATION. + // Migration: Optional. Must be present if usage is set to FOR_MIGRATION. This + // field is for internal use. Migration *Migration `json:"migration,omitempty"` // Name: Immutable. The name of an internal range. Format: // projects/{project}/locations/{location}/internalRanges/{internal_range} See: @@ -1285,9 +1306,9 @@ type InternalRange struct { // various use cases, like for example, usage on-prem, with dynamic route // announcements via interconnect. // "FOR_MIGRATION" - Ranges created FOR_MIGRATION can be used to lock a CIDR - // range between a source and target subnet. If usage is set to FOR_MIGRATION + // range between a source and target subnet. If usage is set to FOR_MIGRATION, // the peering value has to be set to FOR_SELF or default to FOR_SELF when - // unset. + // unset. This value is for internal use. Usage string `json:"usage,omitempty"` // Users: Output only. The list of resources that refer to this internal range. // Resources that use the internal range for their range allocation are @@ -2453,6 +2474,14 @@ type PscConnection struct { ErrorType string `json:"errorType,omitempty"` // GceOperation: The last Compute Engine operation to setup PSC connection. GceOperation string `json:"gceOperation,omitempty"` + // IpVersion: The requested IP version for the PSC connection. + // + // Possible values: + // "IP_VERSION_UNSPECIFIED" - Default value. We will use IPv4 or IPv6 + // depending on the IP version of first available subnetwork. + // "IPV4" - Will use IPv4 only. + // "IPV6" - Will use IPv6 only. + IpVersion string `json:"ipVersion,omitempty"` // ProducerInstanceId: Immutable. Deprecated. Use producer_instance_metadata // instead. An immutable identifier for the producer instance. ProducerInstanceId string `json:"producerInstanceId,omitempty"` @@ -2479,6 +2508,10 @@ type PscConnection struct { // 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. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsumerAddress") to // unconditionally include in API requests. By default, fields with empty or diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index c3338edd210..4ca37bb02fe 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -849,7 +849,7 @@ } } }, - "revision": "20241003", + "revision": "20241010", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -3920,6 +3920,7 @@ "type": "integer" }, "retentionUnit": { + "deprecated": true, "description": "The unit that 'retained_backups' represents.", "enum": [ "RETENTION_UNIT_UNSPECIFIED", @@ -3940,6 +3941,11 @@ "timeBasedRetention": { "format": "google-duration", "type": "string" + }, + "timestampBasedRetentionTime": { + "description": "Timestamp based retention period i.e. 2024-05-01T00:00:00Z", + "format": "google-datetime", + "type": "string" } }, "type": "object" diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index ab17e85da77..2ec70150cac 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -3331,6 +3331,9 @@ type RetentionSettings struct { // "RETENTION_UNIT_OTHER" - For rest of the other category RetentionUnit string `json:"retentionUnit,omitempty"` TimeBasedRetention string `json:"timeBasedRetention,omitempty"` + // TimestampBasedRetentionTime: Timestamp based retention period i.e. + // 2024-05-01T00:00:00Z + TimestampBasedRetentionTime string `json:"timestampBasedRetentionTime,omitempty"` // ForceSendFields is a list of field names (e.g. "DurationBasedRetention") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/transcoder/v1/transcoder-api.json b/transcoder/v1/transcoder-api.json index 128c3564120..b550317a854 100644 --- a/transcoder/v1/transcoder-api.json +++ b/transcoder/v1/transcoder-api.json @@ -385,7 +385,7 @@ } } }, - "revision": "20240626", + "revision": "20241009", "rootUrl": "https://transcoder.googleapis.com/", "schemas": { "AdBreak": { @@ -565,7 +565,7 @@ "type": "array" }, "codec": { - "description": "The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac` - `aac-he` - `aac-he-v2` - `mp3` - `ac3` - `eac3`", + "description": "The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac` - `aac-he` - `aac-he-v2` - `mp3` - `ac3` - `eac3` - `vorbis`", "type": "string" }, "displayName": { @@ -1486,7 +1486,7 @@ "id": "MuxStream", "properties": { "container": { - "description": "The container format. The default is `mp4` Supported container formats: - `ts` - `fmp4`- the corresponding file extension is `.m4s` - `mp4` - `vtt` See also: [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)", + "description": "The container format. The default is `mp4` Supported container formats: - `ts` - `fmp4`- the corresponding file extension is `.m4s` - `mp4` - `vtt` - `ogg` See also: [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)", "type": "string" }, "elementaryStreams": { diff --git a/transcoder/v1/transcoder-gen.go b/transcoder/v1/transcoder-gen.go index 0dbfe1fa24c..b69b4a14e19 100644 --- a/transcoder/v1/transcoder-gen.go +++ b/transcoder/v1/transcoder-gen.go @@ -457,7 +457,8 @@ type AudioStream struct { // Front center channel - `lfe` - Low frequency ChannelLayout []string `json:"channelLayout,omitempty"` // Codec: The codec for this audio stream. The default is `aac`. Supported - // audio codecs: - `aac` - `aac-he` - `aac-he-v2` - `mp3` - `ac3` - `eac3` + // audio codecs: - `aac` - `aac-he` - `aac-he-v2` - `mp3` - `ac3` - `eac3` - + // `vorbis` Codec string `json:"codec,omitempty"` // DisplayName: The name for this particular audio stream that will be added to // the HLS/DASH manifest. Not supported in MP4 files. @@ -1602,7 +1603,7 @@ func (s MpegCommonEncryption) MarshalJSON() ([]byte, error) { type MuxStream struct { // Container: The container format. The default is `mp4` Supported container // formats: - `ts` - `fmp4`- the corresponding file extension is `.m4s` - `mp4` - // - `vtt` See also: Supported input and output formats + // - `vtt` - `ogg` See also: Supported input and output formats // (https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats) Container string `json:"container,omitempty"` // ElementaryStreams: List of ElementaryStream.key values multiplexed in this diff --git a/vmmigration/v1/vmmigration-api.json b/vmmigration/v1/vmmigration-api.json index b6ff7db6af1..6c3894df2fc 100644 --- a/vmmigration/v1/vmmigration-api.json +++ b/vmmigration/v1/vmmigration-api.json @@ -2220,7 +2220,7 @@ } } }, - "revision": "20240912", + "revision": "20241013", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { @@ -2430,6 +2430,21 @@ "description": "Represent the source AWS VM details.", "id": "AwsSourceVmDetails", "properties": { + "architecture": { + "description": "Output only. The VM architecture.", + "enum": [ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64" + ], + "enumDescriptions": [ + "The architecture is unknown.", + "The architecture is one of the x86 architectures.", + "The architecture is ARM64." + ], + "readOnly": true, + "type": "string" + }, "committedStorageBytes": { "description": "Output only. The total size of the disks being migrated in bytes.", "format": "int64", @@ -2700,6 +2715,21 @@ "description": "Represent the source Azure VM details.", "id": "AzureSourceVmDetails", "properties": { + "architecture": { + "description": "Output only. The VM architecture.", + "enum": [ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64" + ], + "enumDescriptions": [ + "The architecture is unknown.", + "The architecture is one of the x86 architectures.", + "The architecture is ARM64." + ], + "readOnly": true, + "type": "string" + }, "committedStorageBytes": { "description": "Output only. The total size of the disks being migrated in bytes.", "format": "int64", @@ -2741,6 +2771,20 @@ "description": "AzureVmDetails describes a VM in Azure.", "id": "AzureVmDetails", "properties": { + "architecture": { + "description": "The CPU architecture.", + "enum": [ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64" + ], + "enumDescriptions": [ + "The architecture is unknown.", + "The architecture is one of the x86 architectures.", + "The architecture is ARM64." + ], + "type": "string" + }, "bootOption": { "description": "The VM Boot Option.", "enum": [ @@ -5899,6 +5943,21 @@ "description": "Represent the source Vmware VM details.", "id": "VmwareSourceVmDetails", "properties": { + "architecture": { + "description": "Output only. The VM architecture.", + "enum": [ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64" + ], + "enumDescriptions": [ + "The architecture is unknown.", + "The architecture is one of the x86 architectures.", + "The architecture is ARM64." + ], + "readOnly": true, + "type": "string" + }, "committedStorageBytes": { "description": "Output only. The total size of the disks being migrated in bytes.", "format": "int64", @@ -5940,6 +5999,21 @@ "description": "VmwareVmDetails describes a VM in vCenter.", "id": "VmwareVmDetails", "properties": { + "architecture": { + "description": "Output only. The CPU architecture.", + "enum": [ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64" + ], + "enumDescriptions": [ + "The architecture is unknown.", + "The architecture is one of the x86 architectures.", + "The architecture is ARM64." + ], + "readOnly": true, + "type": "string" + }, "bootOption": { "description": "Output only. The VM Boot Option.", "enum": [ diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index c7652f48b59..07232bee8f8 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -567,6 +567,14 @@ func (s AwsSourceDetails) MarshalJSON() ([]byte, error) { // AwsSourceVmDetails: Represent the source AWS VM details. type AwsSourceVmDetails struct { + // Architecture: Output only. The VM architecture. + // + // Possible values: + // "VM_ARCHITECTURE_UNSPECIFIED" - The architecture is unknown. + // "VM_ARCHITECTURE_X86_FAMILY" - The architecture is one of the x86 + // architectures. + // "VM_ARCHITECTURE_ARM64" - The architecture is ARM64. + Architecture string `json:"architecture,omitempty"` // CommittedStorageBytes: Output only. The total size of the disks being // migrated in bytes. CommittedStorageBytes int64 `json:"committedStorageBytes,omitempty,string"` @@ -582,15 +590,15 @@ type AwsSourceVmDetails struct { // VmCapabilitiesInfo: Output only. Information about VM capabilities needed // for some Compute Engine features. VmCapabilitiesInfo *VmCapabilities `json:"vmCapabilitiesInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommittedStorageBytes") to + // ForceSendFields is a list of field names (e.g. "Architecture") 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. "CommittedStorageBytes") 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. "Architecture") 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:"-"` } @@ -784,6 +792,14 @@ func (s AzureSourceDetails) MarshalJSON() ([]byte, error) { // AzureSourceVmDetails: Represent the source Azure VM details. type AzureSourceVmDetails struct { + // Architecture: Output only. The VM architecture. + // + // Possible values: + // "VM_ARCHITECTURE_UNSPECIFIED" - The architecture is unknown. + // "VM_ARCHITECTURE_X86_FAMILY" - The architecture is one of the x86 + // architectures. + // "VM_ARCHITECTURE_ARM64" - The architecture is ARM64. + Architecture string `json:"architecture,omitempty"` // CommittedStorageBytes: Output only. The total size of the disks being // migrated in bytes. CommittedStorageBytes int64 `json:"committedStorageBytes,omitempty,string"` @@ -799,15 +815,15 @@ type AzureSourceVmDetails struct { // VmCapabilitiesInfo: Output only. Information about VM capabilities needed // for some Compute Engine features. VmCapabilitiesInfo *VmCapabilities `json:"vmCapabilitiesInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommittedStorageBytes") to + // ForceSendFields is a list of field names (e.g. "Architecture") 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. "CommittedStorageBytes") 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. "Architecture") 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:"-"` } @@ -819,6 +835,14 @@ func (s AzureSourceVmDetails) MarshalJSON() ([]byte, error) { // AzureVmDetails: AzureVmDetails describes a VM in Azure. type AzureVmDetails struct { + // Architecture: The CPU architecture. + // + // Possible values: + // "VM_ARCHITECTURE_UNSPECIFIED" - The architecture is unknown. + // "VM_ARCHITECTURE_X86_FAMILY" - The architecture is one of the x86 + // architectures. + // "VM_ARCHITECTURE_ARM64" - The architecture is ARM64. + Architecture string `json:"architecture,omitempty"` // BootOption: The VM Boot Option. // // Possible values: @@ -860,13 +884,13 @@ type AzureVmDetails struct { VmId string `json:"vmId,omitempty"` // VmSize: VM size as configured in Azure. Determines the VM's hardware spec. VmSize string `json:"vmSize,omitempty"` - // ForceSendFields is a list of field names (e.g. "BootOption") to + // ForceSendFields is a list of field names (e.g. "Architecture") 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. "BootOption") to include in API + // NullFields is a list of field names (e.g. "Architecture") 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. @@ -3930,6 +3954,14 @@ func (s VmwareSourceDetails) MarshalJSON() ([]byte, error) { // VmwareSourceVmDetails: Represent the source Vmware VM details. type VmwareSourceVmDetails struct { + // Architecture: Output only. The VM architecture. + // + // Possible values: + // "VM_ARCHITECTURE_UNSPECIFIED" - The architecture is unknown. + // "VM_ARCHITECTURE_X86_FAMILY" - The architecture is one of the x86 + // architectures. + // "VM_ARCHITECTURE_ARM64" - The architecture is ARM64. + Architecture string `json:"architecture,omitempty"` // CommittedStorageBytes: Output only. The total size of the disks being // migrated in bytes. CommittedStorageBytes int64 `json:"committedStorageBytes,omitempty,string"` @@ -3945,15 +3977,15 @@ type VmwareSourceVmDetails struct { // VmCapabilitiesInfo: Output only. Information about VM capabilities needed // for some Compute Engine features. VmCapabilitiesInfo *VmCapabilities `json:"vmCapabilitiesInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommittedStorageBytes") to + // ForceSendFields is a list of field names (e.g. "Architecture") 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. "CommittedStorageBytes") 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. "Architecture") 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:"-"` } @@ -3965,6 +3997,14 @@ func (s VmwareSourceVmDetails) MarshalJSON() ([]byte, error) { // VmwareVmDetails: VmwareVmDetails describes a VM in vCenter. type VmwareVmDetails struct { + // Architecture: Output only. The CPU architecture. + // + // Possible values: + // "VM_ARCHITECTURE_UNSPECIFIED" - The architecture is unknown. + // "VM_ARCHITECTURE_X86_FAMILY" - The architecture is one of the x86 + // architectures. + // "VM_ARCHITECTURE_ARM64" - The architecture is ARM64. + Architecture string `json:"architecture,omitempty"` // BootOption: Output only. The VM Boot Option. // // Possible values: @@ -4006,13 +4046,13 @@ type VmwareVmDetails struct { // VmId: The VM's id in the source (note that this is not the MigratingVm's // id). This is the moref id of the VM. VmId string `json:"vmId,omitempty"` - // ForceSendFields is a list of field names (e.g. "BootOption") to + // ForceSendFields is a list of field names (e.g. "Architecture") 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. "BootOption") to include in API + // NullFields is a list of field names (e.g. "Architecture") 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. diff --git a/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index 0614fc4da76..d59f2c5d207 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -2220,7 +2220,7 @@ } } }, - "revision": "20240912", + "revision": "20241013", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { @@ -2430,6 +2430,21 @@ "description": "Represent the source AWS VM details.", "id": "AwsSourceVmDetails", "properties": { + "architecture": { + "description": "Output only. The VM architecture.", + "enum": [ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64" + ], + "enumDescriptions": [ + "The architecture is unknown.", + "The architecture is one of the x86 architectures.", + "The architecture is ARM64." + ], + "readOnly": true, + "type": "string" + }, "committedStorageBytes": { "description": "Output only. The total size of the disks being migrated in bytes.", "format": "int64", @@ -2700,6 +2715,21 @@ "description": "Represent the source Azure VM details.", "id": "AzureSourceVmDetails", "properties": { + "architecture": { + "description": "Output only. The VM architecture.", + "enum": [ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64" + ], + "enumDescriptions": [ + "The architecture is unknown.", + "The architecture is one of the x86 architectures.", + "The architecture is ARM64." + ], + "readOnly": true, + "type": "string" + }, "committedStorageBytes": { "description": "Output only. The total size of the disks being migrated in bytes.", "format": "int64", @@ -2741,6 +2771,20 @@ "description": "AzureVmDetails describes a VM in Azure.", "id": "AzureVmDetails", "properties": { + "architecture": { + "description": "The CPU architecture.", + "enum": [ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64" + ], + "enumDescriptions": [ + "The architecture is unknown.", + "The architecture is one of the x86 architectures.", + "The architecture is ARM64." + ], + "type": "string" + }, "bootOption": { "description": "The VM Boot Option.", "enum": [ @@ -6153,6 +6197,21 @@ "description": "Represent the source Vmware VM details.", "id": "VmwareSourceVmDetails", "properties": { + "architecture": { + "description": "Output only. The VM architecture.", + "enum": [ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64" + ], + "enumDescriptions": [ + "The architecture is unknown.", + "The architecture is one of the x86 architectures.", + "The architecture is ARM64." + ], + "readOnly": true, + "type": "string" + }, "committedStorageBytes": { "description": "Output only. The total size of the disks being migrated in bytes.", "format": "int64", @@ -6194,6 +6253,21 @@ "description": "VmwareVmDetails describes a VM in vCenter.", "id": "VmwareVmDetails", "properties": { + "architecture": { + "description": "Output only. The CPU architecture.", + "enum": [ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64" + ], + "enumDescriptions": [ + "The architecture is unknown.", + "The architecture is one of the x86 architectures.", + "The architecture is ARM64." + ], + "readOnly": true, + "type": "string" + }, "bootOption": { "description": "Output only. The VM Boot Option.", "enum": [ diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index 114207aa22b..e624b8e0d53 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -567,6 +567,14 @@ func (s AwsSourceDetails) MarshalJSON() ([]byte, error) { // AwsSourceVmDetails: Represent the source AWS VM details. type AwsSourceVmDetails struct { + // Architecture: Output only. The VM architecture. + // + // Possible values: + // "VM_ARCHITECTURE_UNSPECIFIED" - The architecture is unknown. + // "VM_ARCHITECTURE_X86_FAMILY" - The architecture is one of the x86 + // architectures. + // "VM_ARCHITECTURE_ARM64" - The architecture is ARM64. + Architecture string `json:"architecture,omitempty"` // CommittedStorageBytes: Output only. The total size of the disks being // migrated in bytes. CommittedStorageBytes int64 `json:"committedStorageBytes,omitempty,string"` @@ -582,15 +590,15 @@ type AwsSourceVmDetails struct { // VmCapabilitiesInfo: Output only. Information about VM capabilities needed // for some Compute Engine features. VmCapabilitiesInfo *VmCapabilities `json:"vmCapabilitiesInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommittedStorageBytes") to + // ForceSendFields is a list of field names (e.g. "Architecture") 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. "CommittedStorageBytes") 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. "Architecture") 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:"-"` } @@ -784,6 +792,14 @@ func (s AzureSourceDetails) MarshalJSON() ([]byte, error) { // AzureSourceVmDetails: Represent the source Azure VM details. type AzureSourceVmDetails struct { + // Architecture: Output only. The VM architecture. + // + // Possible values: + // "VM_ARCHITECTURE_UNSPECIFIED" - The architecture is unknown. + // "VM_ARCHITECTURE_X86_FAMILY" - The architecture is one of the x86 + // architectures. + // "VM_ARCHITECTURE_ARM64" - The architecture is ARM64. + Architecture string `json:"architecture,omitempty"` // CommittedStorageBytes: Output only. The total size of the disks being // migrated in bytes. CommittedStorageBytes int64 `json:"committedStorageBytes,omitempty,string"` @@ -799,15 +815,15 @@ type AzureSourceVmDetails struct { // VmCapabilitiesInfo: Output only. Information about VM capabilities needed // for some Compute Engine features. VmCapabilitiesInfo *VmCapabilities `json:"vmCapabilitiesInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommittedStorageBytes") to + // ForceSendFields is a list of field names (e.g. "Architecture") 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. "CommittedStorageBytes") 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. "Architecture") 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:"-"` } @@ -819,6 +835,14 @@ func (s AzureSourceVmDetails) MarshalJSON() ([]byte, error) { // AzureVmDetails: AzureVmDetails describes a VM in Azure. type AzureVmDetails struct { + // Architecture: The CPU architecture. + // + // Possible values: + // "VM_ARCHITECTURE_UNSPECIFIED" - The architecture is unknown. + // "VM_ARCHITECTURE_X86_FAMILY" - The architecture is one of the x86 + // architectures. + // "VM_ARCHITECTURE_ARM64" - The architecture is ARM64. + Architecture string `json:"architecture,omitempty"` // BootOption: The VM Boot Option. // // Possible values: @@ -860,13 +884,13 @@ type AzureVmDetails struct { VmId string `json:"vmId,omitempty"` // VmSize: VM size as configured in Azure. Determines the VM's hardware spec. VmSize string `json:"vmSize,omitempty"` - // ForceSendFields is a list of field names (e.g. "BootOption") to + // ForceSendFields is a list of field names (e.g. "Architecture") 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. "BootOption") to include in API + // NullFields is a list of field names (e.g. "Architecture") 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. @@ -4065,6 +4089,14 @@ func (s VmwareSourceDetails) MarshalJSON() ([]byte, error) { // VmwareSourceVmDetails: Represent the source Vmware VM details. type VmwareSourceVmDetails struct { + // Architecture: Output only. The VM architecture. + // + // Possible values: + // "VM_ARCHITECTURE_UNSPECIFIED" - The architecture is unknown. + // "VM_ARCHITECTURE_X86_FAMILY" - The architecture is one of the x86 + // architectures. + // "VM_ARCHITECTURE_ARM64" - The architecture is ARM64. + Architecture string `json:"architecture,omitempty"` // CommittedStorageBytes: Output only. The total size of the disks being // migrated in bytes. CommittedStorageBytes int64 `json:"committedStorageBytes,omitempty,string"` @@ -4080,15 +4112,15 @@ type VmwareSourceVmDetails struct { // VmCapabilitiesInfo: Output only. Information about VM capabilities needed // for some Compute Engine features. VmCapabilitiesInfo *VmCapabilities `json:"vmCapabilitiesInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommittedStorageBytes") to + // ForceSendFields is a list of field names (e.g. "Architecture") 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. "CommittedStorageBytes") 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. "Architecture") 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:"-"` } @@ -4100,6 +4132,14 @@ func (s VmwareSourceVmDetails) MarshalJSON() ([]byte, error) { // VmwareVmDetails: VmwareVmDetails describes a VM in vCenter. type VmwareVmDetails struct { + // Architecture: Output only. The CPU architecture. + // + // Possible values: + // "VM_ARCHITECTURE_UNSPECIFIED" - The architecture is unknown. + // "VM_ARCHITECTURE_X86_FAMILY" - The architecture is one of the x86 + // architectures. + // "VM_ARCHITECTURE_ARM64" - The architecture is ARM64. + Architecture string `json:"architecture,omitempty"` // BootOption: Output only. The VM Boot Option. // // Possible values: @@ -4143,13 +4183,13 @@ type VmwareVmDetails struct { // VmId: The VM's id in the source (note that this is not the MigratingVm's // id). This is the moref id of the VM. VmId string `json:"vmId,omitempty"` - // ForceSendFields is a list of field names (e.g. "BootOption") to + // ForceSendFields is a list of field names (e.g. "Architecture") 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. "BootOption") to include in API + // NullFields is a list of field names (e.g. "Architecture") 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. diff --git a/walletobjects/v1/walletobjects-api.json b/walletobjects/v1/walletobjects-api.json index fdf69551e1e..fc9522e9d69 100644 --- a/walletobjects/v1/walletobjects-api.json +++ b/walletobjects/v1/walletobjects-api.json @@ -2681,7 +2681,7 @@ } } }, - "revision": "20240927", + "revision": "20241017", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -3955,6 +3955,18 @@ ], "type": "string" }, + "notifyPreference": { + "description": "Whether or not field updates to this class should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If not specified, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "redemptionIssuers": { "description": "Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart Tap.", "items": { @@ -4248,6 +4260,18 @@ }, "type": "array" }, + "notifyPreference": { + "description": "Whether or not field updates to this object should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If set to DO_NOT_NOTIFY or NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "passConstraints": { "$ref": "PassConstraints", "description": "Pass constraints for the object. Includes limiting NFC and screenshot behaviors." @@ -4762,6 +4786,18 @@ ], "type": "string" }, + "notifyPreference": { + "description": "Whether or not field updates to this class should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If not specified, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "origin": { "$ref": "AirportInfo", "description": "Required. Origin airport." @@ -5012,6 +5048,18 @@ }, "type": "array" }, + "notifyPreference": { + "description": "Whether or not field updates to this object should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If set to DO_NOT_NOTIFY or NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "passConstraints": { "$ref": "PassConstraints", "description": "Pass constraints for the object. Includes limiting NFC and screenshot behaviors." @@ -5668,6 +5716,18 @@ ], "type": "string" }, + "notifyPreference": { + "description": "Whether or not field updates to this class should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If not specified, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "pinLabel": { "description": "The label to display for the PIN, such as \"4-digit PIN\".", "type": "string" @@ -5903,6 +5963,18 @@ }, "type": "array" }, + "notifyPreference": { + "description": "Whether or not field updates to this object should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If set to DO_NOT_NOTIFY or NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "passConstraints": { "$ref": "PassConstraints", "description": "Pass constraints for the object. Includes limiting NFC and screenshot behaviors." @@ -6504,6 +6576,18 @@ ], "type": "string" }, + "notifyPreference": { + "description": "Whether or not field updates to this class should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If not specified, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "programLogo": { "$ref": "Image", "description": "Required. The logo of the loyalty program or company. This logo is displayed in both the details and list views of the app." @@ -6758,6 +6842,18 @@ }, "type": "array" }, + "notifyPreference": { + "description": "Whether or not field updates to this object should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If set to DO_NOT_NOTIFY or NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "passConstraints": { "$ref": "PassConstraints", "description": "Pass constraints for the object. Includes limiting NFC and screenshot behaviors." @@ -7458,6 +7554,18 @@ ], "type": "string" }, + "notifyPreference": { + "description": "Whether or not field updates to this class should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If not specified, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "provider": { "description": "Required. The offer provider (either the aggregator name or merchant name). Recommended maximum length is 12 characters to ensure full string is displayed on smaller screens.", "type": "string" @@ -7721,6 +7829,18 @@ }, "type": "array" }, + "notifyPreference": { + "description": "Whether or not field updates to this object should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If set to DO_NOT_NOTIFY or NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "passConstraints": { "$ref": "PassConstraints", "description": "Pass constraints for the object. Includes limiting NFC and screenshot behaviors." @@ -8849,6 +8969,18 @@ ], "type": "string" }, + "notifyPreference": { + "description": "Whether or not field updates to this class should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If set to DO_NOT_NOTIFY or NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "redemptionIssuers": { "description": "Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart Tap.", "items": { @@ -9157,6 +9289,18 @@ }, "type": "array" }, + "notifyPreference": { + "description": "Whether or not field updates to this object should trigger notifications. When set to NOTIFY, we will attempt to trigger a field update notification to users. These notifications will only be sent to users if the field is part of an allowlist. If set to DO_NOT_NOTIFY or NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This setting is ephemeral and needs to be set with each PATCH or UPDATE request, otherwise a notification will not be triggered.", + "enum": [ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", + "NOTIFY_ON_UPDATE" + ], + "enumDescriptions": [ + "Default behavior is no notifications sent.", + "This value will result in a notification being sent, if the updated fields are part of an allowlist." + ], + "type": "string" + }, "passConstraints": { "$ref": "PassConstraints", "description": "Pass constraints for the object. Includes limiting NFC and screenshot behaviors." diff --git a/walletobjects/v1/walletobjects-gen.go b/walletobjects/v1/walletobjects-gen.go index c2413912391..26a9a6dbe0b 100644 --- a/walletobjects/v1/walletobjects-gen.go +++ b/walletobjects/v1/walletobjects-gen.go @@ -1912,6 +1912,19 @@ type EventTicketClass struct { // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated. // "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated. MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"` + // NotifyPreference: Whether or not field updates to this class should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If not specified, no notification will be + // triggered. This setting is ephemeral and needs to be set with each PATCH or + // UPDATE request, otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // RedemptionIssuers: Identifies which redemption issuers can redeem the pass // over Smart Tap. Redemption issuers are identified by their issuer ID. // Redemption issuers must have at least one Smart Tap key configured. The @@ -2169,6 +2182,20 @@ type EventTicketObject struct { // object will receive its associated messages. The maximum number of these // fields is 10. Messages []*Message `json:"messages,omitempty"` + // NotifyPreference: Whether or not field updates to this object should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If set to DO_NOT_NOTIFY or + // NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This + // setting is ephemeral and needs to be set with each PATCH or UPDATE request, + // otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // PassConstraints: Pass constraints for the object. Includes limiting NFC and // screenshot behaviors. PassConstraints *PassConstraints `json:"passConstraints,omitempty"` @@ -2681,6 +2708,19 @@ type FlightClass struct { // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated. // "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated. MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"` + // NotifyPreference: Whether or not field updates to this class should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If not specified, no notification will be + // triggered. This setting is ephemeral and needs to be set with each PATCH or + // UPDATE request, otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // Origin: Required. Origin airport. Origin *AirportInfo `json:"origin,omitempty"` // RedemptionIssuers: Identifies which redemption issuers can redeem the pass @@ -2931,6 +2971,20 @@ type FlightObject struct { // object will receive its associated messages. The maximum number of these // fields is 10. Messages []*Message `json:"messages,omitempty"` + // NotifyPreference: Whether or not field updates to this object should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If set to DO_NOT_NOTIFY or + // NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This + // setting is ephemeral and needs to be set with each PATCH or UPDATE request, + // otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // PassConstraints: Pass constraints for the object. Includes limiting NFC and // screenshot behaviors. PassConstraints *PassConstraints `json:"passConstraints,omitempty"` @@ -3572,6 +3626,19 @@ type GiftCardClass struct { // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated. // "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated. MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"` + // NotifyPreference: Whether or not field updates to this class should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If not specified, no notification will be + // triggered. This setting is ephemeral and needs to be set with each PATCH or + // UPDATE request, otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // PinLabel: The label to display for the PIN, such as "4-digit PIN". PinLabel string `json:"pinLabel,omitempty"` // ProgramLogo: The logo of the gift card program or company. This logo is @@ -3791,6 +3858,20 @@ type GiftCardObject struct { // object will receive its associated messages. The maximum number of these // fields is 10. Messages []*Message `json:"messages,omitempty"` + // NotifyPreference: Whether or not field updates to this object should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If set to DO_NOT_NOTIFY or + // NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This + // setting is ephemeral and needs to be set with each PATCH or UPDATE request, + // otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // PassConstraints: Pass constraints for the object. Includes limiting NFC and // screenshot behaviors. PassConstraints *PassConstraints `json:"passConstraints,omitempty"` @@ -4522,6 +4603,19 @@ type LoyaltyClass struct { // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated. // "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated. MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"` + // NotifyPreference: Whether or not field updates to this class should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If not specified, no notification will be + // triggered. This setting is ephemeral and needs to be set with each PATCH or + // UPDATE request, otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // ProgramLogo: Required. The logo of the loyalty program or company. This logo // is displayed in both the details and list views of the app. ProgramLogo *Image `json:"programLogo,omitempty"` @@ -4761,6 +4855,20 @@ type LoyaltyObject struct { // object will receive its associated messages. The maximum number of these // fields is 10. Messages []*Message `json:"messages,omitempty"` + // NotifyPreference: Whether or not field updates to this object should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If set to DO_NOT_NOTIFY or + // NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This + // setting is ephemeral and needs to be set with each PATCH or UPDATE request, + // otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // PassConstraints: Pass constraints for the object. Includes limiting NFC and // screenshot behaviors. PassConstraints *PassConstraints `json:"passConstraints,omitempty"` @@ -5507,6 +5615,19 @@ type OfferClass struct { // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated. // "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated. MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"` + // NotifyPreference: Whether or not field updates to this class should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If not specified, no notification will be + // triggered. This setting is ephemeral and needs to be set with each PATCH or + // UPDATE request, otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // Provider: Required. The offer provider (either the aggregator name or // merchant name). Recommended maximum length is 12 characters to ensure full // string is displayed on smaller screens. @@ -5740,6 +5861,20 @@ type OfferObject struct { // object will receive its associated messages. The maximum number of these // fields is 10. Messages []*Message `json:"messages,omitempty"` + // NotifyPreference: Whether or not field updates to this object should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If set to DO_NOT_NOTIFY or + // NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This + // setting is ephemeral and needs to be set with each PATCH or UPDATE request, + // otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // PassConstraints: Pass constraints for the object. Includes limiting NFC and // screenshot behaviors. PassConstraints *PassConstraints `json:"passConstraints,omitempty"` @@ -6922,6 +7057,20 @@ type TransitClass struct { // "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated. // "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated. MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"` + // NotifyPreference: Whether or not field updates to this class should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If set to DO_NOT_NOTIFY or + // NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This + // setting is ephemeral and needs to be set with each PATCH or UPDATE request, + // otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // RedemptionIssuers: Identifies which redemption issuers can redeem the pass // over Smart Tap. Redemption issuers are identified by their issuer ID. // Redemption issuers must have at least one Smart Tap key configured. The @@ -7172,6 +7321,20 @@ type TransitObject struct { // object will receive its associated messages. The maximum number of these // fields is 10. Messages []*Message `json:"messages,omitempty"` + // NotifyPreference: Whether or not field updates to this object should trigger + // notifications. When set to NOTIFY, we will attempt to trigger a field update + // notification to users. These notifications will only be sent to users if the + // field is part of an allowlist. If set to DO_NOT_NOTIFY or + // NOTIFICATION_SETTINGS_UNSPECIFIED, no notification will be triggered. This + // setting is ephemeral and needs to be set with each PATCH or UPDATE request, + // otherwise a notification will not be triggered. + // + // Possible values: + // "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED" - Default behavior is no + // notifications sent. + // "NOTIFY_ON_UPDATE" - This value will result in a notification being sent, + // if the updated fields are part of an allowlist. + NotifyPreference string `json:"notifyPreference,omitempty"` // PassConstraints: Pass constraints for the object. Includes limiting NFC and // screenshot behaviors. PassConstraints *PassConstraints `json:"passConstraints,omitempty"`