diff --git a/api-list.json b/api-list.json index 21cbda075c8..20b5b8446c7 100644 --- a/api-list.json +++ b/api-list.json @@ -616,6 +616,36 @@ "documentationLink": "https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "baremetalsolution:v1alpha1", + "name": "baremetalsolution", + "version": "v1alpha1", + "title": "Bare Metal Solution API", + "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", + "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1alpha1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/bare-metal", + "preferred": false + }, + { + "kind": "discovery#directoryItem", + "id": "baremetalsolution:v1", + "name": "baremetalsolution", + "version": "v1", + "title": "Bare Metal Solution API", + "description": "Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.", + "discoveryRestUrl": "https://baremetalsolution.googleapis.com/$discovery/rest?version=v1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/bare-metal", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "baremetalsolution:v2", @@ -3456,6 +3486,21 @@ "documentationLink": "https://developers.google.com/search/apis/indexing-api/", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "integrations:v1alpha", + "name": "integrations", + "version": "v1alpha", + "title": "Application Integration API", + "description": "", + "discoveryRestUrl": "https://integrations.googleapis.com/$discovery/rest?version=v1alpha", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/application-integration", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "integrations:v1", diff --git a/baremetalsolution/v1/baremetalsolution-gen.go b/baremetalsolution/v1/baremetalsolution-gen.go index 9f28b9f8b6a..d8a49569d43 100644 --- a/baremetalsolution/v1/baremetalsolution-gen.go +++ b/baremetalsolution/v1/baremetalsolution-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/chromepolicy/v1/chromepolicy-api.json b/chromepolicy/v1/chromepolicy-api.json index 3d9fe103eee..8a7db14ef41 100644 --- a/chromepolicy/v1/chromepolicy-api.json +++ b/chromepolicy/v1/chromepolicy-api.json @@ -557,7 +557,7 @@ } } }, - "revision": "20221201", + "revision": "20230105", "rootUrl": "https://chromepolicy.googleapis.com/", "schemas": { "ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle": { @@ -787,6 +787,17 @@ }, "type": "object" }, + "GoogleChromePolicyVersionsV1FieldConstraints": { + "description": "Information about any range constraints.", + "id": "GoogleChromePolicyVersionsV1FieldConstraints", + "properties": { + "numericRangeConstraint": { + "$ref": "GoogleChromePolicyVersionsV1NumericRangeConstraint", + "description": "The allowed range for numeric fields." + } + }, + "type": "object" + }, "GoogleChromePolicyVersionsV1InheritOrgUnitPolicyRequest": { "description": "Request parameters for inheriting policy value of a specific org unit target from the policy value of its parent org unit.", "id": "GoogleChromePolicyVersionsV1InheritOrgUnitPolicyRequest", @@ -919,6 +930,23 @@ }, "type": "object" }, + "GoogleChromePolicyVersionsV1NumericRangeConstraint": { + "description": "A constraint on upper and/or lower bounds, with at least one being set.", + "id": "GoogleChromePolicyVersionsV1NumericRangeConstraint", + "properties": { + "maximum": { + "description": "Maximum value.", + "format": "int64", + "type": "string" + }, + "minimum": { + "description": "Minimum value.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleChromePolicyVersionsV1PolicyModificationFieldError": { "description": "Error information for a modification request of a specific field on a specific policy.", "id": "GoogleChromePolicyVersionsV1PolicyModificationFieldError", @@ -1062,6 +1090,11 @@ "readOnly": true, "type": "string" }, + "fieldConstraints": { + "$ref": "GoogleChromePolicyVersionsV1FieldConstraints", + "description": "Output only. Information on any input constraints associated on the values for the field.", + "readOnly": true + }, "fieldDependencies": { "description": "Output only. Provides a list of fields and values. At least one of the fields must have the corresponding value in order for this field to be allowed to be set.", "items": { diff --git a/chromepolicy/v1/chromepolicy-gen.go b/chromepolicy/v1/chromepolicy-gen.go index ed158d71a1b..70d826ce0b4 100644 --- a/chromepolicy/v1/chromepolicy-gen.go +++ b/chromepolicy/v1/chromepolicy-gen.go @@ -693,6 +693,37 @@ func (s *GoogleChromePolicyVersionsV1DeleteGroupPolicyRequest) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromePolicyVersionsV1FieldConstraints: Information about any +// range constraints. +type GoogleChromePolicyVersionsV1FieldConstraints struct { + // NumericRangeConstraint: The allowed range for numeric fields. + NumericRangeConstraint *GoogleChromePolicyVersionsV1NumericRangeConstraint `json:"numericRangeConstraint,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "NumericRangeConstraint") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NumericRangeConstraint") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromePolicyVersionsV1FieldConstraints) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromePolicyVersionsV1FieldConstraints + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromePolicyVersionsV1InheritOrgUnitPolicyRequest: Request // parameters for inheriting policy value of a specific org unit target // from the policy value of its parent org unit. @@ -955,6 +986,38 @@ func (s *GoogleChromePolicyVersionsV1NetworkSetting) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromePolicyVersionsV1NumericRangeConstraint: A constraint on +// upper and/or lower bounds, with at least one being set. +type GoogleChromePolicyVersionsV1NumericRangeConstraint struct { + // Maximum: Maximum value. + Maximum int64 `json:"maximum,omitempty,string"` + + // Minimum: Minimum value. + Minimum int64 `json:"minimum,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "Maximum") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Maximum") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromePolicyVersionsV1NumericRangeConstraint) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromePolicyVersionsV1NumericRangeConstraint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromePolicyVersionsV1PolicyModificationFieldError: Error // information for a modification request of a specific field on a // specific policy. @@ -1125,6 +1188,10 @@ type GoogleChromePolicyVersionsV1PolicySchemaFieldDescription struct { // description. Field string `json:"field,omitempty"` + // FieldConstraints: Output only. Information on any input constraints + // associated on the values for the field. + FieldConstraints *GoogleChromePolicyVersionsV1FieldConstraints `json:"fieldConstraints,omitempty"` + // FieldDependencies: Output only. Provides a list of fields and values. // At least one of the fields must have the corresponding value in order // for this field to be allowed to be set. diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json index bb7f7cf4883..1d82acff1db 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json @@ -106,33 +106,6 @@ "protocol": "rest", "resources": { "projects": { - "methods": { - "queryContactCenterQuota": { - "description": "Queries the contact center quota, an aggregation over all the projects, that belongs to the billing account, which the input project belongs to.", - "flatPath": "v1alpha1/projects/{projectsId}:queryContactCenterQuota", - "httpMethod": "GET", - "id": "contactcenteraiplatform.projects.queryContactCenterQuota", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. Parent project resource id.", - "location": "path", - "pattern": "^projects/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+parent}:queryContactCenterQuota", - "response": { - "$ref": "ContactCenterQuota" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, "resources": { "locations": { "methods": { @@ -208,24 +181,18 @@ "httpMethod": "GET", "id": "contactcenteraiplatform.projects.locations.queryContactCenterQuota", "parameterOrder": [ - "parent", - "locationsId" + "parent" ], "parameters": { - "locationsId": { - "location": "path", - "required": true, - "type": "string" - }, "parent": { "description": "Required. Parent project resource id.", "location": "path", - "pattern": "^projects/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1alpha1/{+parent}/locations/{locationsId}:queryContactCenterQuota", + "path": "v1alpha1/{+parent}:queryContactCenterQuota", "response": { "$ref": "ContactCenterQuota" }, @@ -545,7 +512,7 @@ } } }, - "revision": "20230103", + "revision": "20230105", "rootUrl": "https://contactcenteraiplatform.googleapis.com/", "schemas": { "CancelOperationRequest": { diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go index 415f42e480a..d3263119df2 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go @@ -753,154 +753,6 @@ func (s *URIs) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "contactcenteraiplatform.projects.queryContactCenterQuota": - -type ProjectsQueryContactCenterQuotaCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// QueryContactCenterQuota: Queries the contact center quota, an -// aggregation over all the projects, that belongs to the billing -// account, which the input project belongs to. -// -// - parent: Parent project resource id. -func (r *ProjectsService) QueryContactCenterQuota(parent string) *ProjectsQueryContactCenterQuotaCall { - c := &ProjectsQueryContactCenterQuotaCall{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 information. -func (c *ProjectsQueryContactCenterQuotaCall) Fields(s ...googleapi.Field) *ProjectsQueryContactCenterQuotaCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsQueryContactCenterQuotaCall) IfNoneMatch(entityTag string) *ProjectsQueryContactCenterQuotaCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsQueryContactCenterQuotaCall) Context(ctx context.Context) *ProjectsQueryContactCenterQuotaCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsQueryContactCenterQuotaCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsQueryContactCenterQuotaCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}:queryContactCenterQuota") - 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 "contactcenteraiplatform.projects.queryContactCenterQuota" call. -// Exactly one of *ContactCenterQuota or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ContactCenterQuota.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 *ProjectsQueryContactCenterQuotaCall) Do(opts ...googleapi.CallOption) (*ContactCenterQuota, 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 := &ContactCenterQuota{ - 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 - // { - // "description": "Queries the contact center quota, an aggregation over all the projects, that belongs to the billing account, which the input project belongs to.", - // "flatPath": "v1alpha1/projects/{projectsId}:queryContactCenterQuota", - // "httpMethod": "GET", - // "id": "contactcenteraiplatform.projects.queryContactCenterQuota", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Parent project resource id.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha1/{+parent}:queryContactCenterQuota", - // "response": { - // "$ref": "ContactCenterQuota" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "contactcenteraiplatform.projects.locations.get": type ProjectsLocationsGetCall struct { @@ -1261,7 +1113,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat type ProjectsLocationsQueryContactCenterQuotaCall struct { s *Service parent string - locationsId string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context @@ -1272,12 +1123,10 @@ type ProjectsLocationsQueryContactCenterQuotaCall struct { // aggregation over all the projects, that belongs to the billing // account, which the input project belongs to. // -// - locationsId: . // - parent: Parent project resource id. -func (r *ProjectsLocationsService) QueryContactCenterQuota(parent string, locationsId string) *ProjectsLocationsQueryContactCenterQuotaCall { +func (r *ProjectsLocationsService) QueryContactCenterQuota(parent string) *ProjectsLocationsQueryContactCenterQuotaCall { c := &ProjectsLocationsQueryContactCenterQuotaCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.locationsId = locationsId return c } @@ -1329,7 +1178,7 @@ func (c *ProjectsLocationsQueryContactCenterQuotaCall) doRequest(alt string) (*h var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/locations/{locationsId}:queryContactCenterQuota") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}:queryContactCenterQuota") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -1337,8 +1186,7 @@ func (c *ProjectsLocationsQueryContactCenterQuotaCall) doRequest(alt string) (*h } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - "locationsId": c.locationsId, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } @@ -1386,24 +1234,18 @@ func (c *ProjectsLocationsQueryContactCenterQuotaCall) Do(opts ...googleapi.Call // "httpMethod": "GET", // "id": "contactcenteraiplatform.projects.locations.queryContactCenterQuota", // "parameterOrder": [ - // "parent", - // "locationsId" + // "parent" // ], // "parameters": { - // "locationsId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, // "parent": { // "description": "Required. Parent project resource id.", // "location": "path", - // "pattern": "^projects/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha1/{+parent}/locations/{locationsId}:queryContactCenterQuota", + // "path": "v1alpha1/{+parent}:queryContactCenterQuota", // "response": { // "$ref": "ContactCenterQuota" // }, diff --git a/container/v1/container-api.json b/container/v1/container-api.json index f9db680cbc5..22a19aae60f 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2487,7 +2487,7 @@ } } }, - "revision": "20221114", + "revision": "20230104", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2928,6 +2928,10 @@ "description": "[Output only] The IP address of this cluster's master endpoint. The endpoint can be accessed from the internet at `https://username:password@endpoint/`. See the `masterAuth` property of this resource for username and password information.", "type": "string" }, + "etag": { + "description": "This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.", + "type": "string" + }, "expireTime": { "description": "[Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.", "type": "string" @@ -3373,6 +3377,10 @@ "desiredWorkloadIdentityConfig": { "$ref": "WorkloadIdentityConfig", "description": "Configuration for Workload Identity." + }, + "etag": { + "description": "The current etag of the cluster. If an etag is provided and does not match the current etag of the cluster, update will be blocked and an ABORTED error will be returned.", + "type": "string" } }, "type": "object" @@ -3526,10 +3534,12 @@ "description": "cluster_dns_scope indicates the scope of access to cluster DNS records.", "enum": [ "DNS_SCOPE_UNSPECIFIED", + "CLUSTER_SCOPE", "VPC_SCOPE" ], "enumDescriptions": [ "Default value, will be inferred as cluster scope.", + "DNS records are accessible from within the cluster.", "DNS records are accessible from within the VPC." ], "type": "string" @@ -3605,6 +3615,18 @@ "properties": {}, "type": "object" }, + "EphemeralStorageLocalSsdConfig": { + "description": "EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral storage using Local SSD.", + "id": "EphemeralStorageLocalSsdConfig", + "properties": { + "localSsdCount": { + "description": "Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral storage. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "FastSocket": { "description": "Configuration of Fast Socket feature.", "id": "FastSocket", @@ -4134,6 +4156,18 @@ }, "type": "object" }, + "LocalNvmeSsdBlockConfig": { + "description": "LocalNvmeSsdBlockConfig contains configuration for using raw-block local NVMe SSD.", + "id": "LocalNvmeSsdBlockConfig", + "properties": { + "localSsdCount": { + "description": "The number of raw-block local NVMe SSD disks to be attached to the node. Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "LoggingComponentConfig": { "description": "LoggingComponentConfig is cluster logging component configuration.", "id": "LoggingComponentConfig", @@ -4577,6 +4611,10 @@ "description": "Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard'", "type": "string" }, + "ephemeralStorageLocalSsdConfig": { + "$ref": "EphemeralStorageLocalSsdConfig", + "description": "Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk." + }, "fastSocket": { "$ref": "FastSocket", "description": "Enable or disable NCCL fast socket for the node pool." @@ -4608,6 +4646,10 @@ "$ref": "LinuxNodeConfig", "description": "Parameters that can be configured on Linux nodes." }, + "localNvmeSsdBlockConfig": { + "$ref": "LocalNvmeSsdBlockConfig", + "description": "Parameters for using raw-block Local NVMe SSDs." + }, "localSsdCount": { "description": "The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.", "format": "int32", @@ -4688,6 +4730,10 @@ }, "type": "array" }, + "windowsNodeConfig": { + "$ref": "WindowsNodeConfig", + "description": "Parameters that can be configured on Windows nodes." + }, "workloadMetadataConfig": { "$ref": "WorkloadMetadataConfig", "description": "The workload metadata configuration for this node." @@ -4813,6 +4859,10 @@ "$ref": "NodeConfig", "description": "The node configuration of the pool." }, + "etag": { + "description": "This checksum is computed by the server based on the value of node pool fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.", + "type": "string" + }, "initialNodeCount": { "description": "The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota.", "format": "int32", @@ -6257,6 +6307,10 @@ "$ref": "ConfidentialNodes", "description": "Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled." }, + "etag": { + "description": "The current etag of the node pool. If an etag is provided and does not match the current etag of the node pool, update will be blocked and an ABORTED error will be returned.", + "type": "string" + }, "fastSocket": { "$ref": "FastSocket", "description": "Enable or disable NCCL fast socket for the node pool." @@ -6332,6 +6386,10 @@ "$ref": "UpgradeSettings", "description": "Upgrade settings control disruption and speed of the upgrade." }, + "windowsNodeConfig": { + "$ref": "WindowsNodeConfig", + "description": "Parameters that can be configured on Windows nodes." + }, "workloadMetadataConfig": { "$ref": "WorkloadMetadataConfig", "description": "The desired workload metadata config for the node pool." @@ -6538,6 +6596,27 @@ }, "type": "object" }, + "WindowsNodeConfig": { + "description": "Parameters that can be configured on Windows nodes. Windows Node Config that define the parameters that will be used to configure the Windows node pool settings", + "id": "WindowsNodeConfig", + "properties": { + "osVersion": { + "description": "OSVersion specifies the Windows node config to be used on the node", + "enum": [ + "OS_VERSION_UNSPECIFIED", + "OS_VERSION_LTSC2019", + "OS_VERSION_LTSC2022" + ], + "enumDescriptions": [ + "When OSVersion is not specified", + "LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image", + "LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image" + ], + "type": "string" + } + }, + "type": "object" + }, "WorkloadIdentityConfig": { "description": "Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.", "id": "WorkloadIdentityConfig", diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 8e567d16870..2b04bd42566 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -1013,6 +1013,11 @@ type Cluster struct { // of this resource for username and password information. Endpoint string `json:"endpoint,omitempty"` + // Etag: This checksum is computed by the server based on the value of + // cluster fields, and may be sent on update requests to ensure the + // client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + // ExpireTime: [Output only] The time the cluster will be automatically // deleted in RFC3339 (https://www.ietf.org/rfc/rfc3339.txt) text // format. @@ -1553,6 +1558,11 @@ type ClusterUpdate struct { // DesiredWorkloadIdentityConfig: Configuration for Workload Identity. DesiredWorkloadIdentityConfig *WorkloadIdentityConfig `json:"desiredWorkloadIdentityConfig,omitempty"` + // Etag: The current etag of the cluster. If an etag is provided and + // does not match the current etag of the cluster, update will be + // blocked and an ABORTED error will be returned. + Etag string `json:"etag,omitempty"` + // ForceSendFields is a list of field names (e.g. "DesiredAddonsConfig") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1866,6 +1876,8 @@ type DNSConfig struct { // Possible values: // "DNS_SCOPE_UNSPECIFIED" - Default value, will be inferred as // cluster scope. + // "CLUSTER_SCOPE" - DNS records are accessible from within the + // cluster. // "VPC_SCOPE" - DNS records are accessible from within the VPC. ClusterDnsScope string `json:"clusterDnsScope,omitempty"` @@ -2039,6 +2051,42 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// EphemeralStorageLocalSsdConfig: EphemeralStorageLocalSsdConfig +// contains configuration for the node ephemeral storage using Local +// SSD. +type EphemeralStorageLocalSsdConfig struct { + // LocalSsdCount: Number of local SSDs to use to back ephemeral storage. + // Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it + // means to disable using local SSDs as ephemeral storage. The limit for + // this value is dependent upon the maximum number of disks available on + // a machine per zone. See: + // https://cloud.google.com/compute/docs/disks/local-ssd for more + // information. + LocalSsdCount int64 `json:"localSsdCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LocalSsdCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LocalSsdCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EphemeralStorageLocalSsdConfig) MarshalJSON() ([]byte, error) { + type NoMethod EphemeralStorageLocalSsdConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // FastSocket: Configuration of Fast Socket feature. type FastSocket struct { // Enabled: Whether Fast Socket features are enabled in the node pool. @@ -3033,6 +3081,41 @@ func (s *ListUsableSubnetworksResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LocalNvmeSsdBlockConfig: LocalNvmeSsdBlockConfig contains +// configuration for using raw-block local NVMe SSD. +type LocalNvmeSsdBlockConfig struct { + // LocalSsdCount: The number of raw-block local NVMe SSD disks to be + // attached to the node. Each local SSD is 375 GB in size. If zero, it + // means no raw-block local NVMe SSD disks to be attached to the node. + // The limit for this value is dependent upon the maximum number of + // disks available on a machine per zone. See: + // https://cloud.google.com/compute/docs/disks/local-ssd for more + // information. + LocalSsdCount int64 `json:"localSsdCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LocalSsdCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LocalSsdCount") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LocalNvmeSsdBlockConfig) MarshalJSON() ([]byte, error) { + type NoMethod LocalNvmeSsdBlockConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LoggingComponentConfig: LoggingComponentConfig is cluster logging // component configuration. type LoggingComponentConfig struct { @@ -3837,6 +3920,11 @@ type NodeConfig struct { // 'pd-standard' DiskType string `json:"diskType,omitempty"` + // EphemeralStorageLocalSsdConfig: Parameters for the node ephemeral + // storage using Local SSDs. If unspecified, ephemeral storage is backed + // by the boot disk. + EphemeralStorageLocalSsdConfig *EphemeralStorageLocalSsdConfig `json:"ephemeralStorageLocalSsdConfig,omitempty"` + // FastSocket: Enable or disable NCCL fast socket for the node pool. FastSocket *FastSocket `json:"fastSocket,omitempty"` @@ -3866,6 +3954,10 @@ type NodeConfig struct { // LinuxNodeConfig: Parameters that can be configured on Linux nodes. LinuxNodeConfig *LinuxNodeConfig `json:"linuxNodeConfig,omitempty"` + // LocalNvmeSsdBlockConfig: Parameters for using raw-block Local NVMe + // SSDs. + LocalNvmeSsdBlockConfig *LocalNvmeSsdBlockConfig `json:"localNvmeSsdBlockConfig,omitempty"` + // LocalSsdCount: The number of local SSD disks to be attached to the // node. The limit for this value is dependent upon the maximum number // of disks available on a machine per zone. See: @@ -3968,6 +4060,10 @@ type NodeConfig struct { // https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ Taints []*NodeTaint `json:"taints,omitempty"` + // WindowsNodeConfig: Parameters that can be configured on Windows + // nodes. + WindowsNodeConfig *WindowsNodeConfig `json:"windowsNodeConfig,omitempty"` + // WorkloadMetadataConfig: The workload metadata configuration for this // node. WorkloadMetadataConfig *WorkloadMetadataConfig `json:"workloadMetadataConfig,omitempty"` @@ -4233,6 +4329,11 @@ type NodePool struct { // Config: The node configuration of the pool. Config *NodeConfig `json:"config,omitempty"` + // Etag: This checksum is computed by the server based on the value of + // node pool fields, and may be sent on update requests to ensure the + // client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + // InitialNodeCount: The initial node count for the pool. You must // ensure that your Compute Engine resource quota // (https://cloud.google.com/compute/quotas) is sufficient for this @@ -6658,6 +6759,11 @@ type UpdateNodePoolRequest struct { // node pool will be Confidential VM once enabled. ConfidentialNodes *ConfidentialNodes `json:"confidentialNodes,omitempty"` + // Etag: The current etag of the node pool. If an etag is provided and + // does not match the current etag of the node pool, update will be + // blocked and an ABORTED error will be returned. + Etag string `json:"etag,omitempty"` + // FastSocket: Enable or disable NCCL fast socket for the node pool. FastSocket *FastSocket `json:"fastSocket,omitempty"` @@ -6741,6 +6847,10 @@ type UpdateNodePoolRequest struct { // upgrade. UpgradeSettings *UpgradeSettings `json:"upgradeSettings,omitempty"` + // WindowsNodeConfig: Parameters that can be configured on Windows + // nodes. + WindowsNodeConfig *WindowsNodeConfig `json:"windowsNodeConfig,omitempty"` + // WorkloadMetadataConfig: The desired workload metadata config for the // node pool. WorkloadMetadataConfig *WorkloadMetadataConfig `json:"workloadMetadataConfig,omitempty"` @@ -7116,6 +7226,44 @@ func (s *VirtualNIC) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// WindowsNodeConfig: Parameters that can be configured on Windows +// nodes. Windows Node Config that define the parameters that will be +// used to configure the Windows node pool settings +type WindowsNodeConfig struct { + // OsVersion: OSVersion specifies the Windows node config to be used on + // the node + // + // Possible values: + // "OS_VERSION_UNSPECIFIED" - When OSVersion is not specified + // "OS_VERSION_LTSC2019" - LTSC2019 specifies to use LTSC2019 as the + // Windows Servercore Base Image + // "OS_VERSION_LTSC2022" - LTSC2022 specifies to use LTSC2022 as the + // Windows Servercore Base Image + OsVersion string `json:"osVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OsVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OsVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WindowsNodeConfig) MarshalJSON() ([]byte, error) { + type NoMethod WindowsNodeConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // WorkloadIdentityConfig: Configuration for the use of Kubernetes // Service Accounts in GCP IAM policies. type WorkloadIdentityConfig struct { diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index 011ac4cc3df..745bb2d1ad9 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -3675,6 +3675,39 @@ } } } + }, + "suggestions": { + "methods": { + "suggestConversationSummary": { + "description": "Suggests summary for a conversation based on specific historical messages. The range of the messages to be used for summary can be specified in the request.", + "flatPath": "v2/projects/{projectsId}/conversations/{conversationsId}/suggestions:suggestConversationSummary", + "httpMethod": "POST", + "id": "dialogflow.projects.conversations.suggestions.suggestConversationSummary", + "parameterOrder": [ + "conversation" + ], + "parameters": { + "conversation": { + "description": "Required. The conversation to fetch suggestion for. Format: `projects//locations//conversations/`.", + "location": "path", + "pattern": "^projects/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+conversation}/suggestions:suggestConversationSummary", + "request": { + "$ref": "GoogleCloudDialogflowV2SuggestConversationSummaryRequest" + }, + "response": { + "$ref": "GoogleCloudDialogflowV2SuggestConversationSummaryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + } + } } } }, @@ -7455,6 +7488,39 @@ } } } + }, + "suggestions": { + "methods": { + "suggestConversationSummary": { + "description": "Suggests summary for a conversation based on specific historical messages. The range of the messages to be used for summary can be specified in the request.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/suggestions:suggestConversationSummary", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary", + "parameterOrder": [ + "conversation" + ], + "parameters": { + "conversation": { + "description": "Required. The conversation to fetch suggestion for. Format: `projects//locations//conversations/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+conversation}/suggestions:suggestConversationSummary", + "request": { + "$ref": "GoogleCloudDialogflowV2SuggestConversationSummaryRequest" + }, + "response": { + "$ref": "GoogleCloudDialogflowV2SuggestConversationSummaryResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + } + } } } }, @@ -8077,7 +8143,7 @@ } } }, - "revision": "20221202", + "revision": "20230106", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -8161,6 +8227,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowCxV3ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowCxV3TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ConversationTurn": { "description": "One interaction between a human and virtual agent. The human provides some input and the virtual agent provides a response.", "id": "GoogleCloudDialogflowCxV3ConversationTurn", @@ -9580,6 +9657,61 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowCxV3TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata", @@ -9952,6 +10084,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowCxV3beta1ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowCxV3beta1TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ConversationTurn": { "description": "One interaction between a human and virtual agent. The human provides some input and the virtual agent provides a response.", "id": "GoogleCloudDialogflowCxV3beta1ConversationTurn", @@ -11371,6 +11514,61 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowCxV3beta1TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata", @@ -11800,6 +11998,31 @@ "Document is efficient." ], "type": "string" + }, + "summarizationFeedback": { + "$ref": "GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback", + "description": "Optional. Feedback for conversation summarization." + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback": { + "description": "Feedback for conversation summarization.", + "id": "GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback", + "properties": { + "startTime": { + "description": "Timestamp when composing of the summary starts.", + "format": "google-datetime", + "type": "string" + }, + "submitTime": { + "description": "Timestamp when the summary was submitted.", + "format": "google-datetime", + "type": "string" + }, + "summaryText": { + "description": "Text of actual submitted summary.", + "type": "string" } }, "type": "object" @@ -16058,6 +16281,64 @@ }, "type": "object" }, + "GoogleCloudDialogflowV2SuggestConversationSummaryRequest": { + "description": "The request message for Conversations.SuggestConversationSummary.", + "id": "GoogleCloudDialogflowV2SuggestConversationSummaryRequest", + "properties": { + "contextSize": { + "description": "Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 500 and at most 1000.", + "format": "int32", + "type": "integer" + }, + "latestMessage": { + "description": "The name of the latest conversation message used as context for compiling suggestion. If empty, the latest message of the conversation will be used. Format: `projects//locations//conversations//messages/`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2SuggestConversationSummaryResponse": { + "description": "The response message for Conversations.SuggestConversationSummary.", + "id": "GoogleCloudDialogflowV2SuggestConversationSummaryResponse", + "properties": { + "contextSize": { + "description": "Number of messages prior to and including last_conversation_message used to compile the suggestion. It may be smaller than the SuggestSummaryRequest.context_size field in the request if there weren't that many messages in the conversation.", + "format": "int32", + "type": "integer" + }, + "latestMessage": { + "description": "The name of the latest conversation message used as context for compiling suggestion. Format: `projects//locations//conversations//messages/`.", + "type": "string" + }, + "summary": { + "$ref": "GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary", + "description": "Generated summary." + } + }, + "type": "object" + }, + "GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary": { + "description": "Generated summary for a conversation.", + "id": "GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary", + "properties": { + "answerRecord": { + "description": "The name of the answer record. Format: \"projects//answerRecords/\"", + "type": "string" + }, + "text": { + "description": "The summary content that is concatenated into one string.", + "type": "string" + }, + "textSections": { + "additionalProperties": { + "type": "string" + }, + "description": "The summary 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" + }, "GoogleCloudDialogflowV2SuggestFaqAnswersRequest": { "description": "The request message for Participants.SuggestFaqAnswers.", "id": "GoogleCloudDialogflowV2SuggestFaqAnswersRequest", @@ -18698,6 +18979,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowV3alpha1ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowV3alpha1ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowV3alpha1TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata": { "description": "Metadata for CreateDocument operation.", "id": "GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata", @@ -18780,6 +19072,65 @@ }, "type": "object" }, + "GoogleCloudDialogflowV3alpha1TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowV3alpha1TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "triggeredAbandonmentEvent": { + "description": "Whether agent has triggered the event corresponding to user abandoning the conversation.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata", diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 4350ade17d8..cf302fd5baa 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -424,6 +424,7 @@ func NewProjectsConversationsService(s *Service) *ProjectsConversationsService { rs := &ProjectsConversationsService{s: s} rs.Messages = NewProjectsConversationsMessagesService(s) rs.Participants = NewProjectsConversationsParticipantsService(s) + rs.Suggestions = NewProjectsConversationsSuggestionsService(s) return rs } @@ -433,6 +434,8 @@ type ProjectsConversationsService struct { Messages *ProjectsConversationsMessagesService Participants *ProjectsConversationsParticipantsService + + Suggestions *ProjectsConversationsSuggestionsService } func NewProjectsConversationsMessagesService(s *Service) *ProjectsConversationsMessagesService { @@ -465,6 +468,15 @@ type ProjectsConversationsParticipantsSuggestionsService struct { s *Service } +func NewProjectsConversationsSuggestionsService(s *Service) *ProjectsConversationsSuggestionsService { + rs := &ProjectsConversationsSuggestionsService{s: s} + return rs +} + +type ProjectsConversationsSuggestionsService struct { + s *Service +} + func NewProjectsKnowledgeBasesService(s *Service) *ProjectsKnowledgeBasesService { rs := &ProjectsKnowledgeBasesService{s: s} rs.Documents = NewProjectsKnowledgeBasesDocumentsService(s) @@ -736,6 +748,7 @@ func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConv rs := &ProjectsLocationsConversationsService{s: s} rs.Messages = NewProjectsLocationsConversationsMessagesService(s) rs.Participants = NewProjectsLocationsConversationsParticipantsService(s) + rs.Suggestions = NewProjectsLocationsConversationsSuggestionsService(s) return rs } @@ -745,6 +758,8 @@ type ProjectsLocationsConversationsService struct { Messages *ProjectsLocationsConversationsMessagesService Participants *ProjectsLocationsConversationsParticipantsService + + Suggestions *ProjectsLocationsConversationsSuggestionsService } func NewProjectsLocationsConversationsMessagesService(s *Service) *ProjectsLocationsConversationsMessagesService { @@ -777,6 +792,15 @@ type ProjectsLocationsConversationsParticipantsSuggestionsService struct { s *Service } +func NewProjectsLocationsConversationsSuggestionsService(s *Service) *ProjectsLocationsConversationsSuggestionsService { + rs := &ProjectsLocationsConversationsSuggestionsService{s: s} + return rs +} + +type ProjectsLocationsConversationsSuggestionsService struct { + s *Service +} + func NewProjectsLocationsKnowledgeBasesService(s *Service) *ProjectsLocationsKnowledgeBasesService { rs := &ProjectsLocationsKnowledgeBasesService{s: s} rs.Documents = NewProjectsLocationsKnowledgeBasesDocumentsService(s) @@ -961,6 +985,36 @@ func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ConversationSignals: This message is used to +// hold all the Conversation Signals data, which will be converted to +// JSON and exported to BigQuery. +type GoogleCloudDialogflowCxV3ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ConversationTurn: One interaction between a // human and virtual agent. The human provides some input and the // virtual agent provides a response. @@ -3700,6 +3754,64 @@ func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3TurnSignals: Collection of all signals that +// were extracted for a single turn of the conversation. +type GoogleCloudDialogflowCxV3TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata: Metadata // for UpdateDocument operation. type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct { @@ -4370,6 +4482,36 @@ func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ConversationSignals: This message is +// used to hold all the Conversation Signals data, which will be +// converted to JSON and exported to BigQuery. +type GoogleCloudDialogflowCxV3beta1ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ConversationTurn: One interaction // between a human and virtual agent. The human provides some input and // the virtual agent provides a response. @@ -7115,6 +7257,64 @@ func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1TurnSignals: Collection of all signals +// that were extracted for a single turn of the conversation. +type GoogleCloudDialogflowCxV3beta1TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata: // Metadata for UpdateDocument operation. type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct { @@ -7816,6 +8016,10 @@ type GoogleCloudDialogflowV2AgentAssistantFeedback struct { // "EFFICIENT" - Document is efficient. DocumentEfficiency string `json:"documentEfficiency,omitempty"` + // SummarizationFeedback: Optional. Feedback for conversation + // summarization. + SummarizationFeedback *GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback `json:"summarizationFeedback,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnswerRelevance") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -7840,6 +8044,41 @@ func (s *GoogleCloudDialogflowV2AgentAssistantFeedback) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback: +// Feedback for conversation summarization. +type GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback struct { + // StartTime: Timestamp when composing of the summary starts. + StartTime string `json:"startTime,omitempty"` + + // SubmitTime: Timestamp when the summary was submitted. + SubmitTime string `json:"submitTime,omitempty"` + + // SummaryText: Text of actual submitted summary. + SummaryText string `json:"summaryText,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StartTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StartTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV2AgentAssistantRecord: Represents a record of a // human agent assist answer. type GoogleCloudDialogflowV2AgentAssistantRecord struct { @@ -15588,6 +15827,125 @@ func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV2SuggestConversationSummaryRequest: The request +// message for Conversations.SuggestConversationSummary. +type GoogleCloudDialogflowV2SuggestConversationSummaryRequest struct { + // ContextSize: Max number of messages prior to and including + // [latest_message] to use as context when compiling the suggestion. By + // default 500 and at most 1000. + ContextSize int64 `json:"contextSize,omitempty"` + + // LatestMessage: The name of the latest conversation message used as + // context for compiling suggestion. If empty, the latest message of the + // conversation will be used. Format: + // `projects//locations//conversations//messages/`. + LatestMessage string `json:"latestMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContextSize") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ContextSize") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV2SuggestConversationSummaryRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2SuggestConversationSummaryRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2SuggestConversationSummaryResponse: The +// response message for Conversations.SuggestConversationSummary. +type GoogleCloudDialogflowV2SuggestConversationSummaryResponse struct { + // ContextSize: Number of messages prior to and including + // last_conversation_message used to compile the suggestion. It may be + // smaller than the SuggestSummaryRequest.context_size field in the + // request if there weren't that many messages in the conversation. + ContextSize int64 `json:"contextSize,omitempty"` + + // LatestMessage: The name of the latest conversation message used as + // context for compiling suggestion. Format: + // `projects//locations//conversations//messages/`. + LatestMessage string `json:"latestMessage,omitempty"` + + // Summary: Generated summary. + Summary *GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary `json:"summary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ContextSize") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ContextSize") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV2SuggestConversationSummaryResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2SuggestConversationSummaryResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary: +// Generated summary for a conversation. +type GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary struct { + // AnswerRecord: The name of the answer record. Format: + // "projects//answerRecords/" + AnswerRecord string `json:"answerRecord,omitempty"` + + // Text: The summary content that is concatenated into one string. + Text string `json:"text,omitempty"` + + // TextSections: The summary 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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // 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. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV2SuggestFaqAnswersRequest: The request message // for Participants.SuggestFaqAnswers. type GoogleCloudDialogflowV2SuggestFaqAnswersRequest struct { @@ -20151,6 +20509,36 @@ func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV3alpha1ConversationSignals: This message is +// used to hold all the Conversation Signals data, which will be +// converted to JSON and exported to BigQuery. +type GoogleCloudDialogflowV3alpha1ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV3alpha1ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV3alpha1ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata: // Metadata for CreateDocument operation. type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct { @@ -20336,6 +20724,68 @@ func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV3alpha1TurnSignals: Collection of all signals +// that were extracted for a single turn of the conversation. +type GoogleCloudDialogflowV3alpha1TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // TriggeredAbandonmentEvent: Whether agent has triggered the event + // corresponding to user abandoning the conversation. + TriggeredAbandonmentEvent bool `json:"triggeredAbandonmentEvent,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV3alpha1TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata: // Metadata for UpdateDocument operation. type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct { @@ -38404,6 +38854,155 @@ func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do } +// method id "dialogflow.projects.conversations.suggestions.suggestConversationSummary": + +type ProjectsConversationsSuggestionsSuggestConversationSummaryCall struct { + s *Service + conversation string + googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SuggestConversationSummary: Suggests summary for a conversation based +// on specific historical messages. The range of the messages to be used +// for summary can be specified in the request. +// +// - conversation: The conversation to fetch suggestion for. Format: +// `projects//locations//conversations/`. +func (r *ProjectsConversationsSuggestionsService) SuggestConversationSummary(conversation string, googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall { + c := &ProjectsConversationsSuggestionsSuggestConversationSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.conversation = conversation + c.googleclouddialogflowv2suggestconversationsummaryrequest = googleclouddialogflowv2suggestconversationsummaryrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Fields(s ...googleapi.Field) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Context(ctx context.Context) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestconversationsummaryrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversation}/suggestions:suggestConversationSummary") + 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{ + "conversation": c.conversation, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.conversations.suggestions.suggestConversationSummary" call. +// Exactly one of +// *GoogleCloudDialogflowV2SuggestConversationSummaryResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDialogflowV2SuggestConversationSummaryResponse.ServerRespo +// nse.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 *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestConversationSummaryResponse, 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 := &GoogleCloudDialogflowV2SuggestConversationSummaryResponse{ + 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 + // { + // "description": "Suggests summary for a conversation based on specific historical messages. The range of the messages to be used for summary can be specified in the request.", + // "flatPath": "v2/projects/{projectsId}/conversations/{conversationsId}/suggestions:suggestConversationSummary", + // "httpMethod": "POST", + // "id": "dialogflow.projects.conversations.suggestions.suggestConversationSummary", + // "parameterOrder": [ + // "conversation" + // ], + // "parameters": { + // "conversation": { + // "description": "Required. The conversation to fetch suggestion for. Format: `projects//locations//conversations/`.", + // "location": "path", + // "pattern": "^projects/[^/]+/conversations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+conversation}/suggestions:suggestConversationSummary", + // "request": { + // "$ref": "GoogleCloudDialogflowV2SuggestConversationSummaryRequest" + // }, + // "response": { + // "$ref": "GoogleCloudDialogflowV2SuggestConversationSummaryResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/dialogflow" + // ] + // } + +} + // method id "dialogflow.projects.knowledgeBases.create": type ProjectsKnowledgeBasesCreateCall struct { @@ -57239,6 +57838,155 @@ func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartReplie } +// method id "dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary": + +type ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall struct { + s *Service + conversation string + googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SuggestConversationSummary: Suggests summary for a conversation based +// on specific historical messages. The range of the messages to be used +// for summary can be specified in the request. +// +// - conversation: The conversation to fetch suggestion for. Format: +// `projects//locations//conversations/`. +func (r *ProjectsLocationsConversationsSuggestionsService) SuggestConversationSummary(conversation string, googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall { + c := &ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.conversation = conversation + c.googleclouddialogflowv2suggestconversationsummaryrequest = googleclouddialogflowv2suggestconversationsummaryrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Context(ctx context.Context) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestconversationsummaryrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversation}/suggestions:suggestConversationSummary") + 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{ + "conversation": c.conversation, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary" call. +// Exactly one of +// *GoogleCloudDialogflowV2SuggestConversationSummaryResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDialogflowV2SuggestConversationSummaryResponse.ServerRespo +// nse.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 *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestConversationSummaryResponse, 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 := &GoogleCloudDialogflowV2SuggestConversationSummaryResponse{ + 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 + // { + // "description": "Suggests summary for a conversation based on specific historical messages. The range of the messages to be used for summary can be specified in the request.", + // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/suggestions:suggestConversationSummary", + // "httpMethod": "POST", + // "id": "dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary", + // "parameterOrder": [ + // "conversation" + // ], + // "parameters": { + // "conversation": { + // "description": "Required. The conversation to fetch suggestion for. Format: `projects//locations//conversations/`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+conversation}/suggestions:suggestConversationSummary", + // "request": { + // "$ref": "GoogleCloudDialogflowV2SuggestConversationSummaryRequest" + // }, + // "response": { + // "$ref": "GoogleCloudDialogflowV2SuggestConversationSummaryResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/dialogflow" + // ] + // } + +} + // method id "dialogflow.projects.locations.knowledgeBases.create": type ProjectsLocationsKnowledgeBasesCreateCall struct { diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index b704e14561f..fa94e21364b 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7507,7 +7507,7 @@ } } }, - "revision": "20221115", + "revision": "20230106", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -7591,6 +7591,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowCxV3ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowCxV3TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ConversationTurn": { "description": "One interaction between a human and virtual agent. The human provides some input and the virtual agent provides a response.", "id": "GoogleCloudDialogflowCxV3ConversationTurn", @@ -9010,6 +9021,61 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowCxV3TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata", @@ -9382,6 +9448,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowCxV3beta1ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowCxV3beta1TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ConversationTurn": { "description": "One interaction between a human and virtual agent. The human provides some input and the virtual agent provides a response.", "id": "GoogleCloudDialogflowCxV3beta1ConversationTurn", @@ -10801,6 +10878,61 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowCxV3beta1TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata", @@ -18400,6 +18532,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowV3alpha1ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowV3alpha1ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowV3alpha1TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata": { "description": "Metadata for CreateDocument operation.", "id": "GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata", @@ -18482,6 +18625,65 @@ }, "type": "object" }, + "GoogleCloudDialogflowV3alpha1TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowV3alpha1TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "triggeredAbandonmentEvent": { + "description": "Whether agent has triggered the event corresponding to user abandoning the conversation.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata", diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index cdfd2fe6b7e..0698ee41e8b 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -913,6 +913,36 @@ func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ConversationSignals: This message is used to +// hold all the Conversation Signals data, which will be converted to +// JSON and exported to BigQuery. +type GoogleCloudDialogflowCxV3ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ConversationTurn: One interaction between a // human and virtual agent. The human provides some input and the // virtual agent provides a response. @@ -3652,6 +3682,64 @@ func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3TurnSignals: Collection of all signals that +// were extracted for a single turn of the conversation. +type GoogleCloudDialogflowCxV3TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata: Metadata // for UpdateDocument operation. type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct { @@ -4322,6 +4410,36 @@ func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ConversationSignals: This message is +// used to hold all the Conversation Signals data, which will be +// converted to JSON and exported to BigQuery. +type GoogleCloudDialogflowCxV3beta1ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ConversationTurn: One interaction // between a human and virtual agent. The human provides some input and // the virtual agent provides a response. @@ -7067,6 +7185,64 @@ func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1TurnSignals: Collection of all signals +// that were extracted for a single turn of the conversation. +type GoogleCloudDialogflowCxV3beta1TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata: // Metadata for UpdateDocument operation. type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct { @@ -20484,6 +20660,36 @@ func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV3alpha1ConversationSignals: This message is +// used to hold all the Conversation Signals data, which will be +// converted to JSON and exported to BigQuery. +type GoogleCloudDialogflowV3alpha1ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV3alpha1ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV3alpha1ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata: // Metadata for CreateDocument operation. type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct { @@ -20669,6 +20875,68 @@ func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV3alpha1TurnSignals: Collection of all signals +// that were extracted for a single turn of the conversation. +type GoogleCloudDialogflowV3alpha1TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // TriggeredAbandonmentEvent: Whether agent has triggered the event + // corresponding to user abandoning the conversation. + TriggeredAbandonmentEvent bool `json:"triggeredAbandonmentEvent,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV3alpha1TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata: // Metadata for UpdateDocument operation. type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct { diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index 5f4729d77ad..8bb0cde17cb 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20221115", + "revision": "20230106", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -4140,6 +4140,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowCxV3ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowCxV3TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ConversationTurn": { "description": "One interaction between a human and virtual agent. The human provides some input and the virtual agent provides a response.", "id": "GoogleCloudDialogflowCxV3ConversationTurn", @@ -7453,6 +7464,61 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowCxV3TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata", @@ -8048,6 +8114,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowCxV3beta1ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowCxV3beta1TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ConversationTurn": { "description": "One interaction between a human and virtual agent. The human provides some input and the virtual agent provides a response.", "id": "GoogleCloudDialogflowCxV3beta1ConversationTurn", @@ -9467,6 +9544,61 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowCxV3beta1TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata", @@ -14083,6 +14215,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowV3alpha1ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowV3alpha1ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowV3alpha1TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata": { "description": "Metadata for CreateDocument operation.", "id": "GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata", @@ -14165,6 +14308,65 @@ }, "type": "object" }, + "GoogleCloudDialogflowV3alpha1TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowV3alpha1TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "triggeredAbandonmentEvent": { + "description": "Whether agent has triggered the event corresponding to user abandoning the conversation.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata", diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index ddeb4971774..7ae38b2ec4b 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -1036,6 +1036,36 @@ func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ConversationSignals: This message is used to +// hold all the Conversation Signals data, which will be converted to +// JSON and exported to BigQuery. +type GoogleCloudDialogflowCxV3ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ConversationTurn: One interaction between a // human and virtual agent. The human provides some input and the // virtual agent provides a response. @@ -7337,6 +7367,64 @@ func (s *GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3TurnSignals: Collection of all signals that +// were extracted for a single turn of the conversation. +type GoogleCloudDialogflowCxV3TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata: Metadata // for UpdateDocument operation. type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct { @@ -8357,6 +8445,36 @@ func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ConversationSignals: This message is +// used to hold all the Conversation Signals data, which will be +// converted to JSON and exported to BigQuery. +type GoogleCloudDialogflowCxV3beta1ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ConversationTurn: One interaction // between a human and virtual agent. The human provides some input and // the virtual agent provides a response. @@ -11102,6 +11220,64 @@ func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1TurnSignals: Collection of all signals +// that were extracted for a single turn of the conversation. +type GoogleCloudDialogflowCxV3beta1TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata: // Metadata for UpdateDocument operation. type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct { @@ -18938,6 +19114,36 @@ func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV3alpha1ConversationSignals: This message is +// used to hold all the Conversation Signals data, which will be +// converted to JSON and exported to BigQuery. +type GoogleCloudDialogflowV3alpha1ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV3alpha1ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV3alpha1ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata: // Metadata for CreateDocument operation. type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct { @@ -19123,6 +19329,68 @@ func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV3alpha1TurnSignals: Collection of all signals +// that were extracted for a single turn of the conversation. +type GoogleCloudDialogflowV3alpha1TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // TriggeredAbandonmentEvent: Whether agent has triggered the event + // corresponding to user abandoning the conversation. + TriggeredAbandonmentEvent bool `json:"triggeredAbandonmentEvent,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV3alpha1TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata: // Metadata for UpdateDocument operation. type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct { diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 127cbf0f6cc..894731ce861 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20221115", + "revision": "20230106", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -3904,6 +3904,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowCxV3ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowCxV3TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ConversationTurn": { "description": "One interaction between a human and virtual agent. The human provides some input and the virtual agent provides a response.", "id": "GoogleCloudDialogflowCxV3ConversationTurn", @@ -5323,6 +5334,61 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowCxV3TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata", @@ -5931,6 +5997,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowCxV3beta1ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowCxV3beta1TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ConversationTurn": { "description": "One interaction between a human and virtual agent. The human provides some input and the virtual agent provides a response.", "id": "GoogleCloudDialogflowCxV3beta1ConversationTurn", @@ -9244,6 +9321,61 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowCxV3beta1TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata", @@ -14083,6 +14215,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowV3alpha1ConversationSignals": { + "description": "This message is used to hold all the Conversation Signals data, which will be converted to JSON and exported to BigQuery.", + "id": "GoogleCloudDialogflowV3alpha1ConversationSignals", + "properties": { + "turnSignals": { + "$ref": "GoogleCloudDialogflowV3alpha1TurnSignals", + "description": "Required. Turn signals for the current turn." + } + }, + "type": "object" + }, "GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata": { "description": "Metadata for CreateDocument operation.", "id": "GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata", @@ -14165,6 +14308,65 @@ }, "type": "object" }, + "GoogleCloudDialogflowV3alpha1TurnSignals": { + "description": "Collection of all signals that were extracted for a single turn of the conversation.", + "id": "GoogleCloudDialogflowV3alpha1TurnSignals", + "properties": { + "agentEscalated": { + "description": "Whether agent responded with LiveAgentHandoff fulfillment.", + "type": "boolean" + }, + "dtmfUsed": { + "description": "Whether user was using DTMF input.", + "type": "boolean" + }, + "failureReasons": { + "description": "Failure reasons of the turn.", + "items": { + "enum": [ + "FAILURE_REASON_UNSPECIFIED", + "FAILED_INTENT", + "FAILED_WEBHOOK" + ], + "enumDescriptions": [ + "Failure reason is not assigned.", + "Whether NLU failed to recognize user intent.", + "Whether webhook failed during the turn." + ], + "type": "string" + }, + "type": "array" + }, + "noMatch": { + "description": "Whether NLU predicted NO_MATCH.", + "type": "boolean" + }, + "noUserInput": { + "description": "Whether user provided no input.", + "type": "boolean" + }, + "reachedEndPage": { + "description": "Whether turn resulted in End Session page.", + "type": "boolean" + }, + "triggeredAbandonmentEvent": { + "description": "Whether agent has triggered the event corresponding to user abandoning the conversation.", + "type": "boolean" + }, + "userEscalated": { + "description": "Whether user was specifically asking for a live agent.", + "type": "boolean" + }, + "webhookStatuses": { + "description": "Human-readable statuses of the webhooks triggered during this turn.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata": { "description": "Metadata for UpdateDocument operation.", "id": "GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata", diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 7353509f588..0e654dbbce5 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -577,6 +577,36 @@ func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ConversationSignals: This message is used to +// hold all the Conversation Signals data, which will be converted to +// JSON and exported to BigQuery. +type GoogleCloudDialogflowCxV3ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ConversationTurn: One interaction between a // human and virtual agent. The human provides some input and the // virtual agent provides a response. @@ -3316,6 +3346,64 @@ func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3TurnSignals: Collection of all signals that +// were extracted for a single turn of the conversation. +type GoogleCloudDialogflowCxV3TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata: Metadata // for UpdateDocument operation. type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct { @@ -4445,6 +4533,36 @@ func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ConversationSignals: This message is +// used to hold all the Conversation Signals data, which will be +// converted to JSON and exported to BigQuery. +type GoogleCloudDialogflowCxV3beta1ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ConversationTurn: One interaction // between a human and virtual agent. The human provides some input and // the virtual agent provides a response. @@ -10758,6 +10876,64 @@ func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTrans return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1TurnSignals: Collection of all signals +// that were extracted for a single turn of the conversation. +type GoogleCloudDialogflowCxV3beta1TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata: // Metadata for UpdateDocument operation. type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct { @@ -18945,6 +19121,36 @@ func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV3alpha1ConversationSignals: This message is +// used to hold all the Conversation Signals data, which will be +// converted to JSON and exported to BigQuery. +type GoogleCloudDialogflowV3alpha1ConversationSignals struct { + // TurnSignals: Required. Turn signals for the current turn. + TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TurnSignals") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TurnSignals") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV3alpha1ConversationSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV3alpha1ConversationSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata: // Metadata for CreateDocument operation. type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct { @@ -19130,6 +19336,68 @@ func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV3alpha1TurnSignals: Collection of all signals +// that were extracted for a single turn of the conversation. +type GoogleCloudDialogflowV3alpha1TurnSignals struct { + // AgentEscalated: Whether agent responded with LiveAgentHandoff + // fulfillment. + AgentEscalated bool `json:"agentEscalated,omitempty"` + + // DtmfUsed: Whether user was using DTMF input. + DtmfUsed bool `json:"dtmfUsed,omitempty"` + + // FailureReasons: Failure reasons of the turn. + // + // Possible values: + // "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned. + // "FAILED_INTENT" - Whether NLU failed to recognize user intent. + // "FAILED_WEBHOOK" - Whether webhook failed during the turn. + FailureReasons []string `json:"failureReasons,omitempty"` + + // NoMatch: Whether NLU predicted NO_MATCH. + NoMatch bool `json:"noMatch,omitempty"` + + // NoUserInput: Whether user provided no input. + NoUserInput bool `json:"noUserInput,omitempty"` + + // ReachedEndPage: Whether turn resulted in End Session page. + ReachedEndPage bool `json:"reachedEndPage,omitempty"` + + // TriggeredAbandonmentEvent: Whether agent has triggered the event + // corresponding to user abandoning the conversation. + TriggeredAbandonmentEvent bool `json:"triggeredAbandonmentEvent,omitempty"` + + // UserEscalated: Whether user was specifically asking for a live agent. + UserEscalated bool `json:"userEscalated,omitempty"` + + // WebhookStatuses: Human-readable statuses of the webhooks triggered + // during this turn. + WebhookStatuses []string `json:"webhookStatuses,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentEscalated") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentEscalated") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowV3alpha1TurnSignals) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata: // Metadata for UpdateDocument operation. type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct { diff --git a/integrations/v1alpha/integrations-api.json b/integrations/v1alpha/integrations-api.json index 4a78532782f..7106b8aa745 100644 --- a/integrations/v1alpha/integrations-api.json +++ b/integrations/v1alpha/integrations-api.json @@ -737,34 +737,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "monitorexecutionstats": { - "description": "Get execution stats", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:monitorexecutionstats", - "httpMethod": "POST", - "id": "integrations.projects.locations.integrations.monitorexecutionstats", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+parent}:monitorexecutionstats", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "schedule": { "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:schedule", @@ -1732,34 +1704,6 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "monitorexecutionstats": { - "description": "Get execution stats", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:monitorexecutionstats", - "httpMethod": "POST", - "id": "integrations.projects.locations.products.integrations.monitorexecutionstats", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha/{+parent}:monitorexecutionstats", - "request": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" - }, - "response": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "schedule": { "description": "Schedules an integration for execution by passing the trigger id and the scheduled time in the request body.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:schedule", @@ -3308,7 +3252,7 @@ } } }, - "revision": "20221220", + "revision": "20230103", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { @@ -3449,115 +3393,6 @@ }, "type": "object" }, - "EnterpriseCrmCardsCellValue": { - "id": "EnterpriseCrmCardsCellValue", - "properties": { - "booleanValue": { - "type": "boolean" - }, - "doubleValue": { - "format": "double", - "type": "number" - }, - "empty": { - "$ref": "GoogleProtobufEmpty" - }, - "longValue": { - "format": "int64", - "type": "string" - }, - "stringValue": { - "type": "string" - } - }, - "type": "object" - }, - "EnterpriseCrmCardsRow": { - "id": "EnterpriseCrmCardsRow", - "properties": { - "cells": { - "description": "Ordered list of cell values within a row.", - "items": { - "$ref": "EnterpriseCrmCardsCellValue" - }, - "type": "array" - } - }, - "type": "object" - }, - "EnterpriseCrmCardsTabularData": { - "description": "The generic data format returned from all connectors.", - "id": "EnterpriseCrmCardsTabularData", - "properties": { - "headers": { - "description": "Ordered list of column headers.", - "items": { - "type": "string" - }, - "type": "array" - }, - "rows": { - "description": "Ordered list of table rows.", - "items": { - "$ref": "EnterpriseCrmCardsRow" - }, - "type": "array" - } - }, - "type": "object" - }, - "EnterpriseCrmCardsTemplatesAplosSeriesData": { - "description": "Data used to render an Aplos Series card.", - "id": "EnterpriseCrmCardsTemplatesAplosSeriesData", - "properties": { - "rows": { - "description": "A single Series Row", - "items": { - "$ref": "EnterpriseCrmCardsTemplatesAplosSeriesDataRow" - }, - "type": "array" - } - }, - "type": "object" - }, - "EnterpriseCrmCardsTemplatesAplosSeriesDataRow": { - "description": "Aplos series row is exactly two columns labeled x and y.", - "id": "EnterpriseCrmCardsTemplatesAplosSeriesDataRow", - "properties": { - "x": { - "$ref": "EnterpriseCrmCardsCellValue" - }, - "y": { - "$ref": "EnterpriseCrmCardsCellValue" - } - }, - "type": "object" - }, - "EnterpriseCrmCardsTemplatesAplosSeriesListData": { - "description": "Data used for Aplos charts that accept multiple Series.", - "id": "EnterpriseCrmCardsTemplatesAplosSeriesListData", - "properties": { - "series": { - "items": { - "$ref": "EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries" - }, - "type": "array" - } - }, - "type": "object" - }, - "EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries": { - "id": "EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries", - "properties": { - "data": { - "$ref": "EnterpriseCrmCardsTemplatesAplosSeriesData" - }, - "name": { - "type": "string" - } - }, - "type": "object" - }, "EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam": { "id": "EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam", "properties": { @@ -9918,199 +9753,6 @@ }, "type": "object" }, - "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest": { - "description": "The request to get data for monarch connector config.", - "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest", - "properties": { - "duration": { - "description": "How long the series data range: \"1h\",\"1d\",etc.", - "format": "google-duration", - "type": "string" - }, - "endTime": { - "description": "Final time to query over, or the current time if left unset.", - "format": "google-datetime", - "type": "string" - }, - "mashQuery": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery", - "description": "Required. Query for searching data in monarch." - }, - "metricFieldTable": { - "description": "Returns a table of all possible metric field values within the specified duration, ignoring any data samples. Useful for autocomplete functionality.", - "type": "boolean" - }, - "outputPeriod": { - "description": "The output period for the query. Must be set if there is a window operation within the query and unset otherwise.", - "format": "google-duration", - "type": "string" - }, - "responseTemplate": { - "description": "Required. Template for response.", - "enum": [ - "DATA_FORMAT_UNSPECIFIED", - "TABLE_CONFIG", - "APLOSE_SERIES_LIST_CONFIG" - ], - "enumDescriptions": [ - "Unknown data format", - "Table data", - "Aplose series data" - ], - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy": { - "description": "MashQuery GroupBy parameters.", - "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy", - "properties": { - "fields": { - "description": "Optional. optional, metrics list for GroupBy.", - "items": { - "type": "string" - }, - "type": "array" - }, - "reducer": { - "description": "Optional. optional, reduce function for GroupBy.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery": { - "description": "The MashQuery for searching data, set both queries for Join Operation.", - "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery", - "properties": { - "firstQuery": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent", - "description": "Required. The components for constructing a mash query. Set \"point_operation\" if this is a single query" - }, - "operationMode": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode", - "description": "Optional. optional, only set when joining 2 queries. By default join 2 queries with join operation." - }, - "secondQuery": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent", - "description": "Optional. optional, only set when joining 2 queries. Set \"point_operation\" for joined query." - } - }, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent": { - "description": "The components for constructing MashQuery.", - "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent", - "properties": { - "borgTaskMetric": { - "description": "Required. The metric for monarch.BorgTask.", - "enum": [ - "BORG_TASK_METRIC_UNSPECIFIED", - "TASK_INDIVIDUAL_COUNT", - "EVENT_COUNT", - "EVENT_DURATION", - "TASK_INDIVIDUAL_DURATION" - ], - "enumDescriptions": [ - "Unknown metric", - "Metric end with: \"/task/individual_count\".", - "Metric end with: \"/event/count\".", - "Metric end with: \"/event/duration\".", - "Metric end with: \"/task/individual_duration\"." - ], - "type": "string" - }, - "dataFilters": { - "description": "Optional. optional, filters on fetched data, \"metric:client_id\" not supported.", - "items": { - "type": "string" - }, - "type": "array" - }, - "fetchFilters": { - "description": "Optional. optional, filters for Fetch Raw, \"metric:client_id\" not supported.", - "items": { - "type": "string" - }, - "type": "array" - }, - "groupBy": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy", - "description": "Optional. optional, GroupBy variables." - }, - "pointOperation": { - "description": "Optional. optional, Point Operation on single query or joined query.", - "type": "string" - }, - "timeDelta": { - "description": "Required. Window time delta.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode": { - "description": "Operation between 2 query", - "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode", - "properties": { - "joinConfig": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeJoinConfig", - "description": "Optional. join operation" - }, - "operationType": { - "description": "Optional. optional operation types.", - "enum": [ - "OPERATION_TYPE_UNSPECIFIED", - "UNION", - "JOIN" - ], - "enumDescriptions": [ - "By default join.", - "Union operation", - "Join Operation" - ], - "type": "string" - }, - "unionConfig": { - "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig", - "description": "Optional. union operation" - } - }, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeJoinConfig": { - "description": "Join Operation", - "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeJoinConfig", - "properties": {}, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig": { - "description": "Union operation", - "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig", - "properties": { - "reducer": { - "description": "Optional. optional, reduce function", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse": { - "description": "The response for getting Execution stats.", - "id": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse", - "properties": { - "aplosSeriesListData": { - "$ref": "EnterpriseCrmCardsTemplatesAplosSeriesListData", - "description": "List of points." - }, - "tableData": { - "$ref": "EnterpriseCrmCardsTabularData", - "description": "Data in form of table." - } - }, - "type": "object" - }, "GoogleCloudIntegrationsV1alphaNextTask": { "description": "The task that is next in line to be executed, if the condition specified evaluated to true.", "id": "GoogleCloudIntegrationsV1alphaNextTask", diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go index faab668f5de..5e754fe70e7 100644 --- a/integrations/v1alpha/integrations-gen.go +++ b/integrations/v1alpha/integrations-gen.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. +// Copyright 2023 Google LLC. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -553,228 +553,6 @@ func (s *CrmlogErrorCode) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type EnterpriseCrmCardsCellValue struct { - BooleanValue bool `json:"booleanValue,omitempty"` - - DoubleValue float64 `json:"doubleValue,omitempty"` - - Empty *GoogleProtobufEmpty `json:"empty,omitempty"` - - LongValue int64 `json:"longValue,omitempty,string"` - - StringValue string `json:"stringValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BooleanValue") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BooleanValue") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *EnterpriseCrmCardsCellValue) MarshalJSON() ([]byte, error) { - type NoMethod EnterpriseCrmCardsCellValue - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *EnterpriseCrmCardsCellValue) UnmarshalJSON(data []byte) error { - type NoMethod EnterpriseCrmCardsCellValue - var s1 struct { - DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.DoubleValue = float64(s1.DoubleValue) - return nil -} - -type EnterpriseCrmCardsRow struct { - // Cells: Ordered list of cell values within a row. - Cells []*EnterpriseCrmCardsCellValue `json:"cells,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Cells") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Cells") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *EnterpriseCrmCardsRow) MarshalJSON() ([]byte, error) { - type NoMethod EnterpriseCrmCardsRow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnterpriseCrmCardsTabularData: The generic data format returned from -// all connectors. -type EnterpriseCrmCardsTabularData struct { - // Headers: Ordered list of column headers. - Headers []string `json:"headers,omitempty"` - - // Rows: Ordered list of table rows. - Rows []*EnterpriseCrmCardsRow `json:"rows,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Headers") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Headers") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *EnterpriseCrmCardsTabularData) MarshalJSON() ([]byte, error) { - type NoMethod EnterpriseCrmCardsTabularData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnterpriseCrmCardsTemplatesAplosSeriesData: Data used to render an -// Aplos Series card. -type EnterpriseCrmCardsTemplatesAplosSeriesData struct { - // Rows: A single Series Row - Rows []*EnterpriseCrmCardsTemplatesAplosSeriesDataRow `json:"rows,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Rows") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Rows") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *EnterpriseCrmCardsTemplatesAplosSeriesData) MarshalJSON() ([]byte, error) { - type NoMethod EnterpriseCrmCardsTemplatesAplosSeriesData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnterpriseCrmCardsTemplatesAplosSeriesDataRow: Aplos series row is -// exactly two columns labeled x and y. -type EnterpriseCrmCardsTemplatesAplosSeriesDataRow struct { - X *EnterpriseCrmCardsCellValue `json:"x,omitempty"` - - Y *EnterpriseCrmCardsCellValue `json:"y,omitempty"` - - // ForceSendFields is a list of field names (e.g. "X") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "X") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *EnterpriseCrmCardsTemplatesAplosSeriesDataRow) MarshalJSON() ([]byte, error) { - type NoMethod EnterpriseCrmCardsTemplatesAplosSeriesDataRow - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// EnterpriseCrmCardsTemplatesAplosSeriesListData: Data used for Aplos -// charts that accept multiple Series. -type EnterpriseCrmCardsTemplatesAplosSeriesListData struct { - Series []*EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries `json:"series,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Series") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Series") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *EnterpriseCrmCardsTemplatesAplosSeriesListData) MarshalJSON() ([]byte, error) { - type NoMethod EnterpriseCrmCardsTemplatesAplosSeriesListData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries struct { - Data *EnterpriseCrmCardsTemplatesAplosSeriesData `json:"data,omitempty"` - - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Data") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Data") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries) MarshalJSON() ([]byte, error) { - type NoMethod EnterpriseCrmCardsTemplatesAplosSeriesListDataSeries - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type EnterpriseCrmEventbusAuthconfigAuthConfigTaskParam struct { // AllowedCredentialTypes: Defines the credential types to be supported // as Task may restrict specific types to use, e.g. Cloud SQL Task will @@ -9622,322 +9400,31 @@ func (s *GoogleCloudIntegrationsV1alphaListSuspensionsResponse) MarshalJSON() ([ // only method and will be moved away. Response for ListTaskEntities. type GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse struct { // TaskEntities: The list of the tasks. - TaskEntities []*EnterpriseCrmFrontendsEventbusProtoTaskEntity `json:"taskEntities,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "TaskEntities") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "TaskEntities") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest: The -// request to get data for monarch connector config. -type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest struct { - // Duration: How long the series data range: "1h","1d",etc. - Duration string `json:"duration,omitempty"` - - // EndTime: Final time to query over, or the current time if left unset. - EndTime string `json:"endTime,omitempty"` - - // MashQuery: Required. Query for searching data in monarch. - MashQuery *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery `json:"mashQuery,omitempty"` - - // MetricFieldTable: Returns a table of all possible metric field values - // within the specified duration, ignoring any data samples. Useful for - // autocomplete functionality. - MetricFieldTable bool `json:"metricFieldTable,omitempty"` - - // OutputPeriod: The output period for the query. Must be set if there - // is a window operation within the query and unset otherwise. - OutputPeriod string `json:"outputPeriod,omitempty"` - - // ResponseTemplate: Required. Template for response. - // - // Possible values: - // "DATA_FORMAT_UNSPECIFIED" - Unknown data format - // "TABLE_CONFIG" - Table data - // "APLOSE_SERIES_LIST_CONFIG" - Aplose series data - ResponseTemplate string `json:"responseTemplate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Duration") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Duration") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy: -// MashQuery GroupBy parameters. -type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy struct { - // Fields: Optional. optional, metrics list for GroupBy. - Fields []string `json:"fields,omitempty"` - - // Reducer: Optional. optional, reduce function for GroupBy. - Reducer string `json:"reducer,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Fields") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Fields") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery: -// The MashQuery for searching data, set both queries for Join -// Operation. -type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery struct { - // FirstQuery: Required. The components for constructing a mash query. - // Set "point_operation" if this is a single query - FirstQuery *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent `json:"firstQuery,omitempty"` - - // OperationMode: Optional. optional, only set when joining 2 queries. - // By default join 2 queries with join operation. - OperationMode *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode `json:"operationMode,omitempty"` - - // SecondQuery: Optional. optional, only set when joining 2 queries. Set - // "point_operation" for joined query. - SecondQuery *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent `json:"secondQuery,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FirstQuery") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FirstQuery") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQuery - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryCom -// ponent: The components for constructing MashQuery. -type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent struct { - // BorgTaskMetric: Required. The metric for monarch.BorgTask. - // - // Possible values: - // "BORG_TASK_METRIC_UNSPECIFIED" - Unknown metric - // "TASK_INDIVIDUAL_COUNT" - Metric end with: - // "/task/individual_count". - // "EVENT_COUNT" - Metric end with: "/event/count". - // "EVENT_DURATION" - Metric end with: "/event/duration". - // "TASK_INDIVIDUAL_DURATION" - Metric end with: - // "/task/individual_duration". - BorgTaskMetric string `json:"borgTaskMetric,omitempty"` - - // DataFilters: Optional. optional, filters on fetched data, - // "metric:client_id" not supported. - DataFilters []string `json:"dataFilters,omitempty"` - - // FetchFilters: Optional. optional, filters for Fetch Raw, - // "metric:client_id" not supported. - FetchFilters []string `json:"fetchFilters,omitempty"` - - // GroupBy: Optional. optional, GroupBy variables. - GroupBy *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestGroupBy `json:"groupBy,omitempty"` - - // PointOperation: Optional. optional, Point Operation on single query - // or joined query. - PointOperation string `json:"pointOperation,omitempty"` - - // TimeDelta: Required. Window time delta. - TimeDelta string `json:"timeDelta,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BorgTaskMetric") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BorgTaskMetric") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryComponent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOpe -// rationMode: Operation between 2 query -type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode struct { - // JoinConfig: Optional. join operation - JoinConfig *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeJoinConfig `json:"joinConfig,omitempty"` - - // OperationType: Optional. optional operation types. - // - // Possible values: - // "OPERATION_TYPE_UNSPECIFIED" - By default join. - // "UNION" - Union operation - // "JOIN" - Join Operation - OperationType string `json:"operationType,omitempty"` - - // UnionConfig: Optional. union operation - UnionConfig *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig `json:"unionConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "JoinConfig") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "JoinConfig") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationMode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOpe -// rationModeJoinConfig: Join Operation -type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeJoinConfig struct { -} - -// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOpe -// rationModeUnionConfig: Union operation -type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig struct { - // Reducer: Optional. optional, reduce function - Reducer string `json:"reducer,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Reducer") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Reducer") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequestMashQueryOperationModeUnionConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse: The -// response for getting Execution stats. -type GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse struct { - // AplosSeriesListData: List of points. - AplosSeriesListData *EnterpriseCrmCardsTemplatesAplosSeriesListData `json:"aplosSeriesListData,omitempty"` - - // TableData: Data in form of table. - TableData *EnterpriseCrmCardsTabularData `json:"tableData,omitempty"` + TaskEntities []*EnterpriseCrmFrontendsEventbusProtoTaskEntity `json:"taskEntities,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AplosSeriesListData") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "TaskEntities") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AplosSeriesListData") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "TaskEntities") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse +func (s *GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaListTaskEntitiesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -14682,151 +14169,6 @@ func (c *ProjectsLocationsIntegrationsListCall) Pages(ctx context.Context, f fun } } -// method id "integrations.projects.locations.integrations.monitorexecutionstats": - -type ProjectsLocationsIntegrationsMonitorexecutionstatsCall struct { - s *Service - parent string - googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Monitorexecutionstats: Get execution stats -// -// - parent: The parent resource name: {parent=projects/*/locations/*}. -func (r *ProjectsLocationsIntegrationsService) Monitorexecutionstats(parent string, googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest) *ProjectsLocationsIntegrationsMonitorexecutionstatsCall { - c := &ProjectsLocationsIntegrationsMonitorexecutionstatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest = googlecloudintegrationsv1alphamonitorexecutionstatsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsMonitorexecutionstatsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsMonitorexecutionstatsCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}:monitorexecutionstats") - 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 "integrations.projects.locations.integrations.monitorexecutionstats" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse.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 *ProjectsLocationsIntegrationsMonitorexecutionstatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse, 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 := &GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse{ - 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 - // { - // "description": "Get execution stats", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:monitorexecutionstats", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.monitorexecutionstats", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}:monitorexecutionstats", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "integrations.projects.locations.integrations.schedule": type ProjectsLocationsIntegrationsScheduleCall struct { @@ -19476,151 +18818,6 @@ func (c *ProjectsLocationsProductsIntegrationsListCall) Pages(ctx context.Contex } } -// method id "integrations.projects.locations.products.integrations.monitorexecutionstats": - -type ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall struct { - s *Service - parent string - googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Monitorexecutionstats: Get execution stats -// -// - parent: The parent resource name: {parent=projects/*/locations/*}. -func (r *ProjectsLocationsProductsIntegrationsService) Monitorexecutionstats(parent string, googlecloudintegrationsv1alphamonitorexecutionstatsrequest *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest) *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall { - c := &ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest = googlecloudintegrationsv1alphamonitorexecutionstatsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphamonitorexecutionstatsrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}:monitorexecutionstats") - 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 "integrations.projects.locations.products.integrations.monitorexecutionstats" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse.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 *ProjectsLocationsProductsIntegrationsMonitorexecutionstatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse, 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 := &GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse{ - 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 - // { - // "description": "Get execution stats", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}:monitorexecutionstats", - // "httpMethod": "POST", - // "id": "integrations.projects.locations.products.integrations.monitorexecutionstats", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent resource name: {parent=projects/*/locations/*}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1alpha/{+parent}:monitorexecutionstats", - // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaMonitorExecutionStatsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "integrations.projects.locations.products.integrations.schedule": type ProjectsLocationsProductsIntegrationsScheduleCall struct { diff --git a/playintegrity/v1/playintegrity-api.json b/playintegrity/v1/playintegrity-api.json index 4fc294ef863..d6e87ef7c74 100644 --- a/playintegrity/v1/playintegrity-api.json +++ b/playintegrity/v1/playintegrity-api.json @@ -138,7 +138,7 @@ } } }, - "revision": "20221212", + "revision": "20230105", "rootUrl": "https://playintegrity.googleapis.com/", "schemas": { "AccountActivity": { @@ -289,7 +289,11 @@ "id": "RequestDetails", "properties": { "nonce": { - "description": "Required. Nonce that was provided in the request (which is base64 web-safe no-wrap).", + "description": "Nonce that was provided in the request (which is base64 web-safe no-wrap).", + "type": "string" + }, + "requestHash": { + "description": "Request hash that was provided in the request.", "type": "string" }, "requestPackageName": { diff --git a/playintegrity/v1/playintegrity-gen.go b/playintegrity/v1/playintegrity-gen.go index 055419b614e..28c5e2b5bdd 100644 --- a/playintegrity/v1/playintegrity-gen.go +++ b/playintegrity/v1/playintegrity-gen.go @@ -409,10 +409,13 @@ func (s *DeviceIntegrity) MarshalJSON() ([]byte, error) { // RequestDetails: Contains the integrity request information. type RequestDetails struct { - // Nonce: Required. Nonce that was provided in the request (which is - // base64 web-safe no-wrap). + // Nonce: Nonce that was provided in the request (which is base64 + // web-safe no-wrap). Nonce string `json:"nonce,omitempty"` + // RequestHash: Request hash that was provided in the request. + RequestHash string `json:"requestHash,omitempty"` + // RequestPackageName: Required. Application package name this // attestation was requested for. Note: This field makes no guarantees // or promises on the caller integrity. For details on application diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index 2fed752be7b..3aeb62ea63a 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -1424,7 +1424,7 @@ } } }, - "revision": "20221020", + "revision": "20221226", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -1461,7 +1461,7 @@ "enumDescriptions": [ "Default value. This value is unused.", "The subscription can actively send messages to BigQuery", - "Cannot write to the BigQuery table because of permission denied errors.", + "Cannot write to the BigQuery table because of permission denied errors. This can happen if - Pub/Sub SA has not been granted the [appropriate BigQuery IAM permissions](https://cloud.google.com/pubsub/docs/create-subscription#assign_bigquery_service_account) - bigquery.googleapis.com API is not enabled for the project ([instructions](https://cloud.google.com/service-usage/docs/enable-disable))", "Cannot write to the BigQuery table because it does not exist.", "Cannot write to the BigQuery table due to a schema mismatch." ], diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index 98c17518194..50e5efa151b 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -274,7 +274,13 @@ type BigQueryConfig struct { // "STATE_UNSPECIFIED" - Default value. This value is unused. // "ACTIVE" - The subscription can actively send messages to BigQuery // "PERMISSION_DENIED" - Cannot write to the BigQuery table because of - // permission denied errors. + // permission denied errors. This can happen if - Pub/Sub SA has not + // been granted the [appropriate BigQuery IAM + // permissions](https://cloud.google.com/pubsub/docs/create-subscription# + // assign_bigquery_service_account) - bigquery.googleapis.com API is not + // enabled for the project + // ([instructions](https://cloud.google.com/service-usage/docs/enable-dis + // able)) // "NOT_FOUND" - Cannot write to the BigQuery table because it does // not exist. // "SCHEMA_MISMATCH" - Cannot write to the BigQuery table due to a