From 4418f5fc551ce9a1edda277ddf483f3dd596d9aa Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 28 Apr 2024 00:20:17 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2551) --- alloydb/v1/alloydb-api.json | 13 +- alloydb/v1/alloydb-gen.go | 10 +- alloydb/v1alpha/alloydb-api.json | 21 +- alloydb/v1alpha/alloydb-gen.go | 20 +- alloydb/v1beta/alloydb-api.json | 21 +- alloydb/v1beta/alloydb-gen.go | 20 +- beyondcorp/v1alpha/beyondcorp-api.json | 38 +- beyondcorp/v1alpha/beyondcorp-gen.go | 132 +++++ calendar/v3/calendar-api.json | 6 +- calendar/v3/calendar-gen.go | 10 +- clouddeploy/v1/clouddeploy-api.json | 27 +- clouddeploy/v1/clouddeploy-gen.go | 35 +- dialogflow/v2/dialogflow-api.json | 50 +- dialogflow/v2/dialogflow-gen.go | 90 +++ dialogflow/v2beta1/dialogflow-api.json | 50 +- dialogflow/v2beta1/dialogflow-gen.go | 90 +++ dialogflow/v3/dialogflow-api.json | 50 +- dialogflow/v3/dialogflow-gen.go | 90 +++ dialogflow/v3beta1/dialogflow-api.json | 432 +++++++++++++- dialogflow/v3beta1/dialogflow-gen.go | 790 +++++++++++++++++++++++++ redis/v1/redis-api.json | 13 +- redis/v1/redis-gen.go | 10 +- redis/v1beta1/redis-api.json | 13 +- redis/v1beta1/redis-gen.go | 10 +- 24 files changed, 1946 insertions(+), 95 deletions(-) diff --git a/alloydb/v1/alloydb-api.json b/alloydb/v1/alloydb-api.json index 5d653e8dcfe..ec424d1b264 100644 --- a/alloydb/v1/alloydb-api.json +++ b/alloydb/v1/alloydb-api.json @@ -1461,7 +1461,7 @@ } } }, - "revision": "20240410", + "revision": "20240417", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -3081,6 +3081,10 @@ ], "type": "string" }, + "crossRegionReplicaConfigured": { + "description": "Checks for resources that are configured to have redundancy, and ongoing replication across regions", + "type": "boolean" + }, "externalReplicaConfigured": { "type": "boolean" }, @@ -4047,17 +4051,10 @@ "description": "An enum that represents the type of this entitlement.", "enum": [ "ENTITLEMENT_TYPE_UNSPECIFIED", - "DUET_AI", "GEMINI" ], - "enumDeprecated": [ - false, - true, - false - ], "enumDescriptions": [ "", - "The root entitlement representing Duet AI package ownership.", "The root entitlement representing Gemini package ownership." ], "type": "string" diff --git a/alloydb/v1/alloydb-gen.go b/alloydb/v1/alloydb-gen.go index f227249eead..70c0d1f450b 100644 --- a/alloydb/v1/alloydb-gen.go +++ b/alloydb/v1/alloydb-gen.go @@ -2144,9 +2144,12 @@ type StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration struct { // "REGIONAL" - Regional available instance. // "MULTI_REGIONAL" - Multi regional instance // "AVAILABILITY_TYPE_OTHER" - For rest of the other category - AvailabilityType string `json:"availabilityType,omitempty"` - ExternalReplicaConfigured bool `json:"externalReplicaConfigured,omitempty"` - PromotableReplicaConfigured bool `json:"promotableReplicaConfigured,omitempty"` + AvailabilityType string `json:"availabilityType,omitempty"` + // CrossRegionReplicaConfigured: Checks for resources that are configured to + // have redundancy, and ongoing replication across regions + CrossRegionReplicaConfigured bool `json:"crossRegionReplicaConfigured,omitempty"` + ExternalReplicaConfigured bool `json:"externalReplicaConfigured,omitempty"` + PromotableReplicaConfigured bool `json:"promotableReplicaConfigured,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -2998,7 +3001,6 @@ type StorageDatabasecenterPartnerapiV1mainEntitlement struct { // // Possible values: // "ENTITLEMENT_TYPE_UNSPECIFIED" - // "DUET_AI" - The root entitlement representing Duet AI package ownership. // "GEMINI" - The root entitlement representing Gemini package ownership. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "EntitlementState") to diff --git a/alloydb/v1alpha/alloydb-api.json b/alloydb/v1alpha/alloydb-api.json index f0904b3d7b3..0beef60ece5 100644 --- a/alloydb/v1alpha/alloydb-api.json +++ b/alloydb/v1alpha/alloydb-api.json @@ -1461,7 +1461,7 @@ } } }, - "revision": "20240410", + "revision": "20240417", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -1852,7 +1852,7 @@ }, "geminiConfig": { "$ref": "GeminiClusterConfig", - "description": "Optional. Configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details." + "description": "Optional. Configuration parameters related to the Gemini in Databases add-on." }, "initialUser": { "$ref": "UserPassword", @@ -2159,7 +2159,7 @@ "type": "object" }, "GeminiClusterConfig": { - "description": "Cluster level configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details.", + "description": "Cluster level configuration parameters related to the Gemini in Databases add-on.", "id": "GeminiClusterConfig", "properties": { "entitled": { @@ -2171,7 +2171,7 @@ "type": "object" }, "GeminiInstanceConfig": { - "description": "Instance level configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details.", + "description": "Instance level configuration parameters related to the Gemini in Databases add-on.", "id": "GeminiInstanceConfig", "properties": { "entitled": { @@ -2350,7 +2350,7 @@ }, "geminiConfig": { "$ref": "GeminiInstanceConfig", - "description": "Optional. Configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details." + "description": "Optional. Configuration parameters related to the Gemini in Databases add-on." }, "instanceType": { "description": "Required. The type of the instance. Specified at creation time.", @@ -3210,6 +3210,10 @@ ], "type": "string" }, + "crossRegionReplicaConfigured": { + "description": "Checks for resources that are configured to have redundancy, and ongoing replication across regions", + "type": "boolean" + }, "externalReplicaConfigured": { "type": "boolean" }, @@ -4176,17 +4180,10 @@ "description": "An enum that represents the type of this entitlement.", "enum": [ "ENTITLEMENT_TYPE_UNSPECIFIED", - "DUET_AI", "GEMINI" ], - "enumDeprecated": [ - false, - true, - false - ], "enumDescriptions": [ "", - "The root entitlement representing Duet AI package ownership.", "The root entitlement representing Gemini package ownership." ], "type": "string" diff --git a/alloydb/v1alpha/alloydb-gen.go b/alloydb/v1alpha/alloydb-gen.go index f26bf7a783c..e9a5eaf52b1 100644 --- a/alloydb/v1alpha/alloydb-gen.go +++ b/alloydb/v1alpha/alloydb-gen.go @@ -586,7 +586,7 @@ type Cluster struct { // Etag: For Resource freshness validation (https://google.aip.dev/154) Etag string `json:"etag,omitempty"` // GeminiConfig: Optional. Configuration parameters related to the Gemini in - // Databases add-on. See go/prd-enable-duet-ai-databases for more details. + // Databases add-on. GeminiConfig *GeminiClusterConfig `json:"geminiConfig,omitempty"` // InitialUser: Input only. Initial user to setup during cluster creation. // Required. If used in `RestoreCluster` this is ignored. @@ -941,8 +941,7 @@ func (s *FailoverInstanceRequest) MarshalJSON() ([]byte, error) { } // GeminiClusterConfig: Cluster level configuration parameters related to the -// Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more -// details. +// Gemini in Databases add-on. type GeminiClusterConfig struct { // Entitled: Output only. Whether the Gemini in Databases add-on is enabled for // the cluster. It will be true only if the add-on has been enabled for the @@ -968,8 +967,7 @@ func (s *GeminiClusterConfig) MarshalJSON() ([]byte, error) { } // GeminiInstanceConfig: Instance level configuration parameters related to the -// Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more -// details. +// Gemini in Databases add-on. type GeminiInstanceConfig struct { // Entitled: Output only. Whether the Gemini in Databases add-on is enabled for // the instance. It will be true only if the add-on has been enabled for the @@ -1183,7 +1181,7 @@ type Instance struct { // in a random zone with available capacity. GceZone string `json:"gceZone,omitempty"` // GeminiConfig: Optional. Configuration parameters related to the Gemini in - // Databases add-on. See go/prd-enable-duet-ai-databases for more details. + // Databases add-on. GeminiConfig *GeminiInstanceConfig `json:"geminiConfig,omitempty"` // InstanceType: Required. The type of the instance. Specified at creation // time. @@ -2300,9 +2298,12 @@ type StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration struct { // "REGIONAL" - Regional available instance. // "MULTI_REGIONAL" - Multi regional instance // "AVAILABILITY_TYPE_OTHER" - For rest of the other category - AvailabilityType string `json:"availabilityType,omitempty"` - ExternalReplicaConfigured bool `json:"externalReplicaConfigured,omitempty"` - PromotableReplicaConfigured bool `json:"promotableReplicaConfigured,omitempty"` + AvailabilityType string `json:"availabilityType,omitempty"` + // CrossRegionReplicaConfigured: Checks for resources that are configured to + // have redundancy, and ongoing replication across regions + CrossRegionReplicaConfigured bool `json:"crossRegionReplicaConfigured,omitempty"` + ExternalReplicaConfigured bool `json:"externalReplicaConfigured,omitempty"` + PromotableReplicaConfigured bool `json:"promotableReplicaConfigured,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3154,7 +3155,6 @@ type StorageDatabasecenterPartnerapiV1mainEntitlement struct { // // Possible values: // "ENTITLEMENT_TYPE_UNSPECIFIED" - // "DUET_AI" - The root entitlement representing Duet AI package ownership. // "GEMINI" - The root entitlement representing Gemini package ownership. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "EntitlementState") to diff --git a/alloydb/v1beta/alloydb-api.json b/alloydb/v1beta/alloydb-api.json index 0a87ecea22f..61d3144f399 100644 --- a/alloydb/v1beta/alloydb-api.json +++ b/alloydb/v1beta/alloydb-api.json @@ -1458,7 +1458,7 @@ } } }, - "revision": "20240410", + "revision": "20240417", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -1838,7 +1838,7 @@ }, "geminiConfig": { "$ref": "GeminiClusterConfig", - "description": "Optional. Configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details." + "description": "Optional. Configuration parameters related to the Gemini in Databases add-on." }, "initialUser": { "$ref": "UserPassword", @@ -2140,7 +2140,7 @@ "type": "object" }, "GeminiClusterConfig": { - "description": "Cluster level configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details.", + "description": "Cluster level configuration parameters related to the Gemini in Databases add-on.", "id": "GeminiClusterConfig", "properties": { "entitled": { @@ -2152,7 +2152,7 @@ "type": "object" }, "GeminiInstanceConfig": { - "description": "Instance level configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details.", + "description": "Instance level configuration parameters related to the Gemini in Databases add-on.", "id": "GeminiInstanceConfig", "properties": { "entitled": { @@ -2331,7 +2331,7 @@ }, "geminiConfig": { "$ref": "GeminiInstanceConfig", - "description": "Optional. Configuration parameters related to the Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more details." + "description": "Optional. Configuration parameters related to the Gemini in Databases add-on." }, "instanceType": { "description": "Required. The type of the instance. Specified at creation time.", @@ -3186,6 +3186,10 @@ ], "type": "string" }, + "crossRegionReplicaConfigured": { + "description": "Checks for resources that are configured to have redundancy, and ongoing replication across regions", + "type": "boolean" + }, "externalReplicaConfigured": { "type": "boolean" }, @@ -4152,17 +4156,10 @@ "description": "An enum that represents the type of this entitlement.", "enum": [ "ENTITLEMENT_TYPE_UNSPECIFIED", - "DUET_AI", "GEMINI" ], - "enumDeprecated": [ - false, - true, - false - ], "enumDescriptions": [ "", - "The root entitlement representing Duet AI package ownership.", "The root entitlement representing Gemini package ownership." ], "type": "string" diff --git a/alloydb/v1beta/alloydb-gen.go b/alloydb/v1beta/alloydb-gen.go index 7a3d105d4a0..ee4a048bb4b 100644 --- a/alloydb/v1beta/alloydb-gen.go +++ b/alloydb/v1beta/alloydb-gen.go @@ -580,7 +580,7 @@ type Cluster struct { // Etag: For Resource freshness validation (https://google.aip.dev/154) Etag string `json:"etag,omitempty"` // GeminiConfig: Optional. Configuration parameters related to the Gemini in - // Databases add-on. See go/prd-enable-duet-ai-databases for more details. + // Databases add-on. GeminiConfig *GeminiClusterConfig `json:"geminiConfig,omitempty"` // InitialUser: Input only. Initial user to setup during cluster creation. // Required. If used in `RestoreCluster` this is ignored. @@ -933,8 +933,7 @@ func (s *FailoverInstanceRequest) MarshalJSON() ([]byte, error) { } // GeminiClusterConfig: Cluster level configuration parameters related to the -// Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more -// details. +// Gemini in Databases add-on. type GeminiClusterConfig struct { // Entitled: Output only. Whether the Gemini in Databases add-on is enabled for // the cluster. It will be true only if the add-on has been enabled for the @@ -960,8 +959,7 @@ func (s *GeminiClusterConfig) MarshalJSON() ([]byte, error) { } // GeminiInstanceConfig: Instance level configuration parameters related to the -// Gemini in Databases add-on. See go/prd-enable-duet-ai-databases for more -// details. +// Gemini in Databases add-on. type GeminiInstanceConfig struct { // Entitled: Output only. Whether the Gemini in Databases add-on is enabled for // the instance. It will be true only if the add-on has been enabled for the @@ -1175,7 +1173,7 @@ type Instance struct { // in a random zone with available capacity. GceZone string `json:"gceZone,omitempty"` // GeminiConfig: Optional. Configuration parameters related to the Gemini in - // Databases add-on. See go/prd-enable-duet-ai-databases for more details. + // Databases add-on. GeminiConfig *GeminiInstanceConfig `json:"geminiConfig,omitempty"` // InstanceType: Required. The type of the instance. Specified at creation // time. @@ -2290,9 +2288,12 @@ type StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration struct { // "REGIONAL" - Regional available instance. // "MULTI_REGIONAL" - Multi regional instance // "AVAILABILITY_TYPE_OTHER" - For rest of the other category - AvailabilityType string `json:"availabilityType,omitempty"` - ExternalReplicaConfigured bool `json:"externalReplicaConfigured,omitempty"` - PromotableReplicaConfigured bool `json:"promotableReplicaConfigured,omitempty"` + AvailabilityType string `json:"availabilityType,omitempty"` + // CrossRegionReplicaConfigured: Checks for resources that are configured to + // have redundancy, and ongoing replication across regions + CrossRegionReplicaConfigured bool `json:"crossRegionReplicaConfigured,omitempty"` + ExternalReplicaConfigured bool `json:"externalReplicaConfigured,omitempty"` + PromotableReplicaConfigured bool `json:"promotableReplicaConfigured,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3144,7 +3145,6 @@ type StorageDatabasecenterPartnerapiV1mainEntitlement struct { // // Possible values: // "ENTITLEMENT_TYPE_UNSPECIFIED" - // "DUET_AI" - The root entitlement representing Duet AI package ownership. // "GEMINI" - The root entitlement representing Gemini package ownership. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "EntitlementState") to diff --git a/beyondcorp/v1alpha/beyondcorp-api.json b/beyondcorp/v1alpha/beyondcorp-api.json index c06a7880bdf..8b24c3d4505 100644 --- a/beyondcorp/v1alpha/beyondcorp-api.json +++ b/beyondcorp/v1alpha/beyondcorp-api.json @@ -1285,6 +1285,42 @@ "response": { "$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse" } + }, + "patch": { + "description": "Updates an existing BeyondCorp Enterprise Subscription in a given organization. Location will always be global as BeyondCorp subscriptions are per organization.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/subscriptions/{subscriptionsId}", + "httpMethod": "PATCH", + "id": "beyondcorp.organizations.locations.subscriptions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Unique resource name of the Subscription. The name is ignored when creating a subscription.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/subscriptions/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the Subscription resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all mutable fields will be overwritten. Mutable fields: type, state.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription" + }, + "response": { + "$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription" + } } } } @@ -3903,7 +3939,7 @@ } } }, - "revision": "20240410", + "revision": "20240417", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { diff --git a/beyondcorp/v1alpha/beyondcorp-gen.go b/beyondcorp/v1alpha/beyondcorp-gen.go index fceb57e8bd5..e1b3364ffd0 100644 --- a/beyondcorp/v1alpha/beyondcorp-gen.go +++ b/beyondcorp/v1alpha/beyondcorp-gen.go @@ -8109,6 +8109,138 @@ func (c *OrganizationsLocationsSubscriptionsListCall) Pages(ctx context.Context, } } +type OrganizationsLocationsSubscriptionsPatchCall struct { + s *Service + name string + googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing BeyondCorp Enterprise Subscription in a given +// organization. Location will always be global as BeyondCorp subscriptions are +// per organization. +// +// - name: Unique resource name of the Subscription. The name is ignored when +// creating a subscription. +func (r *OrganizationsLocationsSubscriptionsService) Patch(name string, googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription) *OrganizationsLocationsSubscriptionsPatchCall { + c := &OrganizationsLocationsSubscriptionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription = googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes since +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *OrganizationsLocationsSubscriptionsPatchCall) RequestId(requestId string) *OrganizationsLocationsSubscriptionsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field mask is +// used to specify the fields to be overwritten in the Subscription resource by +// the update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. If the user does not provide a mask then all mutable fields will be +// overwritten. Mutable fields: type, state. +func (c *OrganizationsLocationsSubscriptionsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsSubscriptionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsSubscriptionsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsSubscriptionsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsSubscriptionsPatchCall) Context(ctx context.Context) *OrganizationsLocationsSubscriptionsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsSubscriptionsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsSubscriptionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudbeyondcorpsaasplatformsubscriptionsv1alphasubscription) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.subscriptions.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription.ServerResp +// onse.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 *OrganizationsLocationsSubscriptionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription, 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 := &GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsGetCall struct { s *Service name string diff --git a/calendar/v3/calendar-api.json b/calendar/v3/calendar-api.json index 454c8aa9277..246c70bbb0f 100644 --- a/calendar/v3/calendar-api.json +++ b/calendar/v3/calendar-api.json @@ -877,7 +877,7 @@ ] }, "import": { - "description": "Imports an event. This operation is used to add a private copy of an existing event to a calendar.", + "description": "Imports an event. This operation is used to add a private copy of an existing event to a calendar. Only events with an eventType of default may be imported.\nDeprecated behavior: If a non-default event is imported, its type will be changed to default and any event-type-specific properties it may have will be dropped.", "httpMethod": "POST", "id": "calendar.events.import", "parameterOrder": [ @@ -1759,7 +1759,7 @@ } } }, - "revision": "20240328", + "revision": "20240419", "rootUrl": "https://www.googleapis.com/", "schemas": { "Acl": { @@ -2416,7 +2416,7 @@ }, "eventType": { "default": "default", - "description": "Specific type of the event. This cannot be modified after the event is created. Possible values are: \n- \"default\" - A regular event or not further specified. \n- \"outOfOffice\" - An out-of-office event. \n- \"focusTime\" - A focus-time event. \n- \"workingLocation\" - A working location event. Currently, only \"default \" and \"workingLocation\" events can be created using the API. Extended support for other event types will be made available in later releases.", + "description": "Specific type of the event. This cannot be modified after the event is created. Possible values are: \n- \"default\" - A regular event or not further specified. \n- \"outOfOffice\" - An out-of-office event. \n- \"focusTime\" - A focus-time event. \n- \"workingLocation\" - A working location event.", "type": "string" }, "extendedProperties": { diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index a745ea16173..a99971f1633 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -1121,9 +1121,7 @@ type Event struct { // - "default" - A regular event or not further specified. // - "outOfOffice" - An out-of-office event. // - "focusTime" - A focus-time event. - // - "workingLocation" - A working location event. Currently, only "default " - // and "workingLocation" events can be created using the API. Extended support - // for other event types will be made available in later releases. + // - "workingLocation" - A working location event. EventType string `json:"eventType,omitempty"` // ExtendedProperties: Extended properties of the event. ExtendedProperties *EventExtendedProperties `json:"extendedProperties,omitempty"` @@ -4769,7 +4767,11 @@ type EventsImportCall struct { } // Import: Imports an event. This operation is used to add a private copy of an -// existing event to a calendar. +// existing event to a calendar. Only events with an eventType of default may +// be imported. +// Deprecated behavior: If a non-default event is imported, its type will be +// changed to default and any event-type-specific properties it may have will +// be dropped. // // - calendarId: Calendar identifier. To retrieve calendar IDs call the // calendarList.list method. If you want to access the primary calendar of diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index d019e3cb89e..6a9fa890674 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -2065,7 +2065,7 @@ } } }, - "revision": "20240221", + "revision": "20240417", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -5636,6 +5636,25 @@ }, "type": "object" }, + "SkaffoldGCBRepoSource": { + "description": "Cloud Build V2 Repository containing Skaffold Configs.", + "id": "SkaffoldGCBRepoSource", + "properties": { + "path": { + "description": "Optional. Relative path from the repository root to the Skaffold Config file.", + "type": "string" + }, + "ref": { + "description": "Optional. Branch or tag to use when cloning the repository.", + "type": "string" + }, + "repository": { + "description": "Required. Name of the Cloud Build V2 Repository. Format is projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}.", + "type": "string" + } + }, + "type": "object" + }, "SkaffoldGCSSource": { "description": "Cloud Storage bucket containing Skaffold Config modules.", "id": "SkaffoldGCSSource", @@ -5660,7 +5679,7 @@ "type": "string" }, "ref": { - "description": "Optional. Git ref the package should be cloned from.", + "description": "Optional. Git branch or tag to use when cloning the repository.", "type": "string" }, "repo": { @@ -5685,6 +5704,10 @@ "$ref": "SkaffoldGitSource", "description": "Remote git repository containing the Skaffold Config modules." }, + "googleCloudBuildRepo": { + "$ref": "SkaffoldGCBRepoSource", + "description": "Cloud Build V2 repository containing the Skaffold Config modules." + }, "googleCloudStorage": { "$ref": "SkaffoldGCSSource", "description": "Cloud Storage bucket containing the Skaffold Config modules." diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 2c3cff01fd3..958fe5378cf 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -4355,6 +4355,36 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// SkaffoldGCBRepoSource: Cloud Build V2 Repository containing Skaffold +// Configs. +type SkaffoldGCBRepoSource struct { + // Path: Optional. Relative path from the repository root to the Skaffold + // Config file. + Path string `json:"path,omitempty"` + // Ref: Optional. Branch or tag to use when cloning the repository. + Ref string `json:"ref,omitempty"` + // Repository: Required. Name of the Cloud Build V2 Repository. Format is + // projects/{project}/locations/{location}/connections/{connection}/repositories + // /{repository}. + Repository string `json:"repository,omitempty"` + // ForceSendFields is a list of field names (e.g. "Path") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Path") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *SkaffoldGCBRepoSource) MarshalJSON() ([]byte, error) { + type NoMethod SkaffoldGCBRepoSource + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // SkaffoldGCSSource: Cloud Storage bucket containing Skaffold Config modules. type SkaffoldGCSSource struct { // Path: Optional. Relative path from the source to the Skaffold file. @@ -4386,7 +4416,7 @@ func (s *SkaffoldGCSSource) MarshalJSON() ([]byte, error) { type SkaffoldGitSource struct { // Path: Optional. Relative path from the repository root to the Skaffold file. Path string `json:"path,omitempty"` - // Ref: Optional. Git ref the package should be cloned from. + // Ref: Optional. Git branch or tag to use when cloning the repository. Ref string `json:"ref,omitempty"` // Repo: Required. Git repository the package should be cloned from. Repo string `json:"repo,omitempty"` @@ -4415,6 +4445,9 @@ type SkaffoldModules struct { Configs []string `json:"configs,omitempty"` // Git: Remote git repository containing the Skaffold Config modules. Git *SkaffoldGitSource `json:"git,omitempty"` + // GoogleCloudBuildRepo: Cloud Build V2 repository containing the Skaffold + // Config modules. + GoogleCloudBuildRepo *SkaffoldGCBRepoSource `json:"googleCloudBuildRepo,omitempty"` // GoogleCloudStorage: Cloud Storage bucket containing the Skaffold Config // modules. GoogleCloudStorage *SkaffoldGCSSource `json:"googleCloudStorage,omitempty"` diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index 71c29c0c40b..92646aeb71e 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8327,7 +8327,7 @@ } } }, - "revision": "20240313", + "revision": "20240422", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -9560,6 +9560,26 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3LanguageInfo": { + "description": "Represents the language information of the request.", + "id": "GoogleCloudDialogflowCxV3LanguageInfo", + "properties": { + "confidenceScore": { + "description": "The confidence score of the detected language between 0 and 1.", + "format": "float", + "type": "number" + }, + "inputLanguageCode": { + "description": "The language code specified in the original request.", + "type": "string" + }, + "resolvedLanguageCode": { + "description": "The language code detected for this request based on the user conversation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3Page": { "description": "A Dialogflow CX conversation (session) can be described and visualized as a state machine. The states of a CX session are represented by pages. For each flow, you define many pages, where your combined pages can handle a complete conversation on the topics the flow is designed for. At any given moment, exactly one page is the current page, the current page is considered active, and the flow associated with that page is considered active. Every flow has a special start page. When a flow initially becomes active, the start page page becomes the current page. For each conversational turn, the current page will either stay the same or transition to another page. You configure each page to collect information from the end-user that is relevant for the conversational state represented by the page. For more information, see the [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page).", "id": "GoogleCloudDialogflowCxV3Page", @@ -10492,6 +10512,10 @@ "description": "The language code specified in the original request.", "type": "string" }, + "languageInfo": { + "$ref": "GoogleCloudDialogflowCxV3LanguageInfo", + "description": "Information about the language of the request." + }, "messages": { "description": "The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;", "items": { @@ -11916,6 +11940,26 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1LanguageInfo": { + "description": "Represents the language information of the request.", + "id": "GoogleCloudDialogflowCxV3beta1LanguageInfo", + "properties": { + "confidenceScore": { + "description": "The confidence score of the detected language between 0 and 1.", + "format": "float", + "type": "number" + }, + "inputLanguageCode": { + "description": "The language code specified in the original request.", + "type": "string" + }, + "resolvedLanguageCode": { + "description": "The language code detected for this request based on the user conversation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1Page": { "description": "A Dialogflow CX conversation (session) can be described and visualized as a state machine. The states of a CX session are represented by pages. For each flow, you define many pages, where your combined pages can handle a complete conversation on the topics the flow is designed for. At any given moment, exactly one page is the current page, the current page is considered active, and the flow associated with that page is considered active. Every flow has a special start page. When a flow initially becomes active, the start page page becomes the current page. For each conversational turn, the current page will either stay the same or transition to another page. You configure each page to collect information from the end-user that is relevant for the conversational state represented by the page. For more information, see the [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page).", "id": "GoogleCloudDialogflowCxV3beta1Page", @@ -12832,6 +12876,10 @@ "description": "The language code specified in the original request.", "type": "string" }, + "languageInfo": { + "$ref": "GoogleCloudDialogflowCxV3beta1LanguageInfo", + "description": "Information about the language of the request." + }, "messages": { "description": "The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;", "items": { diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 453cf969d44..b51d0a9e777 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -2751,6 +2751,49 @@ func (s *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3LanguageInfo: Represents the language information +// of the request. +type GoogleCloudDialogflowCxV3LanguageInfo struct { + // ConfidenceScore: The confidence score of the detected language between 0 and + // 1. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // InputLanguageCode: The language code specified in the original request. + InputLanguageCode string `json:"inputLanguageCode,omitempty"` + // ResolvedLanguageCode: The language code detected for this request based on + // the user conversation. + ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConfidenceScore") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3LanguageInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3LanguageInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3LanguageInfo + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + // GoogleCloudDialogflowCxV3Page: A Dialogflow CX conversation (session) can be // described and visualized as a state machine. The states of a CX session are // represented by pages. For each flow, you define many pages, where your @@ -3980,6 +4023,8 @@ type GoogleCloudDialogflowCxV3WebhookRequest struct { IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"` // LanguageCode: The language code specified in the original request. LanguageCode string `json:"languageCode,omitempty"` + // LanguageInfo: Information about the language of the request. + LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,omitempty"` // Messages: The list of rich message responses to present to the user. Webhook // can choose to append or replace this list in // WebhookResponse.fulfillment_response; @@ -6140,6 +6185,49 @@ func (s *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings) MarshalJSON() return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1LanguageInfo: Represents the language +// information of the request. +type GoogleCloudDialogflowCxV3beta1LanguageInfo struct { + // ConfidenceScore: The confidence score of the detected language between 0 and + // 1. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // InputLanguageCode: The language code specified in the original request. + InputLanguageCode string `json:"inputLanguageCode,omitempty"` + // ResolvedLanguageCode: The language code detected for this request based on + // the user conversation. + ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConfidenceScore") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + // GoogleCloudDialogflowCxV3beta1Page: A Dialogflow CX conversation (session) // can be described and visualized as a state machine. The states of a CX // session are represented by pages. For each flow, you define many pages, @@ -7363,6 +7451,8 @@ type GoogleCloudDialogflowCxV3beta1WebhookRequest struct { IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"` // LanguageCode: The language code specified in the original request. LanguageCode string `json:"languageCode,omitempty"` + // LanguageInfo: Information about the language of the request. + LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,omitempty"` // Messages: The list of rich message responses to present to the user. Webhook // can choose to append or replace this list in // WebhookResponse.fulfillment_response; diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index 5a026f87d23..78883091ff2 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7695,7 +7695,7 @@ } } }, - "revision": "20240313", + "revision": "20240422", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -8928,6 +8928,26 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3LanguageInfo": { + "description": "Represents the language information of the request.", + "id": "GoogleCloudDialogflowCxV3LanguageInfo", + "properties": { + "confidenceScore": { + "description": "The confidence score of the detected language between 0 and 1.", + "format": "float", + "type": "number" + }, + "inputLanguageCode": { + "description": "The language code specified in the original request.", + "type": "string" + }, + "resolvedLanguageCode": { + "description": "The language code detected for this request based on the user conversation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3Page": { "description": "A Dialogflow CX conversation (session) can be described and visualized as a state machine. The states of a CX session are represented by pages. For each flow, you define many pages, where your combined pages can handle a complete conversation on the topics the flow is designed for. At any given moment, exactly one page is the current page, the current page is considered active, and the flow associated with that page is considered active. Every flow has a special start page. When a flow initially becomes active, the start page page becomes the current page. For each conversational turn, the current page will either stay the same or transition to another page. You configure each page to collect information from the end-user that is relevant for the conversational state represented by the page. For more information, see the [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page).", "id": "GoogleCloudDialogflowCxV3Page", @@ -9860,6 +9880,10 @@ "description": "The language code specified in the original request.", "type": "string" }, + "languageInfo": { + "$ref": "GoogleCloudDialogflowCxV3LanguageInfo", + "description": "Information about the language of the request." + }, "messages": { "description": "The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;", "items": { @@ -11284,6 +11308,26 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1LanguageInfo": { + "description": "Represents the language information of the request.", + "id": "GoogleCloudDialogflowCxV3beta1LanguageInfo", + "properties": { + "confidenceScore": { + "description": "The confidence score of the detected language between 0 and 1.", + "format": "float", + "type": "number" + }, + "inputLanguageCode": { + "description": "The language code specified in the original request.", + "type": "string" + }, + "resolvedLanguageCode": { + "description": "The language code detected for this request based on the user conversation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1Page": { "description": "A Dialogflow CX conversation (session) can be described and visualized as a state machine. The states of a CX session are represented by pages. For each flow, you define many pages, where your combined pages can handle a complete conversation on the topics the flow is designed for. At any given moment, exactly one page is the current page, the current page is considered active, and the flow associated with that page is considered active. Every flow has a special start page. When a flow initially becomes active, the start page page becomes the current page. For each conversational turn, the current page will either stay the same or transition to another page. You configure each page to collect information from the end-user that is relevant for the conversational state represented by the page. For more information, see the [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page).", "id": "GoogleCloudDialogflowCxV3beta1Page", @@ -12200,6 +12244,10 @@ "description": "The language code specified in the original request.", "type": "string" }, + "languageInfo": { + "$ref": "GoogleCloudDialogflowCxV3beta1LanguageInfo", + "description": "Information about the language of the request." + }, "messages": { "description": "The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;", "items": { diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 42005b1836e..ea5a690a137 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -2679,6 +2679,49 @@ func (s *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3LanguageInfo: Represents the language information +// of the request. +type GoogleCloudDialogflowCxV3LanguageInfo struct { + // ConfidenceScore: The confidence score of the detected language between 0 and + // 1. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // InputLanguageCode: The language code specified in the original request. + InputLanguageCode string `json:"inputLanguageCode,omitempty"` + // ResolvedLanguageCode: The language code detected for this request based on + // the user conversation. + ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConfidenceScore") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3LanguageInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3LanguageInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3LanguageInfo + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + // GoogleCloudDialogflowCxV3Page: A Dialogflow CX conversation (session) can be // described and visualized as a state machine. The states of a CX session are // represented by pages. For each flow, you define many pages, where your @@ -3908,6 +3951,8 @@ type GoogleCloudDialogflowCxV3WebhookRequest struct { IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"` // LanguageCode: The language code specified in the original request. LanguageCode string `json:"languageCode,omitempty"` + // LanguageInfo: Information about the language of the request. + LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,omitempty"` // Messages: The list of rich message responses to present to the user. Webhook // can choose to append or replace this list in // WebhookResponse.fulfillment_response; @@ -6068,6 +6113,49 @@ func (s *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings) MarshalJSON() return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1LanguageInfo: Represents the language +// information of the request. +type GoogleCloudDialogflowCxV3beta1LanguageInfo struct { + // ConfidenceScore: The confidence score of the detected language between 0 and + // 1. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // InputLanguageCode: The language code specified in the original request. + InputLanguageCode string `json:"inputLanguageCode,omitempty"` + // ResolvedLanguageCode: The language code detected for this request based on + // the user conversation. + ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConfidenceScore") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + // GoogleCloudDialogflowCxV3beta1Page: A Dialogflow CX conversation (session) // can be described and visualized as a state machine. The states of a CX // session are represented by pages. For each flow, you define many pages, @@ -7291,6 +7379,8 @@ type GoogleCloudDialogflowCxV3beta1WebhookRequest struct { IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"` // LanguageCode: The language code specified in the original request. LanguageCode string `json:"languageCode,omitempty"` + // LanguageInfo: Information about the language of the request. + LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,omitempty"` // Messages: The list of rich message responses to present to the user. Webhook // can choose to append or replace this list in // WebhookResponse.fulfillment_response; diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index ea3e4054d5f..4044e504d68 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -4453,7 +4453,7 @@ } } }, - "revision": "20240401", + "revision": "20240422", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -7454,6 +7454,26 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3LanguageInfo": { + "description": "Represents the language information of the request.", + "id": "GoogleCloudDialogflowCxV3LanguageInfo", + "properties": { + "confidenceScore": { + "description": "The confidence score of the detected language between 0 and 1.", + "format": "float", + "type": "number" + }, + "inputLanguageCode": { + "description": "The language code specified in the original request.", + "type": "string" + }, + "resolvedLanguageCode": { + "description": "The language code detected for this request based on the user conversation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ListAgentsResponse": { "description": "The response message for Agents.ListAgents.", "id": "GoogleCloudDialogflowCxV3ListAgentsResponse", @@ -9969,6 +9989,10 @@ "description": "The language code specified in the original request.", "type": "string" }, + "languageInfo": { + "$ref": "GoogleCloudDialogflowCxV3LanguageInfo", + "description": "Information about the language of the request." + }, "messages": { "description": "The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;", "items": { @@ -11393,6 +11417,26 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1LanguageInfo": { + "description": "Represents the language information of the request.", + "id": "GoogleCloudDialogflowCxV3beta1LanguageInfo", + "properties": { + "confidenceScore": { + "description": "The confidence score of the detected language between 0 and 1.", + "format": "float", + "type": "number" + }, + "inputLanguageCode": { + "description": "The language code specified in the original request.", + "type": "string" + }, + "resolvedLanguageCode": { + "description": "The language code detected for this request based on the user conversation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1Page": { "description": "A Dialogflow CX conversation (session) can be described and visualized as a state machine. The states of a CX session are represented by pages. For each flow, you define many pages, where your combined pages can handle a complete conversation on the topics the flow is designed for. At any given moment, exactly one page is the current page, the current page is considered active, and the flow associated with that page is considered active. Every flow has a special start page. When a flow initially becomes active, the start page page becomes the current page. For each conversational turn, the current page will either stay the same or transition to another page. You configure each page to collect information from the end-user that is relevant for the conversational state represented by the page. For more information, see the [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page).", "id": "GoogleCloudDialogflowCxV3beta1Page", @@ -12309,6 +12353,10 @@ "description": "The language code specified in the original request.", "type": "string" }, + "languageInfo": { + "$ref": "GoogleCloudDialogflowCxV3beta1LanguageInfo", + "description": "Information about the language of the request." + }, "messages": { "description": "The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;", "items": { diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 69593b249d3..e57b69a76af 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -4782,6 +4782,49 @@ func (s *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3LanguageInfo: Represents the language information +// of the request. +type GoogleCloudDialogflowCxV3LanguageInfo struct { + // ConfidenceScore: The confidence score of the detected language between 0 and + // 1. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // InputLanguageCode: The language code specified in the original request. + InputLanguageCode string `json:"inputLanguageCode,omitempty"` + // ResolvedLanguageCode: The language code detected for this request based on + // the user conversation. + ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConfidenceScore") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3LanguageInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3LanguageInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3LanguageInfo + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + // GoogleCloudDialogflowCxV3ListAgentsResponse: The response message for // Agents.ListAgents. type GoogleCloudDialogflowCxV3ListAgentsResponse struct { @@ -8380,6 +8423,8 @@ type GoogleCloudDialogflowCxV3WebhookRequest struct { IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"` // LanguageCode: The language code specified in the original request. LanguageCode string `json:"languageCode,omitempty"` + // LanguageInfo: Information about the language of the request. + LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,omitempty"` // Messages: The list of rich message responses to present to the user. Webhook // can choose to append or replace this list in // WebhookResponse.fulfillment_response; @@ -10540,6 +10585,49 @@ func (s *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings) MarshalJSON() return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1LanguageInfo: Represents the language +// information of the request. +type GoogleCloudDialogflowCxV3beta1LanguageInfo struct { + // ConfidenceScore: The confidence score of the detected language between 0 and + // 1. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // InputLanguageCode: The language code specified in the original request. + InputLanguageCode string `json:"inputLanguageCode,omitempty"` + // ResolvedLanguageCode: The language code detected for this request based on + // the user conversation. + ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConfidenceScore") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + // GoogleCloudDialogflowCxV3beta1Page: A Dialogflow CX conversation (session) // can be described and visualized as a state machine. The states of a CX // session are represented by pages. For each flow, you define many pages, @@ -11763,6 +11851,8 @@ type GoogleCloudDialogflowCxV3beta1WebhookRequest struct { IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"` // LanguageCode: The language code specified in the original request. LanguageCode string `json:"languageCode,omitempty"` + // LanguageInfo: Information about the language of the request. + LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,omitempty"` // Messages: The list of rich message responses to present to the user. Webhook // can choose to append or replace this list in // WebhookResponse.fulfillment_response; diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index e6f797c81dd..f45809689f8 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -595,6 +595,104 @@ } } }, + "conversations": { + "methods": { + "delete": { + "description": "Deletes the specified conversation.", + "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/conversations/{conversationsId}", + "httpMethod": "DELETE", + "id": "dialogflow.projects.locations.agents.conversations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the conversation. Format: `projects//locations//agents//conversations/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "get": { + "description": "Retrieves the specified conversation.", + "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/conversations/{conversationsId}", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.agents.conversations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the conversation. Format: `projects//locations//agents//conversations/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3beta1/{+name}", + "response": { + "$ref": "GoogleCloudDialogflowCxV3beta1Conversation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, + "list": { + "description": "Returns the list of all conversations.", + "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/conversations", + "httpMethod": "GET", + "id": "dialogflow.projects.locations.agents.conversations.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The filter string. Supports filter by create_time, metrics.has_end_interaction, metrics.has_live_agent_handoff, intents.display_name, pages.display_name and flows.display_name. Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). UTC offsets are supported. Some examples: 1. By create time: create_time \u003e \"2022-04-21T11:30:00-04:00\" 2. By intent display name: intents.display_name : \"billing\" 3. By end interaction signal: metrics.has_end_interaction = true", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The next_page_token value returned from a previous list request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The agent to list all conversations for. Format: `projects//locations//agents/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3beta1/{+parent}/conversations", + "response": { + "$ref": "GoogleCloudDialogflowCxV3beta1ListConversationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + } + } + }, "entityTypes": { "methods": { "create": { @@ -4453,7 +4551,7 @@ } } }, - "revision": "20240401", + "revision": "20240422", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -5686,6 +5784,26 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3LanguageInfo": { + "description": "Represents the language information of the request.", + "id": "GoogleCloudDialogflowCxV3LanguageInfo", + "properties": { + "confidenceScore": { + "description": "The confidence score of the detected language between 0 and 1.", + "format": "float", + "type": "number" + }, + "inputLanguageCode": { + "description": "The language code specified in the original request.", + "type": "string" + }, + "resolvedLanguageCode": { + "description": "The language code detected for this request based on the user conversation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3Page": { "description": "A Dialogflow CX conversation (session) can be described and visualized as a state machine. The states of a CX session are represented by pages. For each flow, you define many pages, where your combined pages can handle a complete conversation on the topics the flow is designed for. At any given moment, exactly one page is the current page, the current page is considered active, and the flow associated with that page is considered active. Every flow has a special start page. When a flow initially becomes active, the start page page becomes the current page. For each conversational turn, the current page will either stay the same or transition to another page. You configure each page to collect information from the end-user that is relevant for the conversational state represented by the page. For more information, see the [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page).", "id": "GoogleCloudDialogflowCxV3Page", @@ -6618,6 +6736,10 @@ "description": "The language code specified in the original request.", "type": "string" }, + "languageInfo": { + "$ref": "GoogleCloudDialogflowCxV3LanguageInfo", + "description": "Information about the language of the request." + }, "messages": { "description": "The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;", "items": { @@ -7411,6 +7533,268 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1Conversation": { + "description": "Represents a conversation.", + "id": "GoogleCloudDialogflowCxV3beta1Conversation", + "properties": { + "duration": { + "description": "Duration of the conversation.", + "format": "google-duration", + "type": "string" + }, + "environment": { + "$ref": "GoogleCloudDialogflowCxV3beta1Environment", + "description": "Environment of the conversation. Only `name` and `display_name` are filled in this message." + }, + "flowVersions": { + "additionalProperties": { + "format": "int64", + "type": "string" + }, + "description": "Flow versions used in the conversation.", + "type": "object" + }, + "flows": { + "description": "All the Flow the conversation has went through. Only `name` and `display_name` are filled in this message.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3beta1Flow" + }, + "type": "array" + }, + "intents": { + "description": "All the matched Intent in the conversation. Only `name` and `display_name` are filled in this message.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3beta1Intent" + }, + "type": "array" + }, + "interactions": { + "description": "Interactions of the conversation. Only populated for `GetConversation` and empty for `ListConversations`.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3beta1ConversationInteraction" + }, + "type": "array" + }, + "languageCode": { + "description": "The language of the conversation, which is the language of the first request in the conversation.", + "type": "string" + }, + "metrics": { + "$ref": "GoogleCloudDialogflowCxV3beta1ConversationMetrics", + "description": "Conversation metrics." + }, + "name": { + "description": "Identifier. The identifier of the conversation. If conversation ID is reused, interactions happened later than 48 hours of the conversation's create time will be ignored. Format: `projects//locations//agents//conversations/`", + "type": "string" + }, + "pages": { + "description": "All the Page the conversation has went through. Only `name` and `display_name` are filled in this message.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3beta1Page" + }, + "type": "array" + }, + "startTime": { + "description": "Start time of the conversation, which is the time of the first request of the conversation.", + "format": "google-datetime", + "type": "string" + }, + "type": { + "description": "The type of the conversation.", + "enum": [ + "TYPE_UNSPECIFIED", + "AUDIO", + "TEXT", + "UNDETERMINED" + ], + "enumDescriptions": [ + "Not specified. This value should never be used.", + "Audio conversation. A conversation is classified as an audio conversation if any request has STT input audio or any response has TTS output audio.", + "Text conversation. A conversation is classified as a text conversation if any request has text input and no request has STT input audio and no response has TTS output audio.", + "Default conversation type for a conversation. A conversation is classified as undetermined if none of the requests contain text or audio input (eg. event or intent input)." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ConversationInteraction": { + "description": "Represents an interaction between an end user and a Dialogflow CX agent using V3 (Streaming)DetectIntent API, or an interaction between an end user and a Dialogflow CX agent using V2 (Streaming)AnalyzeContent API.", + "id": "GoogleCloudDialogflowCxV3beta1ConversationInteraction", + "properties": { + "createTime": { + "description": "The time that the interaction was created.", + "format": "google-datetime", + "type": "string" + }, + "missingTransition": { + "$ref": "GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition", + "description": "Missing transition predicted for the interaction. This field is set only if the interaction match type was no-match." + }, + "partialResponses": { + "description": "The partial responses of the interaction. Empty if there is no partial response in the interaction. See the partial response documentation.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3beta1DetectIntentResponse" + }, + "type": "array" + }, + "request": { + "$ref": "GoogleCloudDialogflowCxV3beta1DetectIntentRequest", + "description": "The request of the interaction." + }, + "requestUtterances": { + "description": "The input text or the transcript of the input audio in the request.", + "type": "string" + }, + "response": { + "$ref": "GoogleCloudDialogflowCxV3beta1DetectIntentResponse", + "description": "The final response of the interaction." + }, + "responseUtterances": { + "description": "The output text or the transcript of the output audio in the responses. If multiple output messages are returned, they will be concatenated into one.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition": { + "description": "Information collected for DF CX agents in case NLU predicted an intent that was filtered out as being inactive which may indicate a missing transition and/or absent functionality.", + "id": "GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition", + "properties": { + "intentDisplayName": { + "description": "Name of the intent that could have triggered.", + "type": "string" + }, + "score": { + "description": "Score of the above intent. The higher it is the more likely a transition was missed on a given page.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ConversationMetrics": { + "description": "Represents metrics for the conversation.", + "id": "GoogleCloudDialogflowCxV3beta1ConversationMetrics", + "properties": { + "averageMatchConfidence": { + "description": "The average confidence all of the Match in the conversation. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).", + "format": "float", + "type": "number" + }, + "hasEndInteraction": { + "description": "A signal that indicates the interaction with the Dialogflow agent has ended. If any response has the ResponseMessage.end_interaction signal, this is set to true.", + "type": "boolean" + }, + "hasLiveAgentHandoff": { + "description": "Hands off conversation to a human agent. If any response has the ResponseMessage.live_agent_handoffsignal, this is set to true.", + "type": "boolean" + }, + "inputAudioDuration": { + "description": "Duration of all the input's audio in the conversation.", + "format": "google-duration", + "type": "string" + }, + "interactionCount": { + "description": "The number of interactions in the conversation.", + "format": "int32", + "type": "integer" + }, + "matchTypeCount": { + "$ref": "GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount", + "description": "Match type counts." + }, + "maxWebhookLatency": { + "description": "Maximum latency of the Webhook calls in the conversation.", + "format": "google-duration", + "type": "string" + }, + "outputAudioDuration": { + "description": "Duration of all the output's audio in the conversation.", + "format": "google-duration", + "type": "string" + }, + "queryInputCount": { + "$ref": "GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount", + "description": "Query input counts." + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount": { + "description": "Count by Match.MatchType of the matches in the conversation.", + "id": "GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount", + "properties": { + "directIntentCount": { + "description": "The number of matches with type Match.MatchType.DIRECT_INTENT.", + "format": "int32", + "type": "integer" + }, + "eventCount": { + "description": "The number of matches with type Match.MatchType.EVENT.", + "format": "int32", + "type": "integer" + }, + "intentCount": { + "description": "The number of matches with type Match.MatchType.INTENT.", + "format": "int32", + "type": "integer" + }, + "noInputCount": { + "description": "The number of matches with type Match.MatchType.NO_INPUT.", + "format": "int32", + "type": "integer" + }, + "noMatchCount": { + "description": "The number of matches with type Match.MatchType.NO_MATCH.", + "format": "int32", + "type": "integer" + }, + "parameterFillingCount": { + "description": "The number of matches with type Match.MatchType.PARAMETER_FILLING.", + "format": "int32", + "type": "integer" + }, + "unspecifiedCount": { + "description": "The number of matches with type Match.MatchType.MATCH_TYPE_UNSPECIFIED.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount": { + "description": "Count by types of QueryInput of the requests in the conversation.", + "id": "GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount", + "properties": { + "audioCount": { + "description": "The number of AudioInput in the conversation.", + "format": "int32", + "type": "integer" + }, + "dtmfCount": { + "description": "The number of DtmfInput in the conversation.", + "format": "int32", + "type": "integer" + }, + "eventCount": { + "description": "The number of EventInput in the conversation.", + "format": "int32", + "type": "integer" + }, + "intentCount": { + "description": "The number of IntentInput in the conversation.", + "format": "int32", + "type": "integer" + }, + "textCount": { + "description": "The number of TextInput in the conversation.", + "format": "int32", + "type": "integer" + } + }, + "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", @@ -7910,6 +8294,10 @@ "queryParams": { "$ref": "GoogleCloudDialogflowCxV3beta1QueryParameters", "description": "The parameters of this query." + }, + "session": { + "description": "Required. The name of the session this query is sent to. Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. If `Environment ID` is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate `Session ID`. It can be a random number or some type of session identifiers (preferably hashed). The length of the `Session ID` must not exceed 36 characters. For more information, see the [sessions guide](https://cloud.google.com/dialogflow/cx/docs/concept/session). Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).", + "type": "string" } }, "type": "object" @@ -9810,6 +10198,26 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1LanguageInfo": { + "description": "Represents the language information of the request.", + "id": "GoogleCloudDialogflowCxV3beta1LanguageInfo", + "properties": { + "confidenceScore": { + "description": "The confidence score of the detected language between 0 and 1.", + "format": "float", + "type": "number" + }, + "inputLanguageCode": { + "description": "The language code specified in the original request.", + "type": "string" + }, + "resolvedLanguageCode": { + "description": "The language code detected for this request based on the user conversation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ListAgentsResponse": { "description": "The response message for Agents.ListAgents.", "id": "GoogleCloudDialogflowCxV3beta1ListAgentsResponse", @@ -9864,6 +10272,24 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ListConversationsResponse": { + "description": "The response message for Conversations.ListConversations.", + "id": "GoogleCloudDialogflowCxV3beta1ListConversationsResponse", + "properties": { + "conversations": { + "description": "The list of conversations. There will be a maximum number of items returned based on the page_size field. The returned conversations will be sorted by start_time in descending order (newest conversation first).", + "items": { + "$ref": "GoogleCloudDialogflowCxV3beta1Conversation" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse": { "description": "The response message for Deployments.ListDeployments.", "id": "GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse", @@ -12338,6 +12764,10 @@ "description": "The language code specified in the original request.", "type": "string" }, + "languageInfo": { + "$ref": "GoogleCloudDialogflowCxV3beta1LanguageInfo", + "description": "Information about the language of the request." + }, "messages": { "description": "The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;", "items": { diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 3c3dd9f4eb0..3f6cd155dc8 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -202,6 +202,7 @@ type ProjectsLocationsService struct { func NewProjectsLocationsAgentsService(s *Service) *ProjectsLocationsAgentsService { rs := &ProjectsLocationsAgentsService{s: s} rs.Changelogs = NewProjectsLocationsAgentsChangelogsService(s) + rs.Conversations = NewProjectsLocationsAgentsConversationsService(s) rs.EntityTypes = NewProjectsLocationsAgentsEntityTypesService(s) rs.Environments = NewProjectsLocationsAgentsEnvironmentsService(s) rs.Flows = NewProjectsLocationsAgentsFlowsService(s) @@ -219,6 +220,8 @@ type ProjectsLocationsAgentsService struct { Changelogs *ProjectsLocationsAgentsChangelogsService + Conversations *ProjectsLocationsAgentsConversationsService + EntityTypes *ProjectsLocationsAgentsEntityTypesService Environments *ProjectsLocationsAgentsEnvironmentsService @@ -247,6 +250,15 @@ type ProjectsLocationsAgentsChangelogsService struct { s *Service } +func NewProjectsLocationsAgentsConversationsService(s *Service) *ProjectsLocationsAgentsConversationsService { + rs := &ProjectsLocationsAgentsConversationsService{s: s} + return rs +} + +type ProjectsLocationsAgentsConversationsService struct { + s *Service +} + func NewProjectsLocationsAgentsEntityTypesService(s *Service) *ProjectsLocationsAgentsEntityTypesService { rs := &ProjectsLocationsAgentsEntityTypesService{s: s} return rs @@ -2343,6 +2355,49 @@ func (s *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3LanguageInfo: Represents the language information +// of the request. +type GoogleCloudDialogflowCxV3LanguageInfo struct { + // ConfidenceScore: The confidence score of the detected language between 0 and + // 1. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // InputLanguageCode: The language code specified in the original request. + InputLanguageCode string `json:"inputLanguageCode,omitempty"` + // ResolvedLanguageCode: The language code detected for this request based on + // the user conversation. + ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConfidenceScore") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3LanguageInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3LanguageInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3LanguageInfo + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + // GoogleCloudDialogflowCxV3Page: A Dialogflow CX conversation (session) can be // described and visualized as a state machine. The states of a CX session are // represented by pages. For each flow, you define many pages, where your @@ -3572,6 +3627,8 @@ type GoogleCloudDialogflowCxV3WebhookRequest struct { IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"` // LanguageCode: The language code specified in the original request. LanguageCode string `json:"languageCode,omitempty"` + // LanguageInfo: Information about the language of the request. + LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,omitempty"` // Messages: The list of rich message responses to present to the user. Webhook // can choose to append or replace this list in // WebhookResponse.fulfillment_response; @@ -4767,6 +4824,288 @@ func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]by return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1Conversation: Represents a conversation. +type GoogleCloudDialogflowCxV3beta1Conversation struct { + // Duration: Duration of the conversation. + Duration string `json:"duration,omitempty"` + // Environment: Environment of the conversation. Only `name` and `display_name` + // are filled in this message. + Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"` + // FlowVersions: Flow versions used in the conversation. + FlowVersions map[string]string `json:"flowVersions,omitempty"` + // Flows: All the Flow the conversation has went through. Only `name` and + // `display_name` are filled in this message. + Flows []*GoogleCloudDialogflowCxV3beta1Flow `json:"flows,omitempty"` + // Intents: All the matched Intent in the conversation. Only `name` and + // `display_name` are filled in this message. + Intents []*GoogleCloudDialogflowCxV3beta1Intent `json:"intents,omitempty"` + // Interactions: Interactions of the conversation. Only populated for + // `GetConversation` and empty for `ListConversations`. + Interactions []*GoogleCloudDialogflowCxV3beta1ConversationInteraction `json:"interactions,omitempty"` + // LanguageCode: The language of the conversation, which is the language of the + // first request in the conversation. + LanguageCode string `json:"languageCode,omitempty"` + // Metrics: Conversation metrics. + Metrics *GoogleCloudDialogflowCxV3beta1ConversationMetrics `json:"metrics,omitempty"` + // Name: Identifier. The identifier of the conversation. If conversation ID is + // reused, interactions happened later than 48 hours of the conversation's + // create time will be ignored. Format: + // `projects//locations//agents//conversations/` + Name string `json:"name,omitempty"` + // Pages: All the Page the conversation has went through. Only `name` and + // `display_name` are filled in this message. + Pages []*GoogleCloudDialogflowCxV3beta1Page `json:"pages,omitempty"` + // StartTime: Start time of the conversation, which is the time of the first + // request of the conversation. + StartTime string `json:"startTime,omitempty"` + // Type: The type of the conversation. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Not specified. This value should never be used. + // "AUDIO" - Audio conversation. A conversation is classified as an audio + // conversation if any request has STT input audio or any response has TTS + // output audio. + // "TEXT" - Text conversation. A conversation is classified as a text + // conversation if any request has text input and no request has STT input + // audio and no response has TTS output audio. + // "UNDETERMINED" - Default conversation type for a conversation. A + // conversation is classified as undetermined if none of the requests contain + // text or audio input (eg. event or intent input). + Type string `json:"type,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1Conversation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1Conversation + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ConversationInteraction: Represents an +// interaction between an end user and a Dialogflow CX agent using V3 +// (Streaming)DetectIntent API, or an interaction between an end user and a +// Dialogflow CX agent using V2 (Streaming)AnalyzeContent API. +type GoogleCloudDialogflowCxV3beta1ConversationInteraction struct { + // CreateTime: The time that the interaction was created. + CreateTime string `json:"createTime,omitempty"` + // MissingTransition: Missing transition predicted for the interaction. This + // field is set only if the interaction match type was no-match. + MissingTransition *GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition `json:"missingTransition,omitempty"` + // PartialResponses: The partial responses of the interaction. Empty if there + // is no partial response in the interaction. See the partial response + // documentation. + PartialResponses []*GoogleCloudDialogflowCxV3beta1DetectIntentResponse `json:"partialResponses,omitempty"` + // Request: The request of the interaction. + Request *GoogleCloudDialogflowCxV3beta1DetectIntentRequest `json:"request,omitempty"` + // RequestUtterances: The input text or the transcript of the input audio in + // the request. + RequestUtterances string `json:"requestUtterances,omitempty"` + // Response: The final response of the interaction. + Response *GoogleCloudDialogflowCxV3beta1DetectIntentResponse `json:"response,omitempty"` + // ResponseUtterances: The output text or the transcript of the output audio in + // the responses. If multiple output messages are returned, they will be + // concatenated into one. + ResponseUtterances string `json:"responseUtterances,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1ConversationInteraction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ConversationInteraction + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition: +// Information collected for DF CX agents in case NLU predicted an intent that +// was filtered out as being inactive which may indicate a missing transition +// and/or absent functionality. +type GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition struct { + // IntentDisplayName: Name of the intent that could have triggered. + IntentDisplayName string `json:"intentDisplayName,omitempty"` + // Score: Score of the above intent. The higher it is the more likely a + // transition was missed on a given page. + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "IntentDisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IntentDisplayName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudDialogflowCxV3beta1ConversationMetrics: Represents metrics for +// the conversation. +type GoogleCloudDialogflowCxV3beta1ConversationMetrics struct { + // AverageMatchConfidence: The average confidence all of the Match in the + // conversation. Values range from 0.0 (completely uncertain) to 1.0 + // (completely certain). + AverageMatchConfidence float64 `json:"averageMatchConfidence,omitempty"` + // HasEndInteraction: A signal that indicates the interaction with the + // Dialogflow agent has ended. If any response has the + // ResponseMessage.end_interaction signal, this is set to true. + HasEndInteraction bool `json:"hasEndInteraction,omitempty"` + // HasLiveAgentHandoff: Hands off conversation to a human agent. If any + // response has the ResponseMessage.live_agent_handoffsignal, this is set to + // true. + HasLiveAgentHandoff bool `json:"hasLiveAgentHandoff,omitempty"` + // InputAudioDuration: Duration of all the input's audio in the conversation. + InputAudioDuration string `json:"inputAudioDuration,omitempty"` + // InteractionCount: The number of interactions in the conversation. + InteractionCount int64 `json:"interactionCount,omitempty"` + // MatchTypeCount: Match type counts. + MatchTypeCount *GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount `json:"matchTypeCount,omitempty"` + // MaxWebhookLatency: Maximum latency of the Webhook calls in the conversation. + MaxWebhookLatency string `json:"maxWebhookLatency,omitempty"` + // OutputAudioDuration: Duration of all the output's audio in the conversation. + OutputAudioDuration string `json:"outputAudioDuration,omitempty"` + // QueryInputCount: Query input counts. + QueryInputCount *GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount `json:"queryInputCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "AverageMatchConfidence") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AverageMatchConfidence") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1ConversationMetrics) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetrics + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3beta1ConversationMetrics) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetrics + var s1 struct { + AverageMatchConfidence gensupport.JSONFloat64 `json:"averageMatchConfidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AverageMatchConfidence = float64(s1.AverageMatchConfidence) + return nil +} + +// GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount: Count by +// Match.MatchType of the matches in the conversation. +type GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount struct { + // DirectIntentCount: The number of matches with type + // Match.MatchType.DIRECT_INTENT. + DirectIntentCount int64 `json:"directIntentCount,omitempty"` + // EventCount: The number of matches with type Match.MatchType.EVENT. + EventCount int64 `json:"eventCount,omitempty"` + // IntentCount: The number of matches with type Match.MatchType.INTENT. + IntentCount int64 `json:"intentCount,omitempty"` + // NoInputCount: The number of matches with type Match.MatchType.NO_INPUT. + NoInputCount int64 `json:"noInputCount,omitempty"` + // NoMatchCount: The number of matches with type Match.MatchType.NO_MATCH. + NoMatchCount int64 `json:"noMatchCount,omitempty"` + // ParameterFillingCount: The number of matches with type + // Match.MatchType.PARAMETER_FILLING. + ParameterFillingCount int64 `json:"parameterFillingCount,omitempty"` + // UnspecifiedCount: The number of matches with type + // Match.MatchType.MATCH_TYPE_UNSPECIFIED. + UnspecifiedCount int64 `json:"unspecifiedCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "DirectIntentCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DirectIntentCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount: Count by +// types of QueryInput of the requests in the conversation. +type GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount struct { + // AudioCount: The number of AudioInput in the conversation. + AudioCount int64 `json:"audioCount,omitempty"` + // DtmfCount: The number of DtmfInput in the conversation. + DtmfCount int64 `json:"dtmfCount,omitempty"` + // EventCount: The number of EventInput in the conversation. + EventCount int64 `json:"eventCount,omitempty"` + // IntentCount: The number of IntentInput in the conversation. + IntentCount int64 `json:"intentCount,omitempty"` + // TextCount: The number of TextInput in the conversation. + TextCount int64 `json:"textCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "AudioCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AudioCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount + return gensupport.MarshalJSON(NoMethod(*s), 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. @@ -5404,6 +5743,18 @@ type GoogleCloudDialogflowCxV3beta1DetectIntentRequest struct { QueryInput *GoogleCloudDialogflowCxV3beta1QueryInput `json:"queryInput,omitempty"` // QueryParams: The parameters of this query. QueryParams *GoogleCloudDialogflowCxV3beta1QueryParameters `json:"queryParams,omitempty"` + // Session: Required. The name of the session this query is sent to. Format: + // `projects//locations//agents//sessions/` or + // `projects//locations//agents//environments//sessions/`. If `Environment ID` + // is not specified, we assume default 'draft' environment. It's up to the API + // caller to choose an appropriate `Session ID`. It can be a random number or + // some type of session identifiers (preferably hashed). The length of the + // `Session ID` must not exceed 36 characters. For more information, see the + // sessions guide + // (https://cloud.google.com/dialogflow/cx/docs/concept/session). Note: Always + // use agent versions for production traffic. See Versions and environments + // (https://cloud.google.com/dialogflow/cx/docs/concept/version). + Session string `json:"session,omitempty"` // ForceSendFields is a list of field names (e.g. "OutputAudioConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -8178,6 +8529,49 @@ func (s *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings) MarshalJSON() return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1LanguageInfo: Represents the language +// information of the request. +type GoogleCloudDialogflowCxV3beta1LanguageInfo struct { + // ConfidenceScore: The confidence score of the detected language between 0 and + // 1. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + // InputLanguageCode: The language code specified in the original request. + InputLanguageCode string `json:"inputLanguageCode,omitempty"` + // ResolvedLanguageCode: The language code detected for this request based on + // the user conversation. + ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConfidenceScore") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + // GoogleCloudDialogflowCxV3beta1ListAgentsResponse: The response message for // Agents.ListAgents. type GoogleCloudDialogflowCxV3beta1ListAgentsResponse struct { @@ -8268,6 +8662,37 @@ func (s *GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse) Marsha return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ListConversationsResponse: The response +// message for Conversations.ListConversations. +type GoogleCloudDialogflowCxV3beta1ListConversationsResponse struct { + // Conversations: The list of conversations. There will be a maximum number of + // items returned based on the page_size field. The returned conversations will + // be sorted by start_time in descending order (newest conversation first). + Conversations []*GoogleCloudDialogflowCxV3beta1Conversation `json:"conversations,omitempty"` + // NextPageToken: Token to retrieve the next page of results, or empty if there + // are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Conversations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Conversations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1ListConversationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ListConversationsResponse + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse: The response message // for Deployments.ListDeployments. type GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse struct { @@ -11791,6 +12216,8 @@ type GoogleCloudDialogflowCxV3beta1WebhookRequest struct { IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"` // LanguageCode: The language code specified in the original request. LanguageCode string `json:"languageCode,omitempty"` + // LanguageInfo: Information about the language of the request. + LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,omitempty"` // Messages: The list of rich message responses to present to the user. Webhook // can choose to append or replace this list in // WebhookResponse.fulfillment_response; @@ -20247,6 +20674,369 @@ func (c *ProjectsLocationsAgentsChangelogsListCall) Pages(ctx context.Context, f } } +type ProjectsLocationsAgentsConversationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified conversation. +// +// - name: The name of the conversation. Format: +// `projects//locations//agents//conversations/`. +func (r *ProjectsLocationsAgentsConversationsService) Delete(name string) *ProjectsLocationsAgentsConversationsDeleteCall { + c := &ProjectsLocationsAgentsConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAgentsConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsConversationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsConversationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAgentsConversationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsConversationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.conversations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAgentsConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAgentsConversationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Retrieves the specified conversation. +// +// - name: The name of the conversation. Format: +// `projects//locations//agents//conversations/`. +func (r *ProjectsLocationsAgentsConversationsService) Get(name string) *ProjectsLocationsAgentsConversationsGetCall { + c := &ProjectsLocationsAgentsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAgentsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsConversationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAgentsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsConversationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsConversationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAgentsConversationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsConversationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.conversations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3beta1Conversation.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 *ProjectsLocationsAgentsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Conversation, 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 := &GoogleCloudDialogflowCxV3beta1Conversation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAgentsConversationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns the list of all conversations. +// +// - parent: The agent to list all conversations for. Format: +// `projects//locations//agents/`. +func (r *ProjectsLocationsAgentsConversationsService) List(parent string) *ProjectsLocationsAgentsConversationsListCall { + c := &ProjectsLocationsAgentsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The filter string. Supports +// filter by create_time, metrics.has_end_interaction, +// metrics.has_live_agent_handoff, intents.display_name, pages.display_name and +// flows.display_name. Timestamps expect an RFC-3339 formatted string (e.g. +// 2012-04-21T11:30:00-04:00). UTC offsets are supported. Some examples: 1. By +// create time: create_time > "2022-04-21T11:30:00-04:00" 2. By intent display +// name: intents.display_name : "billing" 3. By end interaction signal: +// metrics.has_end_interaction = true +func (c *ProjectsLocationsAgentsConversationsListCall) Filter(filter string) *ProjectsLocationsAgentsConversationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return in a single page. By default 100 and at most 1000. +func (c *ProjectsLocationsAgentsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsConversationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The next_page_token value +// returned from a previous list request. +func (c *ProjectsLocationsAgentsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsConversationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAgentsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsConversationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAgentsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsConversationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsConversationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAgentsConversationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsConversationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/conversations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.conversations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3beta1ListConversationsResponse.ServerResponse.Heade +// r 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 *ProjectsLocationsAgentsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListConversationsResponse, 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 := &GoogleCloudDialogflowCxV3beta1ListConversationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAgentsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListConversationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type ProjectsLocationsAgentsEntityTypesCreateCall struct { s *Service parent string diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index 3c1831cecb7..8880175f85a 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -821,7 +821,7 @@ } } }, - "revision": "20240411", + "revision": "20240418", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -869,6 +869,10 @@ ], "type": "string" }, + "crossRegionReplicaConfigured": { + "description": "Checks for resources that are configured to have redundancy, and ongoing replication across regions", + "type": "boolean" + }, "externalReplicaConfigured": { "type": "boolean" }, @@ -2074,17 +2078,10 @@ "description": "An enum that represents the type of this entitlement.", "enum": [ "ENTITLEMENT_TYPE_UNSPECIFIED", - "DUET_AI", "GEMINI" ], - "enumDeprecated": [ - false, - true, - false - ], "enumDescriptions": [ "", - "The root entitlement representing Duet AI package ownership.", "The root entitlement representing Gemini package ownership." ], "type": "string" diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index 7d8919a46d8..f08ce224718 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -259,9 +259,12 @@ type AvailabilityConfiguration struct { // "REGIONAL" - Regional available instance. // "MULTI_REGIONAL" - Multi regional instance // "AVAILABILITY_TYPE_OTHER" - For rest of the other category - AvailabilityType string `json:"availabilityType,omitempty"` - ExternalReplicaConfigured bool `json:"externalReplicaConfigured,omitempty"` - PromotableReplicaConfigured bool `json:"promotableReplicaConfigured,omitempty"` + AvailabilityType string `json:"availabilityType,omitempty"` + // CrossRegionReplicaConfigured: Checks for resources that are configured to + // have redundancy, and ongoing replication across regions + CrossRegionReplicaConfigured bool `json:"crossRegionReplicaConfigured,omitempty"` + ExternalReplicaConfigured bool `json:"externalReplicaConfigured,omitempty"` + PromotableReplicaConfigured bool `json:"promotableReplicaConfigured,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1349,7 +1352,6 @@ type Entitlement struct { // // Possible values: // "ENTITLEMENT_TYPE_UNSPECIFIED" - // "DUET_AI" - The root entitlement representing Duet AI package ownership. // "GEMINI" - The root entitlement representing Gemini package ownership. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "EntitlementState") to diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index 645a70f5f8a..1c815672d6f 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -821,7 +821,7 @@ } } }, - "revision": "20240411", + "revision": "20240418", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -869,6 +869,10 @@ ], "type": "string" }, + "crossRegionReplicaConfigured": { + "description": "Checks for resources that are configured to have redundancy, and ongoing replication across regions", + "type": "boolean" + }, "externalReplicaConfigured": { "type": "boolean" }, @@ -2074,17 +2078,10 @@ "description": "An enum that represents the type of this entitlement.", "enum": [ "ENTITLEMENT_TYPE_UNSPECIFIED", - "DUET_AI", "GEMINI" ], - "enumDeprecated": [ - false, - true, - false - ], "enumDescriptions": [ "", - "The root entitlement representing Duet AI package ownership.", "The root entitlement representing Gemini package ownership." ], "type": "string" diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index 4ad813b0b4b..dd6dc5f58e3 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -259,9 +259,12 @@ type AvailabilityConfiguration struct { // "REGIONAL" - Regional available instance. // "MULTI_REGIONAL" - Multi regional instance // "AVAILABILITY_TYPE_OTHER" - For rest of the other category - AvailabilityType string `json:"availabilityType,omitempty"` - ExternalReplicaConfigured bool `json:"externalReplicaConfigured,omitempty"` - PromotableReplicaConfigured bool `json:"promotableReplicaConfigured,omitempty"` + AvailabilityType string `json:"availabilityType,omitempty"` + // CrossRegionReplicaConfigured: Checks for resources that are configured to + // have redundancy, and ongoing replication across regions + CrossRegionReplicaConfigured bool `json:"crossRegionReplicaConfigured,omitempty"` + ExternalReplicaConfigured bool `json:"externalReplicaConfigured,omitempty"` + PromotableReplicaConfigured bool `json:"promotableReplicaConfigured,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1349,7 +1352,6 @@ type Entitlement struct { // // Possible values: // "ENTITLEMENT_TYPE_UNSPECIFIED" - // "DUET_AI" - The root entitlement representing Duet AI package ownership. // "GEMINI" - The root entitlement representing Gemini package ownership. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "EntitlementState") to