diff --git a/alertcenter/v1beta1/alertcenter-api.json b/alertcenter/v1beta1/alertcenter-api.json index 15c7c5abc67..511ab9c897e 100644 --- a/alertcenter/v1beta1/alertcenter-api.json +++ b/alertcenter/v1beta1/alertcenter-api.json @@ -423,7 +423,7 @@ } } }, - "revision": "20240408", + "revision": "20240415", "rootUrl": "https://alertcenter.googleapis.com/", "schemas": { "AbuseDetected": { @@ -1643,6 +1643,18 @@ "description": "Proto that contains resource information.", "id": "ResourceInfo", "properties": { + "chatAttachmentId": { + "description": "Chat attachment ID.", + "type": "string" + }, + "chatMessageId": { + "description": "Chat message ID.", + "type": "string" + }, + "deviceId": { + "description": "Id to identify a device. For example, for Android devices, this is the \"Android Device Id\" and for Chrome OS devices, it's the \"Device Virtual Id\".", + "type": "string" + }, "documentId": { "description": "Drive file ID.", "type": "string" @@ -1677,11 +1689,29 @@ "description": "Source of the data.", "enum": [ "DATA_SOURCE_UNSPECIFIED", - "DRIVE" + "DRIVE", + "CHROME", + "CHAT" ], "enumDescriptions": [ "Data source is unspecified.", - "Drive data source." + "Drive data source.", + "Chrome data source.", + "Chat data source." + ], + "type": "string" + }, + "eventType": { + "description": "Event associated with this alert after applying the rule.", + "enum": [ + "EVENT_TYPE_UNSPECIFIED", + "ACCESS_BLOCKED", + "SHARING_BLOCKED" + ], + "enumDescriptions": [ + "Event type wasn't set.", + "An access attempt was blocked.", + "A sharing attempt was blocked." ], "type": "string" }, @@ -1714,7 +1744,22 @@ "ACTION_TYPE_UNSPECIFIED", "DRIVE_BLOCK_EXTERNAL_SHARING", "DRIVE_WARN_ON_EXTERNAL_SHARING", + "DRIVE_RESTRICT_DOWNLOAD_PRINT_COPY", + "DRIVE_APPLY_DRIVE_LABELS", + "CHROME_BLOCK_FILE_DOWNLOAD", + "CHROME_WARN_FILE_DOWNLOAD", + "CHROME_BLOCK_FILE_UPLOAD", + "CHROME_WARN_FILE_UPLOAD", + "CHROME_BLOCK_WEB_CONTENT_UPLOAD", + "CHROME_WARN_WEB_CONTENT_UPLOAD", + "CHROME_BLOCK_PAGE_PRINT", + "CHROME_WARN_PAGE_PRINT", + "CHROME_BLOCK_URL_VISITED", + "CHROME_WARN_URL_VISITED", + "CHROME_STORE_CONTENT", "DELETE_WEBPROTECT_EVIDENCE", + "CHAT_BLOCK_CONTENT", + "CHAT_WARN_USER", "ALERT", "RULE_ACTIVATE", "RULE_DEACTIVATE" @@ -1723,7 +1768,22 @@ "Action type is unspecified.", "Block sharing a file externally.", "Show a warning message when sharing a file externally.", + "Disable download, print, and copy for commenters and viewers in drive.", + "Apply customer specified Drive labels to the file.", + "Chrome actions. Block file download.", + "Warn user about downloaded file.", + "Block file upload.", + "Warn user about uploaded file.", + "Block web content upload.", + "Warn user about uploaded web content.", + "Block page print.", + "Warn user about printed page.", + "Block Chrome URL visit.", + "Warn user about Chrome URL visited.", + "Store the content that violated the rule.", "Delete web protect evidence file", + "Chat actions. Block Chat content to be sent out.", + "Warn end user about Chat content.", "Send alert.", "Activate Rule Action", "Deactivate Rule Action" @@ -1736,11 +1796,25 @@ "description": "Trigger of the rule.", "enum": [ "TRIGGER_UNSPECIFIED", - "DRIVE_SHARE" + "DRIVE_SHARE", + "CHROME_FILE_DOWNLOAD", + "CHROME_FILE_UPLOAD", + "CHROME_WEB_CONTENT_UPLOAD", + "CHAT_MESSAGE_SENT", + "CHAT_ATTACHMENT_UPLOADED", + "CHROME_PAGE_PRINT", + "CHROME_URL_VISITED" ], "enumDescriptions": [ "Trigger is unspecified.", - "A Drive file is shared." + "A Drive file is shared.", + "A file being downloaded in a Chrome browser.", + "A file being uploaded from a Chrome browser.", + "Web content being uploaded from a Chrome browser.", + "A Chat message is sent.", + "A Chat attachment is uploaded.", + "A page is being printed by Chrome.", + "A URL is visited within Chrome." ], "type": "string" }, @@ -1758,7 +1832,22 @@ "ACTION_TYPE_UNSPECIFIED", "DRIVE_BLOCK_EXTERNAL_SHARING", "DRIVE_WARN_ON_EXTERNAL_SHARING", + "DRIVE_RESTRICT_DOWNLOAD_PRINT_COPY", + "DRIVE_APPLY_DRIVE_LABELS", + "CHROME_BLOCK_FILE_DOWNLOAD", + "CHROME_WARN_FILE_DOWNLOAD", + "CHROME_BLOCK_FILE_UPLOAD", + "CHROME_WARN_FILE_UPLOAD", + "CHROME_BLOCK_WEB_CONTENT_UPLOAD", + "CHROME_WARN_WEB_CONTENT_UPLOAD", + "CHROME_BLOCK_PAGE_PRINT", + "CHROME_WARN_PAGE_PRINT", + "CHROME_BLOCK_URL_VISITED", + "CHROME_WARN_URL_VISITED", + "CHROME_STORE_CONTENT", "DELETE_WEBPROTECT_EVIDENCE", + "CHAT_BLOCK_CONTENT", + "CHAT_WARN_USER", "ALERT", "RULE_ACTIVATE", "RULE_DEACTIVATE" @@ -1767,7 +1856,22 @@ "Action type is unspecified.", "Block sharing a file externally.", "Show a warning message when sharing a file externally.", + "Disable download, print, and copy for commenters and viewers in drive.", + "Apply customer specified Drive labels to the file.", + "Chrome actions. Block file download.", + "Warn user about downloaded file.", + "Block file upload.", + "Warn user about uploaded file.", + "Block web content upload.", + "Warn user about uploaded web content.", + "Block page print.", + "Warn user about printed page.", + "Block Chrome URL visit.", + "Warn user about Chrome URL visited.", + "Store the content that violated the rule.", "Delete web protect evidence file", + "Chat actions. Block Chat content to be sent out.", + "Warn end user about Chat content.", "Send alert.", "Activate Rule Action", "Deactivate Rule Action" diff --git a/alertcenter/v1beta1/alertcenter-gen.go b/alertcenter/v1beta1/alertcenter-gen.go index 32f0ea608b7..71a4ea2ec62 100644 --- a/alertcenter/v1beta1/alertcenter-gen.go +++ b/alertcenter/v1beta1/alertcenter-gen.go @@ -2132,6 +2132,17 @@ func (s *RequestInfo) MarshalJSON() ([]byte, error) { // ResourceInfo: Proto that contains resource information. type ResourceInfo struct { + // ChatAttachmentId: Chat attachment ID. + ChatAttachmentId string `json:"chatAttachmentId,omitempty"` + + // ChatMessageId: Chat message ID. + ChatMessageId string `json:"chatMessageId,omitempty"` + + // DeviceId: Id to identify a device. For example, for Android devices, + // this is the "Android Device Id" and for Chrome OS devices, it's the + // "Device Virtual Id". + DeviceId string `json:"deviceId,omitempty"` + // DocumentId: Drive file ID. DocumentId string `json:"documentId,omitempty"` @@ -2139,7 +2150,7 @@ type ResourceInfo struct { // document title. ResourceTitle string `json:"resourceTitle,omitempty"` - // ForceSendFields is a list of field names (e.g. "DocumentId") to + // ForceSendFields is a list of field names (e.g. "ChatAttachmentId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2147,12 +2158,13 @@ type ResourceInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DocumentId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ChatAttachmentId") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2201,8 +2213,18 @@ type RuleViolationInfo struct { // Possible values: // "DATA_SOURCE_UNSPECIFIED" - Data source is unspecified. // "DRIVE" - Drive data source. + // "CHROME" - Chrome data source. + // "CHAT" - Chat data source. DataSource string `json:"dataSource,omitempty"` + // EventType: Event associated with this alert after applying the rule. + // + // Possible values: + // "EVENT_TYPE_UNSPECIFIED" - Event type wasn't set. + // "ACCESS_BLOCKED" - An access attempt was blocked. + // "SHARING_BLOCKED" - A sharing attempt was blocked. + EventType string `json:"eventType,omitempty"` + // MatchInfo: List of matches that were found in the resource content. MatchInfo []*MatchInfo `json:"matchInfo,omitempty"` @@ -2228,7 +2250,26 @@ type RuleViolationInfo struct { // "DRIVE_BLOCK_EXTERNAL_SHARING" - Block sharing a file externally. // "DRIVE_WARN_ON_EXTERNAL_SHARING" - Show a warning message when // sharing a file externally. + // "DRIVE_RESTRICT_DOWNLOAD_PRINT_COPY" - Disable download, print, and + // copy for commenters and viewers in drive. + // "DRIVE_APPLY_DRIVE_LABELS" - Apply customer specified Drive labels + // to the file. + // "CHROME_BLOCK_FILE_DOWNLOAD" - Chrome actions. Block file download. + // "CHROME_WARN_FILE_DOWNLOAD" - Warn user about downloaded file. + // "CHROME_BLOCK_FILE_UPLOAD" - Block file upload. + // "CHROME_WARN_FILE_UPLOAD" - Warn user about uploaded file. + // "CHROME_BLOCK_WEB_CONTENT_UPLOAD" - Block web content upload. + // "CHROME_WARN_WEB_CONTENT_UPLOAD" - Warn user about uploaded web + // content. + // "CHROME_BLOCK_PAGE_PRINT" - Block page print. + // "CHROME_WARN_PAGE_PRINT" - Warn user about printed page. + // "CHROME_BLOCK_URL_VISITED" - Block Chrome URL visit. + // "CHROME_WARN_URL_VISITED" - Warn user about Chrome URL visited. + // "CHROME_STORE_CONTENT" - Store the content that violated the rule. // "DELETE_WEBPROTECT_EVIDENCE" - Delete web protect evidence file + // "CHAT_BLOCK_CONTENT" - Chat actions. Block Chat content to be sent + // out. + // "CHAT_WARN_USER" - Warn end user about Chat content. // "ALERT" - Send alert. // "RULE_ACTIVATE" - Activate Rule Action // "RULE_DEACTIVATE" - Deactivate Rule Action @@ -2239,6 +2280,15 @@ type RuleViolationInfo struct { // Possible values: // "TRIGGER_UNSPECIFIED" - Trigger is unspecified. // "DRIVE_SHARE" - A Drive file is shared. + // "CHROME_FILE_DOWNLOAD" - A file being downloaded in a Chrome + // browser. + // "CHROME_FILE_UPLOAD" - A file being uploaded from a Chrome browser. + // "CHROME_WEB_CONTENT_UPLOAD" - Web content being uploaded from a + // Chrome browser. + // "CHAT_MESSAGE_SENT" - A Chat message is sent. + // "CHAT_ATTACHMENT_UPLOADED" - A Chat attachment is uploaded. + // "CHROME_PAGE_PRINT" - A page is being printed by Chrome. + // "CHROME_URL_VISITED" - A URL is visited within Chrome. Trigger string `json:"trigger,omitempty"` // TriggeredActionInfo: Metadata related to the triggered actions. @@ -2252,7 +2302,26 @@ type RuleViolationInfo struct { // "DRIVE_BLOCK_EXTERNAL_SHARING" - Block sharing a file externally. // "DRIVE_WARN_ON_EXTERNAL_SHARING" - Show a warning message when // sharing a file externally. + // "DRIVE_RESTRICT_DOWNLOAD_PRINT_COPY" - Disable download, print, and + // copy for commenters and viewers in drive. + // "DRIVE_APPLY_DRIVE_LABELS" - Apply customer specified Drive labels + // to the file. + // "CHROME_BLOCK_FILE_DOWNLOAD" - Chrome actions. Block file download. + // "CHROME_WARN_FILE_DOWNLOAD" - Warn user about downloaded file. + // "CHROME_BLOCK_FILE_UPLOAD" - Block file upload. + // "CHROME_WARN_FILE_UPLOAD" - Warn user about uploaded file. + // "CHROME_BLOCK_WEB_CONTENT_UPLOAD" - Block web content upload. + // "CHROME_WARN_WEB_CONTENT_UPLOAD" - Warn user about uploaded web + // content. + // "CHROME_BLOCK_PAGE_PRINT" - Block page print. + // "CHROME_WARN_PAGE_PRINT" - Warn user about printed page. + // "CHROME_BLOCK_URL_VISITED" - Block Chrome URL visit. + // "CHROME_WARN_URL_VISITED" - Warn user about Chrome URL visited. + // "CHROME_STORE_CONTENT" - Store the content that violated the rule. // "DELETE_WEBPROTECT_EVIDENCE" - Delete web protect evidence file + // "CHAT_BLOCK_CONTENT" - Chat actions. Block Chat content to be sent + // out. + // "CHAT_WARN_USER" - Warn end user about Chat content. // "ALERT" - Send alert. // "RULE_ACTIVATE" - Activate Rule Action // "RULE_DEACTIVATE" - Deactivate Rule Action diff --git a/androidenterprise/v1/androidenterprise-api.json b/androidenterprise/v1/androidenterprise-api.json index 490b09d686e..69261aace49 100644 --- a/androidenterprise/v1/androidenterprise-api.json +++ b/androidenterprise/v1/androidenterprise-api.json @@ -423,7 +423,7 @@ ] }, "createWebToken": { - "description": "Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the javascript API documentation for further information.", + "description": "Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the JavaScript API documentation for further information.", "flatPath": "androidenterprise/v1/enterprises/{enterpriseId}/createWebToken", "httpMethod": "POST", "id": "androidenterprise.enterprises.createWebToken", @@ -2649,7 +2649,7 @@ } } }, - "revision": "20240331", + "revision": "20240415", "rootUrl": "https://androidenterprise.googleapis.com/", "schemas": { "Administrator": { diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index 81db7266207..39ffcb02268 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -5673,7 +5673,7 @@ type EnterprisesCreateWebTokenCall struct { // CreateWebToken: Returns a unique token to access an embeddable UI. To // generate a web UI, pass the generated token into the managed Google // Play javascript API. Each token may only be used to start one UI -// session. See the javascript API documentation for further +// session. See the JavaScript API documentation for further // information. // // - enterpriseId: The ID of the enterprise. @@ -5775,7 +5775,7 @@ func (c *EnterprisesCreateWebTokenCall) Do(opts ...googleapi.CallOption) (*Admin } return ret, nil // { - // "description": "Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the javascript API documentation for further information.", + // "description": "Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the JavaScript API documentation for further information.", // "flatPath": "androidenterprise/v1/enterprises/{enterpriseId}/createWebToken", // "httpMethod": "POST", // "id": "androidenterprise.enterprises.createWebToken", diff --git a/blockchainnodeengine/v1/blockchainnodeengine-api.json b/blockchainnodeengine/v1/blockchainnodeengine-api.json index 63b36816c51..03b59023916 100644 --- a/blockchainnodeengine/v1/blockchainnodeengine-api.json +++ b/blockchainnodeengine/v1/blockchainnodeengine-api.json @@ -487,7 +487,7 @@ } } }, - "revision": "20240320", + "revision": "20240410", "rootUrl": "https://blockchainnodeengine.googleapis.com/", "schemas": { "BlockchainNode": { @@ -684,7 +684,7 @@ "enumDescriptions": [ "The network has not been specified, but should be.", "The Ethereum Mainnet.", - "Deprecated: The Ethereum Testnet based on Goerli protocol. Holesky (TESTNET_HOLESKY) is the recommended testnet to replace Goerli.", + "Deprecated: The Ethereum Testnet based on Goerli protocol. Please use another test network.", "The Ethereum Testnet based on Sepolia/Bepolia protocol. See https://github.com/eth-clients/sepolia.", "The Ethereum Testnet based on Holesky specification. See https://github.com/eth-clients/holesky." ], diff --git a/blockchainnodeengine/v1/blockchainnodeengine-gen.go b/blockchainnodeengine/v1/blockchainnodeengine-gen.go index 811875625db..381c885519d 100644 --- a/blockchainnodeengine/v1/blockchainnodeengine-gen.go +++ b/blockchainnodeengine/v1/blockchainnodeengine-gen.go @@ -414,8 +414,7 @@ type EthereumDetails struct { // should be. // "MAINNET" - The Ethereum Mainnet. // "TESTNET_GOERLI_PRATER" - Deprecated: The Ethereum Testnet based on - // Goerli protocol. Holesky (TESTNET_HOLESKY) is the recommended testnet - // to replace Goerli. + // Goerli protocol. Please use another test network. // "TESTNET_SEPOLIA" - The Ethereum Testnet based on Sepolia/Bepolia // protocol. See https://github.com/eth-clients/sepolia. // "TESTNET_HOLESKY" - The Ethereum Testnet based on Holesky diff --git a/cloudbilling/v1beta/cloudbilling-api.json b/cloudbilling/v1beta/cloudbilling-api.json index 53b200da25b..101397273ac 100644 --- a/cloudbilling/v1beta/cloudbilling-api.json +++ b/cloudbilling/v1beta/cloudbilling-api.json @@ -758,7 +758,7 @@ } } }, - "revision": "20240315", + "revision": "20240412", "rootUrl": "https://cloudbilling.googleapis.com/", "schemas": { "CacheFillRegions": { @@ -1802,7 +1802,7 @@ "type": "object" }, "GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku": { - "description": "Encapsulates a stock keeping unit (SKU) visible to a billing account. A SKU distinctly identifies a resource that you can purchase, such as `Nvidia Tesla K80 GPU attached to Spot Preemptible VMs running in Warsaw`.", + "description": "Encapsulates a stock keeping unit (SKU) visible to a billing account. A SKU distinctly identifies a resource that you can purchase. For a list of available SKUs, see [SKUs](https://cloud.google.com/skus).", "id": "GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku", "properties": { "billingAccountService": { diff --git a/cloudbilling/v1beta/cloudbilling-gen.go b/cloudbilling/v1beta/cloudbilling-gen.go index cfdca2547a0..e70d7584028 100644 --- a/cloudbilling/v1beta/cloudbilling-gen.go +++ b/cloudbilling/v1beta/cloudbilling-gen.go @@ -2229,9 +2229,8 @@ func (s *GoogleCloudBillingBillingaccountskugroupskusV1betaTaxonomyCategory) Mar // GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku: // Encapsulates a stock keeping unit (SKU) visible to a billing account. -// A SKU distinctly identifies a resource that you can purchase, such as -// `Nvidia Tesla K80 GPU attached to Spot Preemptible VMs running in -// Warsaw`. +// A SKU distinctly identifies a resource that you can purchase. For a +// list of available SKUs, see SKUs (https://cloud.google.com/skus). type GoogleCloudBillingBillingaccountskusV1betaBillingAccountSku struct { // BillingAccountService: BillingAccountService that the // BillingAccountSku belongs to. diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index ff1ee42ea3c..6a9a2f16992 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -1473,9 +1473,131 @@ } } }, - "revision": "20240311", + "revision": "20240416", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { + "GoogleCloudContactcenterinsightsV1AgentCoachingInstruction": { + "description": "Agent Coaching instructions that customer can configure.", + "id": "GoogleCloudContactcenterinsightsV1AgentCoachingInstruction", + "properties": { + "agentAction": { + "description": "Optional. The action that human agent should take. For example, \"apologize for the slow shipping\". If the users only want to use agent coaching for intent detection, agent_action can be empty", + "type": "string" + }, + "condition": { + "description": "Optional. The condition of the instruction. For example, \"the customer wants to cancel an order\". If the users want the instruction to be triggered unconditionally, the condition can be empty.", + "type": "string" + }, + "description": { + "description": "Optional. The detailed description of this instruction.", + "type": "string" + }, + "displayName": { + "description": "Optional. Display name for the instruction.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Additional information attached to this instruction.", + "type": "object" + }, + "systemAction": { + "description": "Optional. The action that system should take. For example, \"call GetOrderTime with order_number={order number provided by the customer}\". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion": { + "description": "Suggestion for coaching agents.", + "id": "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion", + "properties": { + "agentActionSuggestions": { + "description": "Optional. Suggested actions for the agent to take.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion" + }, + "type": "array" + }, + "applicableInstructions": { + "description": "Optional. Instructions applicable based on the current context.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1AgentCoachingInstruction" + }, + "type": "array" + }, + "sampleResponses": { + "description": "Optional. Sample response for the Agent.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse" + }, + "type": "array" + }, + "suggestionEval": { + "$ref": "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval", + "description": "Self evaluation of the suggestion." + }, + "suggestionReasoning": { + "$ref": "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning", + "description": "Reasoning for the suggestion." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion": { + "description": "Actions suggested for the agent. This is based on applicable instructions.", + "id": "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion", + "properties": { + "agentAction": { + "description": "Optional. The suggested action for the agent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval": { + "description": "Self evaluations of the suggestion.", + "id": "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval", + "properties": { + "actionActionSuggestionEval": { + "description": "Optional. Eval for Agent action suggestion.", + "type": "string" + }, + "sampleResponseEval": { + "description": "Optional. Eval for sample response.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning": { + "description": "Reasoning for the suggestion.", + "id": "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning", + "properties": { + "agentActionTaken": { + "description": "Optional. The actions that the agent has taken already.", + "type": "string" + }, + "issueSummary": { + "description": "Optional. Summary of the issue.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse": { + "description": "Sample response that the agent can use. This could be based on applicable instructions and ingested data from other systems.", + "id": "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse", + "properties": { + "responseText": { + "description": "Optional. Sample response for Agent in text.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1Analysis": { "description": "The analysis resource.", "id": "GoogleCloudContactcenterinsightsV1Analysis", @@ -2905,6 +3027,24 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1FreeFormSuggestion": { + "description": "Suggestion generated using free form generator.", + "id": "GoogleCloudContactcenterinsightsV1FreeFormSuggestion", + "properties": { + "labels": { + "description": "Optional. Labels for the generator.", + "items": { + "type": "string" + }, + "type": "array" + }, + "response": { + "description": "Required. Free form suggestion.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1GcsSource": { "description": "A Cloud Storage source of conversation data.", "id": "GoogleCloudContactcenterinsightsV1GcsSource", @@ -2920,6 +3060,162 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1GeneratorSuggestion": { + "description": "Suggestion generated using a Generator.", + "id": "GoogleCloudContactcenterinsightsV1GeneratorSuggestion", + "properties": { + "agentCoachingSuggestion": { + "$ref": "GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion", + "description": "Optional. Suggestion to coach the agent." + }, + "freeFormSuggestion": { + "$ref": "GoogleCloudContactcenterinsightsV1FreeFormSuggestion", + "description": "Optional. Free form suggestion." + }, + "summarySuggestion": { + "$ref": "GoogleCloudContactcenterinsightsV1SummarySuggestion", + "description": "Optional. Suggested summary." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse": { + "description": "Represents response from generators.", + "id": "GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse", + "properties": { + "generatorSuggestion": { + "$ref": "GoogleCloudContactcenterinsightsV1GeneratorSuggestion", + "description": "The suggestion generated from the Generator." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse": { + "description": "Response for Knowledge Assist. Contains suggested query and optionally includes an answer for the query.", + "id": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse", + "properties": { + "suggestedQuery": { + "$ref": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery", + "description": "The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion." + }, + "suggestedQueryAnswer": { + "$ref": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer", + "description": "The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer": { + "description": "Represents an answer from Knowledge. Cuurently supports FAQ and Generative answers.", + "id": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer", + "properties": { + "answerText": { + "description": "The piece of text from the `source` that answers this suggested query.", + "type": "string" + }, + "faqSource": { + "$ref": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource", + "description": "Populated if the prediction came from FAQ." + }, + "generativeSource": { + "$ref": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource", + "description": "Populated if the prediction was Generative." + }, + "intentMatchingSource": { + "$ref": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource", + "description": "Populated if the prediction was from intent matching." + }, + "matchConfidence": { + "description": "The system's confidence score that this answer is a good match for this conversational query. The range is from 0.0 (completely uncertain) to 1.0 (completely certain).", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource": { + "description": "Details about source of FAQ answer.", + "id": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource", + "properties": { + "document": { + "description": "Indicates which Knowledge Document this answer was extracted from. Format: `projects//knowledgeBases//documents/`.", + "type": "string" + }, + "question": { + "description": "The corresponding FAQ question.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource": { + "description": "Details about source of Generative answer.", + "id": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource", + "properties": { + "snippets": { + "description": "All snippets used for this Generative Prediction, with their source URI and data.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet": { + "description": "Snippet Source for a Generative Prediction.", + "id": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet", + "properties": { + "document": { + "description": "Indicates which Knowledge Document this snippet was extracted from. Format: `projects//knowledgeBases//documents/`.", + "type": "string" + }, + "text": { + "description": "text taken from that URI.", + "type": "string" + }, + "title": { + "description": "Title of the document.", + "type": "string" + }, + "uri": { + "description": "URI the data is sourced from.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource": { + "description": "Details about source of Intent Matching answer.", + "id": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource", + "properties": { + "title": { + "description": "Title of the document.", + "type": "string" + }, + "uri": { + "description": "URI the data is sourced from.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery": { + "description": "Represents a suggested query.", + "id": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery", + "properties": { + "queryText": { + "description": "Suggested query text.", + "type": "string" + }, + "score": { + "description": "Suggested query score.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1HoldData": { "description": "The data for a hold annotation.", "id": "GoogleCloudContactcenterinsightsV1HoldData", @@ -3749,6 +4045,18 @@ "$ref": "GoogleCloudContactcenterinsightsV1FaqAnswerData", "description": "Agent Assist FAQ answer data." }, + "generatorSuggestionResult": { + "$ref": "GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse", + "description": "The generator suggestion result." + }, + "knowledgeAssistResult": { + "$ref": "GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse", + "description": "The Knowledge Assist result." + }, + "knowledgeSearchResult": { + "$ref": "GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer", + "description": "The Knowledge Search result." + }, "smartComposeSuggestion": { "$ref": "GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData", "description": "Agent Assist Smart Compose suggestion data." @@ -3764,6 +4072,72 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer": { + "description": "Represents a SearchKnowledge answer.", + "id": "GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer", + "properties": { + "answer": { + "description": "The piece of text from the knowledge base documents that answers the search query", + "type": "string" + }, + "answerRecord": { + "description": "The name of the answer record. Format: `projects//locations//answer Records/`", + "type": "string" + }, + "answerSources": { + "description": "All sources used to generate the answer.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource" + }, + "type": "array" + }, + "answerType": { + "description": "The type of the answer.", + "enum": [ + "ANSWER_TYPE_UNSPECIFIED", + "FAQ", + "GENERATIVE", + "INTENT" + ], + "enumDescriptions": [ + "The answer has a unspecified type.", + "The answer is from FAQ documents.", + "The answer is from generative model.", + "The answer is from intent matching." + ], + "type": "string" + }, + "confidenceScore": { + "description": "The confidence score in [0.0, 1.0] range.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource": { + "description": "The sources of the answers.", + "id": "GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource", + "properties": { + "document": { + "description": "The document from which the snippet was extracted. Format: `projects//knowledgeBases//documents/`", + "type": "string" + }, + "snippet": { + "description": "The relevant snippet of the article.", + "type": "string" + }, + "title": { + "description": "The title of the article.", + "type": "string" + }, + "uri": { + "description": "The URI of the article.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1SentimentData": { "description": "The data for a sentiment annotation.", "id": "GoogleCloudContactcenterinsightsV1SentimentData", @@ -3924,6 +4298,35 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1SummarySuggestion": { + "description": "Suggested summary of the conversation.", + "id": "GoogleCloudContactcenterinsightsV1SummarySuggestion", + "properties": { + "summarySections": { + "description": "Required. All the parts of generated summary.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection": { + "description": "A component of the generated summary.", + "id": "GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection", + "properties": { + "section": { + "description": "Required. Name of the section.", + "type": "string" + }, + "summary": { + "description": "Required. Summary text for the section.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata": { "description": "Metadata for undeploying an issue model.", "id": "GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata", @@ -4056,6 +4459,128 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction": { + "description": "Agent Coaching instructions that customer can configure.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction", + "properties": { + "agentAction": { + "description": "Optional. The action that human agent should take. For example, \"apologize for the slow shipping\". If the users only want to use agent coaching for intent detection, agent_action can be empty", + "type": "string" + }, + "condition": { + "description": "Optional. The condition of the instruction. For example, \"the customer wants to cancel an order\". If the users want the instruction to be triggered unconditionally, the condition can be empty.", + "type": "string" + }, + "description": { + "description": "Optional. The detailed description of this instruction.", + "type": "string" + }, + "displayName": { + "description": "Optional. Display name for the instruction.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Additional information attached to this instruction.", + "type": "object" + }, + "systemAction": { + "description": "Optional. The action that system should take. For example, \"call GetOrderTime with order_number={order number provided by the customer}\". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion": { + "description": "Suggestion for coaching agents.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion", + "properties": { + "agentActionSuggestions": { + "description": "Optional. Suggested actions for the agent to take.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion" + }, + "type": "array" + }, + "applicableInstructions": { + "description": "Optional. Instructions applicable based on the current context.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction" + }, + "type": "array" + }, + "sampleResponses": { + "description": "Optional. Sample response for the Agent.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse" + }, + "type": "array" + }, + "suggestionEval": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval", + "description": "Self evaluation of the suggestion." + }, + "suggestionReasoning": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning", + "description": "Reasoning for the suggestion." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion": { + "description": "Actions suggested for the agent. This is based on applicable instructions.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion", + "properties": { + "agentAction": { + "description": "Optional. The suggested action for the agent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval": { + "description": "Self evaluations of the suggestion.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval", + "properties": { + "actionActionSuggestionEval": { + "description": "Optional. Eval for Agent action suggestion.", + "type": "string" + }, + "sampleResponseEval": { + "description": "Optional. Eval for sample response.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning": { + "description": "Reasoning for the suggestion.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning", + "properties": { + "agentActionTaken": { + "description": "Optional. The actions that the agent has taken already.", + "type": "string" + }, + "issueSummary": { + "description": "Optional. Summary of the issue.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse": { + "description": "Sample response that the agent can use. This could be based on applicable instructions and ingested data from other systems.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse", + "properties": { + "responseText": { + "description": "Optional. Sample response for Agent in text.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1Analysis": { "description": "The analysis resource.", "id": "GoogleCloudContactcenterinsightsV1alpha1Analysis", @@ -5369,6 +5894,24 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion": { + "description": "Suggestion generated using free form generator.", + "id": "GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion", + "properties": { + "labels": { + "description": "Optional. Labels for the generator.", + "items": { + "type": "string" + }, + "type": "array" + }, + "response": { + "description": "Required. Free form suggestion.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1GcsSource": { "description": "A Cloud Storage source of conversation data.", "id": "GoogleCloudContactcenterinsightsV1alpha1GcsSource", @@ -5384,6 +5927,162 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion": { + "description": "Suggestion generated using a Generator.", + "id": "GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion", + "properties": { + "agentCoachingSuggestion": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion", + "description": "Optional. Suggestion to coach the agent." + }, + "freeFormSuggestion": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion", + "description": "Optional. Free form suggestion." + }, + "summarySuggestion": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion", + "description": "Optional. Suggested summary." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse": { + "description": "Represents response from generators.", + "id": "GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse", + "properties": { + "generatorSuggestion": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion", + "description": "The suggestion generated from the Generator." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse": { + "description": "Response for Knowledge Assist. Contains suggested query and optionally includes an answer for the query.", + "id": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse", + "properties": { + "suggestedQuery": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery", + "description": "The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion." + }, + "suggestedQueryAnswer": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer", + "description": "The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer": { + "description": "Represents an answer from Knowledge. Cuurently supports FAQ and Generative answers.", + "id": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer", + "properties": { + "answerText": { + "description": "The piece of text from the `source` that answers this suggested query.", + "type": "string" + }, + "faqSource": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource", + "description": "Populated if the prediction came from FAQ." + }, + "generativeSource": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource", + "description": "Populated if the prediction was Generative." + }, + "intentMatchingSource": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource", + "description": "Populated if the prediction was from intent matching." + }, + "matchConfidence": { + "description": "The system's confidence score that this answer is a good match for this conversational query. The range is from 0.0 (completely uncertain) to 1.0 (completely certain).", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource": { + "description": "Details about source of FAQ answer.", + "id": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource", + "properties": { + "document": { + "description": "Indicates which Knowledge Document this answer was extracted from. Format: `projects//knowledgeBases//documents/`.", + "type": "string" + }, + "question": { + "description": "The corresponding FAQ question.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource": { + "description": "Details about source of Generative answer.", + "id": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource", + "properties": { + "snippets": { + "description": "All snippets used for this Generative Prediction, with their source URI and data.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet": { + "description": "Snippet Source for a Generative Prediction.", + "id": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet", + "properties": { + "document": { + "description": "Indicates which Knowledge Document this snippet was extracted from. Format: `projects//knowledgeBases//documents/`.", + "type": "string" + }, + "text": { + "description": "text taken from that URI.", + "type": "string" + }, + "title": { + "description": "Title of the document.", + "type": "string" + }, + "uri": { + "description": "URI the data is sourced from.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource": { + "description": "Details about source of Intent Matching answer.", + "id": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource", + "properties": { + "title": { + "description": "Title of the document.", + "type": "string" + }, + "uri": { + "description": "URI the data is sourced from.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery": { + "description": "Represents a suggested query.", + "id": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery", + "properties": { + "queryText": { + "description": "Suggested query text.", + "type": "string" + }, + "score": { + "description": "Suggested query score.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1HoldData": { "description": "The data for a hold annotation.", "id": "GoogleCloudContactcenterinsightsV1alpha1HoldData", @@ -5935,6 +6634,18 @@ "$ref": "GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData", "description": "Agent Assist FAQ answer data." }, + "generatorSuggestionResult": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse", + "description": "The generator suggestion result." + }, + "knowledgeAssistResult": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse", + "description": "The Knowledge Assist result." + }, + "knowledgeSearchResult": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer", + "description": "The Knowledge Search result." + }, "smartComposeSuggestion": { "$ref": "GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData", "description": "Agent Assist Smart Compose suggestion data." @@ -5950,6 +6661,72 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer": { + "description": "Represents a SearchKnowledge answer.", + "id": "GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer", + "properties": { + "answer": { + "description": "The piece of text from the knowledge base documents that answers the search query", + "type": "string" + }, + "answerRecord": { + "description": "The name of the answer record. Format: `projects//locations//answer Records/`", + "type": "string" + }, + "answerSources": { + "description": "All sources used to generate the answer.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource" + }, + "type": "array" + }, + "answerType": { + "description": "The type of the answer.", + "enum": [ + "ANSWER_TYPE_UNSPECIFIED", + "FAQ", + "GENERATIVE", + "INTENT" + ], + "enumDescriptions": [ + "The answer has a unspecified type.", + "The answer is from FAQ documents.", + "The answer is from generative model.", + "The answer is from intent matching." + ], + "type": "string" + }, + "confidenceScore": { + "description": "The confidence score in [0.0, 1.0] range.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource": { + "description": "The sources of the answers.", + "id": "GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource", + "properties": { + "document": { + "description": "The document from which the snippet was extracted. Format: `projects//knowledgeBases//documents/`", + "type": "string" + }, + "snippet": { + "description": "The relevant snippet of the article.", + "type": "string" + }, + "title": { + "description": "The title of the article.", + "type": "string" + }, + "uri": { + "description": "The URI of the article.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1SentimentData": { "description": "The data for a sentiment annotation.", "id": "GoogleCloudContactcenterinsightsV1alpha1SentimentData", @@ -6038,6 +6815,35 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion": { + "description": "Suggested summary of the conversation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion", + "properties": { + "summarySections": { + "description": "Required. All the parts of generated summary.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection": { + "description": "A component of the generated summary.", + "id": "GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection", + "properties": { + "section": { + "description": "Required. Name of the section.", + "type": "string" + }, + "summary": { + "description": "Required. Summary text for the section.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata": { "description": "Metadata for undeploying an issue model.", "id": "GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata", diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index b7ec4d2c054..5ca54eb949b 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -272,6 +272,233 @@ type ProjectsLocationsViewsService struct { s *Service } +// GoogleCloudContactcenterinsightsV1AgentCoachingInstruction: Agent +// Coaching instructions that customer can configure. +type GoogleCloudContactcenterinsightsV1AgentCoachingInstruction struct { + // AgentAction: Optional. The action that human agent should take. For + // example, "apologize for the slow shipping". If the users only want to + // use agent coaching for intent detection, agent_action can be empty + AgentAction string `json:"agentAction,omitempty"` + + // Condition: Optional. The condition of the instruction. For example, + // "the customer wants to cancel an order". If the users want the + // instruction to be triggered unconditionally, the condition can be + // empty. + Condition string `json:"condition,omitempty"` + + // Description: Optional. The detailed description of this instruction. + Description string `json:"description,omitempty"` + + // DisplayName: Optional. Display name for the instruction. + DisplayName string `json:"displayName,omitempty"` + + // Metadata: Optional. Additional information attached to this + // instruction. + Metadata map[string]string `json:"metadata,omitempty"` + + // SystemAction: Optional. The action that system should take. For + // example, "call GetOrderTime with order_number={order number provided + // by the customer}". If the users don't have plugins or don't want to + // trigger plugins, the system_action can be empty + SystemAction string `json:"systemAction,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentAction") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentAction") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1AgentCoachingInstruction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingInstruction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion: Suggestion +// for coaching agents. +type GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion struct { + // AgentActionSuggestions: Optional. Suggested actions for the agent to + // take. + AgentActionSuggestions []*GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion `json:"agentActionSuggestions,omitempty"` + + // ApplicableInstructions: Optional. Instructions applicable based on + // the current context. + ApplicableInstructions []*GoogleCloudContactcenterinsightsV1AgentCoachingInstruction `json:"applicableInstructions,omitempty"` + + // SampleResponses: Optional. Sample response for the Agent. + SampleResponses []*GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse `json:"sampleResponses,omitempty"` + + // SuggestionEval: Self evaluation of the suggestion. + SuggestionEval *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval `json:"suggestionEval,omitempty"` + + // SuggestionReasoning: Reasoning for the suggestion. + SuggestionReasoning *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning `json:"suggestionReasoning,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AgentActionSuggestions") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentActionSuggestions") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSu +// ggestion: Actions suggested for the agent. This is based on +// applicable instructions. +type GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion struct { + // AgentAction: Optional. The suggested action for the agent. + AgentAction string `json:"agentAction,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentAction") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentAction") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoaching +// SuggestionEval: Self evaluations of the suggestion. +type GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval struct { + // ActionActionSuggestionEval: Optional. Eval for Agent action + // suggestion. + ActionActionSuggestionEval string `json:"actionActionSuggestionEval,omitempty"` + + // SampleResponseEval: Optional. Eval for sample response. + SampleResponseEval string `json:"sampleResponseEval,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ActionActionSuggestionEval") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ActionActionSuggestionEval") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoaching +// SuggestionReasoning: Reasoning for the suggestion. +type GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning struct { + // AgentActionTaken: Optional. The actions that the agent has taken + // already. + AgentActionTaken string `json:"agentActionTaken,omitempty"` + + // IssueSummary: Optional. Summary of the issue. + IssueSummary string `json:"issueSummary,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentActionTaken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentActionTaken") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleRespons +// e: Sample response that the agent can use. This could be based on +// applicable instructions and ingested data from other systems. +type GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse struct { + // ResponseText: Optional. Sample response for Agent in text. + ResponseText string `json:"responseText,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResponseText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResponseText") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1Analysis: The analysis resource. type GoogleCloudContactcenterinsightsV1Analysis struct { // AnalysisResult: Output only. The result of the analysis, which is @@ -2571,6 +2798,38 @@ func (s *GoogleCloudContactcenterinsightsV1FaqAnswerData) UnmarshalJSON(data []b return nil } +// GoogleCloudContactcenterinsightsV1FreeFormSuggestion: Suggestion +// generated using free form generator. +type GoogleCloudContactcenterinsightsV1FreeFormSuggestion struct { + // Labels: Optional. Labels for the generator. + Labels []string `json:"labels,omitempty"` + + // Response: Required. Free form suggestion. + Response string `json:"response,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Labels") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Labels") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1FreeFormSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1FreeFormSuggestion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1GcsSource: A Cloud Storage source // of conversation data. type GoogleCloudContactcenterinsightsV1GcsSource struct { @@ -2605,62 +2864,87 @@ func (s *GoogleCloudContactcenterinsightsV1GcsSource) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1HoldData: The data for a hold -// annotation. -type GoogleCloudContactcenterinsightsV1HoldData struct { -} +// GoogleCloudContactcenterinsightsV1GeneratorSuggestion: Suggestion +// generated using a Generator. +type GoogleCloudContactcenterinsightsV1GeneratorSuggestion struct { + // AgentCoachingSuggestion: Optional. Suggestion to coach the agent. + AgentCoachingSuggestion *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion `json:"agentCoachingSuggestion,omitempty"` -// GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata: Metadata -// used for import issue model. -type GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata struct { - // CreateTime: The time the operation was created. - CreateTime string `json:"createTime,omitempty"` + // FreeFormSuggestion: Optional. Free form suggestion. + FreeFormSuggestion *GoogleCloudContactcenterinsightsV1FreeFormSuggestion `json:"freeFormSuggestion,omitempty"` - // EndTime: The time the operation finished running. - EndTime string `json:"endTime,omitempty"` + // SummarySuggestion: Optional. Suggested summary. + SummarySuggestion *GoogleCloudContactcenterinsightsV1SummarySuggestion `json:"summarySuggestion,omitempty"` - // Request: The original import request. - Request *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest `json:"request,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "AgentCoachingSuggestion") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with + // NullFields is a list of field names (e.g. "AgentCoachingSuggestion") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1GeneratorSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1GeneratorSuggestion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse: +// Represents response from generators. +type GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse struct { + // GeneratorSuggestion: The suggestion generated from the Generator. + GeneratorSuggestion *GoogleCloudContactcenterinsightsV1GeneratorSuggestion `json:"generatorSuggestion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GeneratorSuggestion") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GeneratorSuggestion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata +func (s *GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1ImportIssueModelRequest: Request to -// import an issue model. -type GoogleCloudContactcenterinsightsV1ImportIssueModelRequest struct { - // CreateNewModel: Optional. If set to true, will create a new issue - // model from the imported file with randomly generated IDs for the - // issue model and corresponding issues. Otherwise, replaces an existing - // model with the same ID as the file. - CreateNewModel bool `json:"createNewModel,omitempty"` - - // GcsSource: Google Cloud Storage source message. - GcsSource *GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource `json:"gcsSource,omitempty"` +// GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse: +// Response for Knowledge Assist. Contains suggested query and +// optionally includes an answer for the query. +type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse struct { + // SuggestedQuery: The query suggested based on the context. Suggestion + // is made only if it is different from the previous suggestion. + SuggestedQuery *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery `json:"suggestedQuery,omitempty"` - // Parent: Required. The parent resource of the issue model. - Parent string `json:"parent,omitempty"` + // SuggestedQueryAnswer: The answer generated for the suggested query. + // Whether or not an answer is generated depends on how confident we are + // about the generated query. + SuggestedQueryAnswer *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer `json:"suggestedQueryAnswer,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateNewModel") to + // ForceSendFields is a list of field names (e.g. "SuggestedQuery") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2668,7 +2952,7 @@ type GoogleCloudContactcenterinsightsV1ImportIssueModelRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateNewModel") to + // NullFields is a list of field names (e.g. "SuggestedQuery") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -2678,19 +2962,36 @@ type GoogleCloudContactcenterinsightsV1ImportIssueModelRequest struct { NullFields []string `json:"-"` } -func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelRequest +func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource: -// Google Cloud Storage Object URI to get the issue model file from. -type GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource struct { - // ObjectUri: Required. Format: `gs:///` - ObjectUri string `json:"objectUri,omitempty"` +// GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeA +// nswer: Represents an answer from Knowledge. Cuurently supports FAQ +// and Generative answers. +type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer struct { + // AnswerText: The piece of text from the `source` that answers this + // suggested query. + AnswerText string `json:"answerText,omitempty"` - // ForceSendFields is a list of field names (e.g. "ObjectUri") to + // FaqSource: Populated if the prediction came from FAQ. + FaqSource *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource `json:"faqSource,omitempty"` + + // GenerativeSource: Populated if the prediction was Generative. + GenerativeSource *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource `json:"generativeSource,omitempty"` + + // IntentMatchingSource: Populated if the prediction was from intent + // matching. + IntentMatchingSource *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource `json:"intentMatchingSource,omitempty"` + + // MatchConfidence: The system's confidence score that this answer is a + // good match for this conversational query. The range is from 0.0 + // (completely uncertain) to 1.0 (completely certain). + MatchConfidence float64 `json:"matchConfidence,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnswerText") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2698,7 +2999,7 @@ type GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ObjectUri") to include in + // NullFields is a list of field names (e.g. "AnswerText") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -2707,25 +3008,329 @@ type GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource struct { NullFields []string `json:"-"` } -func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource +func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1ImportIssueModelResponse: Response -// from import issue model -type GoogleCloudContactcenterinsightsV1ImportIssueModelResponse struct { +func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer + var s1 struct { + MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.MatchConfidence = float64(s1.MatchConfidence) + return nil } -// GoogleCloudContactcenterinsightsV1IngestConversationsMetadata: The -// metadata for an IngestConversations operation. -type GoogleCloudContactcenterinsightsV1IngestConversationsMetadata struct { - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` +// GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeA +// nswerFaqSource: Details about source of FAQ answer. +type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource struct { + // Document: Indicates which Knowledge Document this answer was + // extracted from. Format: `projects//knowledgeBases//documents/`. + Document string `json:"document,omitempty"` + + // Question: The corresponding FAQ question. + Question string `json:"question,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Document") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Document") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeA +// nswerGenerativeSource: Details about source of Generative answer. +type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource struct { + // Snippets: All snippets used for this Generative Prediction, with + // their source URI and data. + Snippets []*GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet `json:"snippets,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Snippets") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Snippets") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeA +// nswerGenerativeSourceSnippet: Snippet Source for a Generative +// Prediction. +type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet struct { + // Document: Indicates which Knowledge Document this snippet was + // extracted from. Format: `projects//knowledgeBases//documents/`. + Document string `json:"document,omitempty"` + + // Text: text taken from that URI. + Text string `json:"text,omitempty"` + + // Title: Title of the document. + Title string `json:"title,omitempty"` + + // Uri: URI the data is sourced from. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Document") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Document") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeA +// nswerIntentMatchingSource: Details about source of Intent Matching +// answer. +type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource struct { + // Title: Title of the document. + Title string `json:"title,omitempty"` + + // Uri: URI the data is sourced from. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Title") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Title") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQ +// uery: Represents a suggested query. +type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery struct { + // QueryText: Suggested query text. + QueryText string `json:"queryText,omitempty"` + + // Score: Suggested query score. + Score float64 `json:"score,omitempty"` + + // ForceSendFields is a list of field names (e.g. "QueryText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "QueryText") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery + 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 +} + +// GoogleCloudContactcenterinsightsV1HoldData: The data for a hold +// annotation. +type GoogleCloudContactcenterinsightsV1HoldData struct { +} + +// GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata: Metadata +// used for import issue model. +type GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata struct { + // CreateTime: The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // Request: The original import request. + Request *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest `json:"request,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ImportIssueModelRequest: Request to +// import an issue model. +type GoogleCloudContactcenterinsightsV1ImportIssueModelRequest struct { + // CreateNewModel: Optional. If set to true, will create a new issue + // model from the imported file with randomly generated IDs for the + // issue model and corresponding issues. Otherwise, replaces an existing + // model with the same ID as the file. + CreateNewModel bool `json:"createNewModel,omitempty"` + + // GcsSource: Google Cloud Storage source message. + GcsSource *GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource `json:"gcsSource,omitempty"` + + // Parent: Required. The parent resource of the issue model. + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateNewModel") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateNewModel") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource: +// Google Cloud Storage Object URI to get the issue model file from. +type GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource struct { + // ObjectUri: Required. Format: `gs:///` + ObjectUri string `json:"objectUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ObjectUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ObjectUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ImportIssueModelResponse: Response +// from import issue model +type GoogleCloudContactcenterinsightsV1ImportIssueModelResponse struct { +} + +// GoogleCloudContactcenterinsightsV1IngestConversationsMetadata: The +// metadata for an IngestConversations operation. +type GoogleCloudContactcenterinsightsV1IngestConversationsMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` // IngestConversationsStats: Output only. Statistics for // IngestConversations operation. @@ -3951,6 +4556,15 @@ type GoogleCloudContactcenterinsightsV1RuntimeAnnotation struct { // FaqAnswer: Agent Assist FAQ answer data. FaqAnswer *GoogleCloudContactcenterinsightsV1FaqAnswerData `json:"faqAnswer,omitempty"` + // GeneratorSuggestionResult: The generator suggestion result. + GeneratorSuggestionResult *GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse `json:"generatorSuggestionResult,omitempty"` + + // KnowledgeAssistResult: The Knowledge Assist result. + KnowledgeAssistResult *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse `json:"knowledgeAssistResult,omitempty"` + + // KnowledgeSearchResult: The Knowledge Search result. + KnowledgeSearchResult *GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer `json:"knowledgeSearchResult,omitempty"` + // SmartComposeSuggestion: Agent Assist Smart Compose suggestion data. SmartComposeSuggestion *GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData `json:"smartComposeSuggestion,omitempty"` @@ -3984,12 +4598,114 @@ func (s *GoogleCloudContactcenterinsightsV1RuntimeAnnotation) MarshalJSON() ([]b return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1SentimentData: The data for a -// sentiment annotation. -type GoogleCloudContactcenterinsightsV1SentimentData struct { - // Magnitude: A non-negative number from 0 to infinity which represents - // the abolute magnitude of sentiment regardless of score. - Magnitude float64 `json:"magnitude,omitempty"` +// GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer: Represents a +// SearchKnowledge answer. +type GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer struct { + // Answer: The piece of text from the knowledge base documents that + // answers the search query + Answer string `json:"answer,omitempty"` + + // AnswerRecord: The name of the answer record. Format: + // `projects//locations//answer Records/` + AnswerRecord string `json:"answerRecord,omitempty"` + + // AnswerSources: All sources used to generate the answer. + AnswerSources []*GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource `json:"answerSources,omitempty"` + + // AnswerType: The type of the answer. + // + // Possible values: + // "ANSWER_TYPE_UNSPECIFIED" - The answer has a unspecified type. + // "FAQ" - The answer is from FAQ documents. + // "GENERATIVE" - The answer is from generative model. + // "INTENT" - The answer is from intent matching. + AnswerType string `json:"answerType,omitempty"` + + // ConfidenceScore: The confidence score in [0.0, 1.0] range. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Answer") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Answer") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer + 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 +} + +// GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource: +// The sources of the answers. +type GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource struct { + // Document: The document from which the snippet was extracted. Format: + // `projects//knowledgeBases//documents/` + Document string `json:"document,omitempty"` + + // Snippet: The relevant snippet of the article. + Snippet string `json:"snippet,omitempty"` + + // Title: The title of the article. + Title string `json:"title,omitempty"` + + // Uri: The URI of the article. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Document") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Document") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1SentimentData: The data for a +// sentiment annotation. +type GoogleCloudContactcenterinsightsV1SentimentData struct { + // Magnitude: A non-negative number from 0 to infinity which represents + // the abolute magnitude of sentiment regardless of score. + Magnitude float64 `json:"magnitude,omitempty"` // Score: The sentiment score between -1.0 (negative) and 1.0 // (positive). @@ -4324,6 +5040,68 @@ func (s *GoogleCloudContactcenterinsightsV1SpeechConfig) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1SummarySuggestion: Suggested +// summary of the conversation. +type GoogleCloudContactcenterinsightsV1SummarySuggestion struct { + // SummarySections: Required. All the parts of generated summary. + SummarySections []*GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection `json:"summarySections,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SummarySections") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SummarySections") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1SummarySuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1SummarySuggestion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection: A +// component of the generated summary. +type GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection struct { + // Section: Required. Name of the section. + Section string `json:"section,omitempty"` + + // Summary: Required. Summary text for the section. + Summary string `json:"summary,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Section") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Section") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata: // Metadata for undeploying an issue model. type GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata struct { @@ -4530,6 +5308,233 @@ func (s *GoogleCloudContactcenterinsightsV1View) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction: +// Agent Coaching instructions that customer can configure. +type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction struct { + // AgentAction: Optional. The action that human agent should take. For + // example, "apologize for the slow shipping". If the users only want to + // use agent coaching for intent detection, agent_action can be empty + AgentAction string `json:"agentAction,omitempty"` + + // Condition: Optional. The condition of the instruction. For example, + // "the customer wants to cancel an order". If the users want the + // instruction to be triggered unconditionally, the condition can be + // empty. + Condition string `json:"condition,omitempty"` + + // Description: Optional. The detailed description of this instruction. + Description string `json:"description,omitempty"` + + // DisplayName: Optional. Display name for the instruction. + DisplayName string `json:"displayName,omitempty"` + + // Metadata: Optional. Additional information attached to this + // instruction. + Metadata map[string]string `json:"metadata,omitempty"` + + // SystemAction: Optional. The action that system should take. For + // example, "call GetOrderTime with order_number={order number provided + // by the customer}". If the users don't have plugins or don't want to + // trigger plugins, the system_action can be empty + SystemAction string `json:"systemAction,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentAction") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentAction") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion: +// Suggestion for coaching agents. +type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion struct { + // AgentActionSuggestions: Optional. Suggested actions for the agent to + // take. + AgentActionSuggestions []*GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion `json:"agentActionSuggestions,omitempty"` + + // ApplicableInstructions: Optional. Instructions applicable based on + // the current context. + ApplicableInstructions []*GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction `json:"applicableInstructions,omitempty"` + + // SampleResponses: Optional. Sample response for the Agent. + SampleResponses []*GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse `json:"sampleResponses,omitempty"` + + // SuggestionEval: Self evaluation of the suggestion. + SuggestionEval *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval `json:"suggestionEval,omitempty"` + + // SuggestionReasoning: Reasoning for the suggestion. + SuggestionReasoning *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning `json:"suggestionReasoning,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AgentActionSuggestions") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentActionSuggestions") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentAc +// tionSuggestion: Actions suggested for the agent. This is based on +// applicable instructions. +type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion struct { + // AgentAction: Optional. The suggested action for the agent. + AgentAction string `json:"agentAction,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentAction") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentAction") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCo +// achingSuggestionEval: Self evaluations of the suggestion. +type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval struct { + // ActionActionSuggestionEval: Optional. Eval for Agent action + // suggestion. + ActionActionSuggestionEval string `json:"actionActionSuggestionEval,omitempty"` + + // SampleResponseEval: Optional. Eval for sample response. + SampleResponseEval string `json:"sampleResponseEval,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ActionActionSuggestionEval") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ActionActionSuggestionEval") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCo +// achingSuggestionReasoning: Reasoning for the suggestion. +type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning struct { + // AgentActionTaken: Optional. The actions that the agent has taken + // already. + AgentActionTaken string `json:"agentActionTaken,omitempty"` + + // IssueSummary: Optional. Summary of the issue. + IssueSummary string `json:"issueSummary,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentActionTaken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentActionTaken") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleR +// esponse: Sample response that the agent can use. This could be based +// on applicable instructions and ingested data from other systems. +type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse struct { + // ResponseText: Optional. Sample response for Agent in text. + ResponseText string `json:"responseText,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResponseText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResponseText") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1alpha1Analysis: The analysis // resource. type GoogleCloudContactcenterinsightsV1alpha1Analysis struct { @@ -6620,7 +7625,39 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData) UnmarshalJSON(da return nil } -// GoogleCloudContactcenterinsightsV1alpha1GcsSource: A Cloud Storage +// GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion: +// Suggestion generated using free form generator. +type GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion struct { + // Labels: Optional. Labels for the generator. + Labels []string `json:"labels,omitempty"` + + // Response: Required. Free form suggestion. + Response string `json:"response,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Labels") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Labels") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1GcsSource: A Cloud Storage // source of conversation data. type GoogleCloudContactcenterinsightsV1alpha1GcsSource struct { // AudioUri: Cloud Storage URI that points to a file that contains the @@ -6654,6 +7691,353 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1GcsSource) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion: +// Suggestion generated using a Generator. +type GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion struct { + // AgentCoachingSuggestion: Optional. Suggestion to coach the agent. + AgentCoachingSuggestion *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion `json:"agentCoachingSuggestion,omitempty"` + + // FreeFormSuggestion: Optional. Free form suggestion. + FreeFormSuggestion *GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion `json:"freeFormSuggestion,omitempty"` + + // SummarySuggestion: Optional. Suggested summary. + SummarySuggestion *GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion `json:"summarySuggestion,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AgentCoachingSuggestion") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentCoachingSuggestion") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse +// : Represents response from generators. +type GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse struct { + // GeneratorSuggestion: The suggestion generated from the Generator. + GeneratorSuggestion *GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion `json:"generatorSuggestion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GeneratorSuggestion") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GeneratorSuggestion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse: +// Response for Knowledge Assist. Contains suggested query and +// optionally includes an answer for the query. +type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse struct { + // SuggestedQuery: The query suggested based on the context. Suggestion + // is made only if it is different from the previous suggestion. + SuggestedQuery *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery `json:"suggestedQuery,omitempty"` + + // SuggestedQueryAnswer: The answer generated for the suggested query. + // Whether or not an answer is generated depends on how confident we are + // about the generated query. + SuggestedQueryAnswer *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer `json:"suggestedQueryAnswer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SuggestedQuery") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SuggestedQuery") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnow +// ledgeAnswer: Represents an answer from Knowledge. Cuurently supports +// FAQ and Generative answers. +type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer struct { + // AnswerText: The piece of text from the `source` that answers this + // suggested query. + AnswerText string `json:"answerText,omitempty"` + + // FaqSource: Populated if the prediction came from FAQ. + FaqSource *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource `json:"faqSource,omitempty"` + + // GenerativeSource: Populated if the prediction was Generative. + GenerativeSource *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource `json:"generativeSource,omitempty"` + + // IntentMatchingSource: Populated if the prediction was from intent + // matching. + IntentMatchingSource *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource `json:"intentMatchingSource,omitempty"` + + // MatchConfidence: The system's confidence score that this answer is a + // good match for this conversational query. The range is from 0.0 + // (completely uncertain) to 1.0 (completely certain). + MatchConfidence float64 `json:"matchConfidence,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnswerText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnswerText") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer + var s1 struct { + MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.MatchConfidence = float64(s1.MatchConfidence) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnow +// ledgeAnswerFaqSource: Details about source of FAQ answer. +type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource struct { + // Document: Indicates which Knowledge Document this answer was + // extracted from. Format: `projects//knowledgeBases//documents/`. + Document string `json:"document,omitempty"` + + // Question: The corresponding FAQ question. + Question string `json:"question,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Document") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Document") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnow +// ledgeAnswerGenerativeSource: Details about source of Generative +// answer. +type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource struct { + // Snippets: All snippets used for this Generative Prediction, with + // their source URI and data. + Snippets []*GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet `json:"snippets,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Snippets") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Snippets") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnow +// ledgeAnswerGenerativeSourceSnippet: Snippet Source for a Generative +// Prediction. +type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet struct { + // Document: Indicates which Knowledge Document this snippet was + // extracted from. Format: `projects//knowledgeBases//documents/`. + Document string `json:"document,omitempty"` + + // Text: text taken from that URI. + Text string `json:"text,omitempty"` + + // Title: Title of the document. + Title string `json:"title,omitempty"` + + // Uri: URI the data is sourced from. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Document") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Document") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnow +// ledgeAnswerIntentMatchingSource: Details about source of Intent +// Matching answer. +type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource struct { + // Title: Title of the document. + Title string `json:"title,omitempty"` + + // Uri: URI the data is sourced from. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Title") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Title") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSugg +// estedQuery: Represents a suggested query. +type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery struct { + // QueryText: Suggested query text. + QueryText string `json:"queryText,omitempty"` + + // Score: Suggested query score. + Score float64 `json:"score,omitempty"` + + // ForceSendFields is a list of field names (e.g. "QueryText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "QueryText") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery + 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 +} + // GoogleCloudContactcenterinsightsV1alpha1HoldData: The data for a hold // annotation. type GoogleCloudContactcenterinsightsV1alpha1HoldData struct { @@ -7530,6 +8914,15 @@ type GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation struct { // FaqAnswer: Agent Assist FAQ answer data. FaqAnswer *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData `json:"faqAnswer,omitempty"` + // GeneratorSuggestionResult: The generator suggestion result. + GeneratorSuggestionResult *GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse `json:"generatorSuggestionResult,omitempty"` + + // KnowledgeAssistResult: The Knowledge Assist result. + KnowledgeAssistResult *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse `json:"knowledgeAssistResult,omitempty"` + + // KnowledgeSearchResult: The Knowledge Search result. + KnowledgeSearchResult *GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer `json:"knowledgeSearchResult,omitempty"` + // SmartComposeSuggestion: Agent Assist Smart Compose suggestion data. SmartComposeSuggestion *GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData `json:"smartComposeSuggestion,omitempty"` @@ -7563,6 +8956,108 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation) MarshalJSON( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer: +// Represents a SearchKnowledge answer. +type GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer struct { + // Answer: The piece of text from the knowledge base documents that + // answers the search query + Answer string `json:"answer,omitempty"` + + // AnswerRecord: The name of the answer record. Format: + // `projects//locations//answer Records/` + AnswerRecord string `json:"answerRecord,omitempty"` + + // AnswerSources: All sources used to generate the answer. + AnswerSources []*GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource `json:"answerSources,omitempty"` + + // AnswerType: The type of the answer. + // + // Possible values: + // "ANSWER_TYPE_UNSPECIFIED" - The answer has a unspecified type. + // "FAQ" - The answer is from FAQ documents. + // "GENERATIVE" - The answer is from generative model. + // "INTENT" - The answer is from intent matching. + AnswerType string `json:"answerType,omitempty"` + + // ConfidenceScore: The confidence score in [0.0, 1.0] range. + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Answer") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Answer") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer + 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 +} + +// GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSou +// rce: The sources of the answers. +type GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource struct { + // Document: The document from which the snippet was extracted. Format: + // `projects//knowledgeBases//documents/` + Document string `json:"document,omitempty"` + + // Snippet: The relevant snippet of the article. + Snippet string `json:"snippet,omitempty"` + + // Title: The title of the article. + Title string `json:"title,omitempty"` + + // Uri: The URI of the article. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Document") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Document") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1alpha1SentimentData: The data for a // sentiment annotation. type GoogleCloudContactcenterinsightsV1alpha1SentimentData struct { @@ -7764,6 +9259,68 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1SpeechConfig) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion: Suggested +// summary of the conversation. +type GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion struct { + // SummarySections: Required. All the parts of generated summary. + SummarySections []*GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection `json:"summarySections,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SummarySections") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SummarySections") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySectio +// n: A component of the generated summary. +type GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection struct { + // Section: Required. Name of the section. + Section string `json:"section,omitempty"` + + // Summary: Required. Summary text for the section. + Summary string `json:"summary,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Section") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Section") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata: // Metadata for undeploying an issue model. type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata struct { diff --git a/firebaseappcheck/v1/firebaseappcheck-api.json b/firebaseappcheck/v1/firebaseappcheck-api.json index 7b470ec5cd9..f12cf1750b5 100644 --- a/firebaseappcheck/v1/firebaseappcheck-api.json +++ b/firebaseappcheck/v1/firebaseappcheck-api.json @@ -541,7 +541,7 @@ "type": "string" }, "updateMask": { - "description": "Required. A comma-separated list of names of fields in the AppAttestConfig Gets to update. Example: `token_ttl`.", + "description": "Required. A comma-separated list of names of fields in the AppAttestConfig to update. Example: `token_ttl`.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -795,7 +795,7 @@ "type": "string" }, "updateMask": { - "description": "Required. A comma-separated list of names of fields in the DeviceCheckConfig Gets to update. Example: `key_id,private_key`.", + "description": "Required. A comma-separated list of names of fields in the DeviceCheckConfig to update. Example: `key_id,private_key`.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -892,7 +892,7 @@ "type": "string" }, "updateMask": { - "description": "Required. A comma-separated list of names of fields in the PlayIntegrityConfig Gets to update. Example: `token_ttl`.", + "description": "Required. A comma-separated list of names of fields in the PlayIntegrityConfig to update. Example: `token_ttl`.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1187,7 +1187,7 @@ "type": "string" }, "updateMask": { - "description": "Required. A comma-separated list of names of fields in the SafetyNetConfig Gets to update. Example: `token_ttl`.", + "description": "Required. A comma-separated list of names of fields in the SafetyNetConfig to update. Example: `token_ttl`.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1343,7 +1343,7 @@ } } }, - "revision": "20231009", + "revision": "20240415", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1AppAttestConfig": { @@ -1930,7 +1930,7 @@ "ENFORCED" ], "enumDescriptions": [ - "Firebase App Check is not enforced for the service, nor are App Check metrics collected. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. An unconfigured service is in this mode by default. Note that resource policies behave slightly differently as an unconfigured resource policy means that the resource will inherit the EnforcementMode configured for the service it belongs to and will not be considered as being in OFF mode by default.", + "Firebase App Check is not enforced for the service, nor are App Check metrics collected. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. An unconfigured service is in this mode by default.", "Firebase App Check is not enforced for the service. App Check metrics are collected to help you decide when to turn on enforcement for the service. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier. Until those requirements are met for a service, this `UNENFORCED` setting will have no effect and App Check will not work with that service.", "Firebase App Check is enforced for the service. The service will reject any request that attempts to access your project's resources if it does not have valid App Check token attached, with some exceptions depending on the service; for example, some services will still allow requests bearing the developer's privileged service account credentials without an App Check token. App Check metrics continue to be collected to help you detect issues with your App Check integration and monitor the composition of your callers. While the service is protected by App Check, other applicable protections, such as user authorization, continue to be enforced at the same time. Use caution when choosing to enforce App Check on a Firebase service. If your users have not updated to an App Check capable version of your app, their apps will no longer be able to use your Firebase services that are enforcing App Check. App Check metrics can help you decide whether to enforce App Check on your Firebase services. If your app has not launched yet, you should enable enforcement immediately, since there are no outdated clients in use. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier or requiring you to enable the service first. Until those requirements are met for a service, this `ENFORCED` setting will have no effect and App Check will not work with that service." ], diff --git a/firebaseappcheck/v1/firebaseappcheck-gen.go b/firebaseappcheck/v1/firebaseappcheck-gen.go index 5cc58a7cd72..5a165e60c7d 100644 --- a/firebaseappcheck/v1/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1/firebaseappcheck-gen.go @@ -1619,11 +1619,7 @@ type GoogleFirebaseAppcheckV1Service struct { // App Check metrics collected. Though the service is not protected by // App Check in this mode, other applicable protections, such as user // authorization, are still enforced. An unconfigured service is in this - // mode by default. Note that resource policies behave slightly - // differently as an unconfigured resource policy means that the - // resource will inherit the EnforcementMode configured for the service - // it belongs to and will not be considered as being in OFF mode by - // default. + // mode by default. // "UNENFORCED" - Firebase App Check is not enforced for the service. // App Check metrics are collected to help you decide when to turn on // enforcement for the service. Though the service is not protected by @@ -3913,8 +3909,8 @@ func (r *ProjectsAppsAppAttestConfigService) Patch(name string, googlefirebaseap } // UpdateMask sets the optional parameter "updateMask": Required. A -// comma-separated list of names of fields in the AppAttestConfig Gets -// to update. Example: `token_ttl`. +// comma-separated list of names of fields in the AppAttestConfig to +// update. Example: `token_ttl`. func (c *ProjectsAppsAppAttestConfigPatchCall) UpdateMask(updateMask string) *ProjectsAppsAppAttestConfigPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -4028,7 +4024,7 @@ func (c *ProjectsAppsAppAttestConfigPatchCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "updateMask": { - // "description": "Required. A comma-separated list of names of fields in the AppAttestConfig Gets to update. Example: `token_ttl`.", + // "description": "Required. A comma-separated list of names of fields in the AppAttestConfig to update. Example: `token_ttl`.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -5209,8 +5205,8 @@ func (r *ProjectsAppsDeviceCheckConfigService) Patch(name string, googlefirebase } // UpdateMask sets the optional parameter "updateMask": Required. A -// comma-separated list of names of fields in the DeviceCheckConfig Gets -// to update. Example: `key_id,private_key`. +// comma-separated list of names of fields in the DeviceCheckConfig to +// update. Example: `key_id,private_key`. func (c *ProjectsAppsDeviceCheckConfigPatchCall) UpdateMask(updateMask string) *ProjectsAppsDeviceCheckConfigPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -5325,7 +5321,7 @@ func (c *ProjectsAppsDeviceCheckConfigPatchCall) Do(opts ...googleapi.CallOption // "type": "string" // }, // "updateMask": { - // "description": "Required. A comma-separated list of names of fields in the DeviceCheckConfig Gets to update. Example: `key_id,private_key`.", + // "description": "Required. A comma-separated list of names of fields in the DeviceCheckConfig to update. Example: `key_id,private_key`.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -5692,8 +5688,8 @@ func (r *ProjectsAppsPlayIntegrityConfigService) Patch(name string, googlefireba } // UpdateMask sets the optional parameter "updateMask": Required. A -// comma-separated list of names of fields in the PlayIntegrityConfig -// Gets to update. Example: `token_ttl`. +// comma-separated list of names of fields in the PlayIntegrityConfig to +// update. Example: `token_ttl`. func (c *ProjectsAppsPlayIntegrityConfigPatchCall) UpdateMask(updateMask string) *ProjectsAppsPlayIntegrityConfigPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -5808,7 +5804,7 @@ func (c *ProjectsAppsPlayIntegrityConfigPatchCall) Do(opts ...googleapi.CallOpti // "type": "string" // }, // "updateMask": { - // "description": "Required. A comma-separated list of names of fields in the PlayIntegrityConfig Gets to update. Example: `token_ttl`.", + // "description": "Required. A comma-separated list of names of fields in the PlayIntegrityConfig to update. Example: `token_ttl`.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -7149,8 +7145,8 @@ func (r *ProjectsAppsSafetyNetConfigService) Patch(name string, googlefirebaseap } // UpdateMask sets the optional parameter "updateMask": Required. A -// comma-separated list of names of fields in the SafetyNetConfig Gets -// to update. Example: `token_ttl`. +// comma-separated list of names of fields in the SafetyNetConfig to +// update. Example: `token_ttl`. func (c *ProjectsAppsSafetyNetConfigPatchCall) UpdateMask(updateMask string) *ProjectsAppsSafetyNetConfigPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -7265,7 +7261,7 @@ func (c *ProjectsAppsSafetyNetConfigPatchCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "updateMask": { - // "description": "Required. A comma-separated list of names of fields in the SafetyNetConfig Gets to update. Example: `token_ttl`.", + // "description": "Required. A comma-separated list of names of fields in the SafetyNetConfig to update. Example: `token_ttl`.", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/firebaseappcheck/v1beta/firebaseappcheck-api.json b/firebaseappcheck/v1beta/firebaseappcheck-api.json index 837463fd259..f7580cc29cd 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-api.json +++ b/firebaseappcheck/v1beta/firebaseappcheck-api.json @@ -722,7 +722,7 @@ "type": "string" }, "updateMask": { - "description": "Required. A comma-separated list of names of fields in the AppAttestConfig Gets to update. Example: `token_ttl`.", + "description": "Required. A comma-separated list of names of fields in the AppAttestConfig to update. Example: `token_ttl`.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -976,7 +976,7 @@ "type": "string" }, "updateMask": { - "description": "Required. A comma-separated list of names of fields in the DeviceCheckConfig Gets to update. Example: `key_id,private_key`.", + "description": "Required. A comma-separated list of names of fields in the DeviceCheckConfig to update. Example: `key_id,private_key`.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1073,7 +1073,7 @@ "type": "string" }, "updateMask": { - "description": "Required. A comma-separated list of names of fields in the PlayIntegrityConfig Gets to update. Example: `token_ttl`.", + "description": "Required. A comma-separated list of names of fields in the PlayIntegrityConfig to update. Example: `token_ttl`.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1469,7 +1469,7 @@ "type": "string" }, "updateMask": { - "description": "Required. A comma-separated list of names of fields in the SafetyNetConfig Gets to update. Example: `token_ttl`.", + "description": "Required. A comma-separated list of names of fields in the SafetyNetConfig to update. Example: `token_ttl`.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1634,7 +1634,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent project name and the service, in the format ``` projects/{project_number}/services/{service_id} ``` The parent collection in the `name` field of any resource being updated must match this field, or the entire batch fails.", + "description": "Required. The parent service name, in the format ``` projects/{project_number}/services/{service_id} ``` The parent collection in the `name` field of any resource being updated must match this field, or the entire batch fails.", "location": "path", "pattern": "^projects/[^/]+/services/[^/]+$", "required": true, @@ -1692,12 +1692,12 @@ ], "parameters": { "etag": { - "description": "The checksum to be validated against the current ResourcePolicy, to ensure the client has an up-to-date value before proceeding. The user can obtain this from the ResourcePolicy object that they last received. This etag is strongly validated.", + "description": "The checksum to be validated against the current ResourcePolicy, to ensure the client has an up-to-date value before proceeding. This checksum is computed by the server based on the values of fields in the ResourcePolicy object, and can be obtained from the ResourcePolicy object received from the last CreateResourcePolicy, GetResourcePolicy, ListResourcePolicies, UpdateResourcePolicy, or BatchUpdateResourcePolicies call. This etag is strongly validated as defined by RFC 7232.", "location": "query", "type": "string" }, "name": { - "description": "Required. The relative resource name of the ResourcePolicy to delete, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_name} ```", + "description": "Required. The relative resource name of the ResourcePolicy to delete, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ```", "location": "path", "pattern": "^projects/[^/]+/services/[^/]+/resourcePolicies/[^/]+$", "required": true, @@ -1754,18 +1754,18 @@ "type": "string" }, "pageSize": { - "description": "The maximum number of ResourcePolicys to return in the response. Only explicitly configured policies are returned. The server may return fewer than this at its own discretion. If no value is specified (or too large a value is specified), the server will impose its own limit.", + "description": "The maximum number of ResourcePolicy objects to return in the response. The server may return fewer than this at its own discretion. If no value is specified (or too large a value is specified), the server will impose its own limit.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Token returned from a previous call to ListResourcePolicies indicating where in the set of ResourcePolicys to resume listing. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListResourcePolicies must match the call that provided the page token; if they do not match, the result is undefined.", + "description": "Token returned from a previous call to ListResourcePolicies indicating where in the set of ResourcePolicy objects to resume listing. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListResourcePolicies must match the call that provided the page token; if they do not match, the result is undefined.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The relative resource name of the parent project and service for which to list each associated ResourcePolicy, in the format: ``` projects/{project_number}/services/{service_name} ```", + "description": "Required. The relative resource name of the parent service for which to list each associated ResourcePolicy, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS)", "location": "path", "pattern": "^projects/[^/]+/services/[^/]+$", "required": true, @@ -1823,7 +1823,7 @@ } } }, - "revision": "20240304", + "revision": "20240415", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1betaAppAttestConfig": { @@ -1985,7 +1985,7 @@ "id": "GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesRequest", "properties": { "requests": { - "description": "Required. The request messages specifying the ResourcePolicys to update. A maximum of 100 objects can be updated in a batch.", + "description": "Required. The request messages specifying the ResourcePolicy objects to update. A maximum of 100 objects can be updated in a batch.", "items": { "$ref": "GoogleFirebaseAppcheckV1betaUpdateResourcePolicyRequest" }, @@ -2353,7 +2353,7 @@ "type": "string" }, "resourcePolicies": { - "description": "The ResourcePolicys retrieved.", + "description": "The ResourcePolicy objects retrieved.", "items": { "$ref": "GoogleFirebaseAppcheckV1betaResourcePolicy" }, @@ -2517,21 +2517,21 @@ "id": "GoogleFirebaseAppcheckV1betaResourcePolicy", "properties": { "enforcementMode": { - "description": "Required. The App Check enforcement mode for this resource. This will override the EnforcementMode setting on the service. For new resources that you are creating, you should consider setting an override and enable enforcement on the resource immediately, if there are no outdated clients that can use it.", + "description": "Required. The App Check enforcement mode for this resource. This will override the EnforcementMode setting on the parent service.", "enum": [ "OFF", "UNENFORCED", "ENFORCED" ], "enumDescriptions": [ - "Firebase App Check is not enforced for the service, nor are App Check metrics collected. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. An unconfigured service is in this mode by default. Note that resource policies behave slightly differently as an unconfigured resource policy means that the resource will inherit the EnforcementMode configured for the service it belongs to and will not be considered as being in OFF mode by default.", + "Firebase App Check is not enforced for the service, nor are App Check metrics collected. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. An unconfigured service is in this mode by default.", "Firebase App Check is not enforced for the service. App Check metrics are collected to help you decide when to turn on enforcement for the service. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier. Until those requirements are met for a service, this `UNENFORCED` setting will have no effect and App Check will not work with that service.", "Firebase App Check is enforced for the service. The service will reject any request that attempts to access your project's resources if it does not have valid App Check token attached, with some exceptions depending on the service; for example, some services will still allow requests bearing the developer's privileged service account credentials without an App Check token. App Check metrics continue to be collected to help you detect issues with your App Check integration and monitor the composition of your callers. While the service is protected by App Check, other applicable protections, such as user authorization, continue to be enforced at the same time. Use caution when choosing to enforce App Check on a Firebase service. If your users have not updated to an App Check capable version of your app, their apps will no longer be able to use your Firebase services that are enforcing App Check. App Check metrics can help you decide whether to enforce App Check on your Firebase services. If your app has not launched yet, you should enable enforcement immediately, since there are no outdated clients in use. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier. Until those requirements are met for a service, this `ENFORCED` setting will have no effect and App Check will not work with that service." ], "type": "string" }, "etag": { - "description": "This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated.", + "description": "This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232.", "type": "string" }, "name": { @@ -2539,11 +2539,11 @@ "type": "string" }, "targetResource": { - "description": "Required. Service specific name of the resource object to which this policy applies, in the format: * `//oauth2.googleapis.com/projects/{project}/oauthClients/{oauth_client_id}` (Google Identity for iOS) NOTE that the resource must belong to the service specified in the `name` and be from the same project as this policy, but it may or may not exist at the time of creation of the policy.", + "description": "Required. Service specific name of the resource object to which this policy applies, in the format: * `//oauth2.googleapis.com/projects/{project}/oauthClients/{oauth_client_id}` (Google Identity for iOS) Note that the resource must belong to the service specified in the `name` and be from the same project as this policy, but the resource is allowed to be missing at the time of creation of this policy; in that case, we make a best-effort attempt at respecting this policy, but it may not have any effect until the resource is fully created.", "type": "string" }, "updateTime": { - "description": "Output only. Timestamp when this service configuration object was most recently updated.", + "description": "Output only. Timestamp when this resource policy configuration object was most recently updated.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -2580,7 +2580,7 @@ "ENFORCED" ], "enumDescriptions": [ - "Firebase App Check is not enforced for the service, nor are App Check metrics collected. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. An unconfigured service is in this mode by default. Note that resource policies behave slightly differently as an unconfigured resource policy means that the resource will inherit the EnforcementMode configured for the service it belongs to and will not be considered as being in OFF mode by default.", + "Firebase App Check is not enforced for the service, nor are App Check metrics collected. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. An unconfigured service is in this mode by default.", "Firebase App Check is not enforced for the service. App Check metrics are collected to help you decide when to turn on enforcement for the service. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier. Until those requirements are met for a service, this `UNENFORCED` setting will have no effect and App Check will not work with that service.", "Firebase App Check is enforced for the service. The service will reject any request that attempts to access your project's resources if it does not have valid App Check token attached, with some exceptions depending on the service; for example, some services will still allow requests bearing the developer's privileged service account credentials without an App Check token. App Check metrics continue to be collected to help you detect issues with your App Check integration and monitor the composition of your callers. While the service is protected by App Check, other applicable protections, such as user authorization, continue to be enforced at the same time. Use caution when choosing to enforce App Check on a Firebase service. If your users have not updated to an App Check capable version of your app, their apps will no longer be able to use your Firebase services that are enforcing App Check. App Check metrics can help you decide whether to enforce App Check on your Firebase services. If your app has not launched yet, you should enable enforcement immediately, since there are no outdated clients in use. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier. Until those requirements are met for a service, this `ENFORCED` setting will have no effect and App Check will not work with that service." ], @@ -2609,7 +2609,7 @@ "properties": { "resourcePolicy": { "$ref": "GoogleFirebaseAppcheckV1betaResourcePolicy", - "description": "Required. The ResourcePolicy to update. The ResourcePolicy's `name` field is used to identify the ResourcePolicy to be updated, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_name} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) Only the top-level resources are supported for each of the services. The resources must belong to the service specified and `resource_name` should be formatted as: * `oauthClients/{oauth_client_id}` (Google Identity for iOS)" + "description": "Required. The ResourcePolicy to update. The ResourcePolicy's `name` field is used to identify the ResourcePolicy to be updated, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS)" }, "updateMask": { "description": "Required. A comma-separated list of names of fields in the ResourcePolicy to update. Example: `enforcement_mode`.", diff --git a/firebaseappcheck/v1beta/firebaseappcheck-gen.go b/firebaseappcheck/v1beta/firebaseappcheck-gen.go index b5783369428..ac84d49f5e3 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1beta/firebaseappcheck-gen.go @@ -700,8 +700,8 @@ func (s *GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse) MarshalJS // Request message for the BatchUpdateResourcePolicies method. type GoogleFirebaseAppcheckV1betaBatchUpdateResourcePoliciesRequest struct { // Requests: Required. The request messages specifying the - // ResourcePolicys to update. A maximum of 100 objects can be updated in - // a batch. + // ResourcePolicy objects to update. A maximum of 100 objects can be + // updated in a batch. Requests []*GoogleFirebaseAppcheckV1betaUpdateResourcePolicyRequest `json:"requests,omitempty"` // UpdateMask: Optional. A comma-separated list of names of fields in @@ -1511,7 +1511,7 @@ type GoogleFirebaseAppcheckV1betaListResourcePoliciesResponse struct { // should not be persisted. NextPageToken string `json:"nextPageToken,omitempty"` - // ResourcePolicies: The ResourcePolicys retrieved. + // ResourcePolicies: The ResourcePolicy objects retrieved. ResourcePolicies []*GoogleFirebaseAppcheckV1betaResourcePolicy `json:"resourcePolicies,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -1885,20 +1885,14 @@ func (s *GoogleFirebaseAppcheckV1betaRecaptchaV3Config) MarshalJSON() ([]byte, e type GoogleFirebaseAppcheckV1betaResourcePolicy struct { // EnforcementMode: Required. The App Check enforcement mode for this // resource. This will override the EnforcementMode setting on the - // service. For new resources that you are creating, you should consider - // setting an override and enable enforcement on the resource - // immediately, if there are no outdated clients that can use it. + // parent service. // // Possible values: // "OFF" - Firebase App Check is not enforced for the service, nor are // App Check metrics collected. Though the service is not protected by // App Check in this mode, other applicable protections, such as user // authorization, are still enforced. An unconfigured service is in this - // mode by default. Note that resource policies behave slightly - // differently as an unconfigured resource policy means that the - // resource will inherit the EnforcementMode configured for the service - // it belongs to and will not be considered as being in OFF mode by - // default. + // mode by default. // "UNENFORCED" - Firebase App Check is not enforced for the service. // App Check metrics are collected to help you decide when to turn on // enforcement for the service. Though the service is not protected by @@ -1935,7 +1929,7 @@ type GoogleFirebaseAppcheckV1betaResourcePolicy struct { // Etag: This checksum is computed by the server based on the value of // other fields, and may be sent on update and delete requests to ensure // the client has an up-to-date value before proceeding. This etag is - // strongly validated. + // strongly validated as defined by RFC 7232. Etag string `json:"etag,omitempty"` // Name: Required. The relative name of the resource configuration @@ -1951,14 +1945,16 @@ type GoogleFirebaseAppcheckV1betaResourcePolicy struct { // TargetResource: Required. Service specific name of the resource // object to which this policy applies, in the format: * // `//oauth2.googleapis.com/projects/{project}/oauthClients/{oauth_client - // _id}` (Google Identity for iOS) NOTE that the resource must belong to + // _id}` (Google Identity for iOS) Note that the resource must belong to // the service specified in the `name` and be from the same project as - // this policy, but it may or may not exist at the time of creation of - // the policy. + // this policy, but the resource is allowed to be missing at the time of + // creation of this policy; in that case, we make a best-effort attempt + // at respecting this policy, but it may not have any effect until the + // resource is fully created. TargetResource string `json:"targetResource,omitempty"` - // UpdateTime: Output only. Timestamp when this service configuration - // object was most recently updated. + // UpdateTime: Output only. Timestamp when this resource policy + // configuration object was most recently updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -2046,11 +2042,7 @@ type GoogleFirebaseAppcheckV1betaService struct { // App Check metrics collected. Though the service is not protected by // App Check in this mode, other applicable protections, such as user // authorization, are still enforced. An unconfigured service is in this - // mode by default. Note that resource policies behave slightly - // differently as an unconfigured resource policy means that the - // resource will inherit the EnforcementMode configured for the service - // it belongs to and will not be considered as being in OFF mode by - // default. + // mode by default. // "UNENFORCED" - Firebase App Check is not enforced for the service. // App Check metrics are collected to help you decide when to turn on // enforcement for the service. Though the service is not protected by @@ -2142,13 +2134,9 @@ type GoogleFirebaseAppcheckV1betaUpdateResourcePolicyRequest struct { // ResourcePolicy's `name` field is used to identify the ResourcePolicy // to be updated, in the format: ``` // projects/{project_number}/services/{service_id}/resourcePolicies/{reso - // urce_name} ``` Note that the `service_id` element must be a supported - // service ID. Currently, the following service IDs are supported: * - // `oauth2.googleapis.com` (Google Identity for iOS) Only the top-level - // resources are supported for each of the services. The resources must - // belong to the service specified and `resource_name` should be - // formatted as: * `oauthClients/{oauth_client_id}` (Google Identity for - // iOS) + // urce_policy_id} ``` Note that the `service_id` element must be a + // supported service ID. Currently, the following service IDs are + // supported: * `oauth2.googleapis.com` (Google Identity for iOS) ResourcePolicy *GoogleFirebaseAppcheckV1betaResourcePolicy `json:"resourcePolicy,omitempty"` // UpdateMask: Required. A comma-separated list of names of fields in @@ -5492,8 +5480,8 @@ func (r *ProjectsAppsAppAttestConfigService) Patch(name string, googlefirebaseap } // UpdateMask sets the optional parameter "updateMask": Required. A -// comma-separated list of names of fields in the AppAttestConfig Gets -// to update. Example: `token_ttl`. +// comma-separated list of names of fields in the AppAttestConfig to +// update. Example: `token_ttl`. func (c *ProjectsAppsAppAttestConfigPatchCall) UpdateMask(updateMask string) *ProjectsAppsAppAttestConfigPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -5608,7 +5596,7 @@ func (c *ProjectsAppsAppAttestConfigPatchCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "updateMask": { - // "description": "Required. A comma-separated list of names of fields in the AppAttestConfig Gets to update. Example: `token_ttl`.", + // "description": "Required. A comma-separated list of names of fields in the AppAttestConfig to update. Example: `token_ttl`.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -6787,8 +6775,8 @@ func (r *ProjectsAppsDeviceCheckConfigService) Patch(name string, googlefirebase } // UpdateMask sets the optional parameter "updateMask": Required. A -// comma-separated list of names of fields in the DeviceCheckConfig Gets -// to update. Example: `key_id,private_key`. +// comma-separated list of names of fields in the DeviceCheckConfig to +// update. Example: `key_id,private_key`. func (c *ProjectsAppsDeviceCheckConfigPatchCall) UpdateMask(updateMask string) *ProjectsAppsDeviceCheckConfigPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -6903,7 +6891,7 @@ func (c *ProjectsAppsDeviceCheckConfigPatchCall) Do(opts ...googleapi.CallOption // "type": "string" // }, // "updateMask": { - // "description": "Required. A comma-separated list of names of fields in the DeviceCheckConfig Gets to update. Example: `key_id,private_key`.", + // "description": "Required. A comma-separated list of names of fields in the DeviceCheckConfig to update. Example: `key_id,private_key`.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -7272,8 +7260,8 @@ func (r *ProjectsAppsPlayIntegrityConfigService) Patch(name string, googlefireba } // UpdateMask sets the optional parameter "updateMask": Required. A -// comma-separated list of names of fields in the PlayIntegrityConfig -// Gets to update. Example: `token_ttl`. +// comma-separated list of names of fields in the PlayIntegrityConfig to +// update. Example: `token_ttl`. func (c *ProjectsAppsPlayIntegrityConfigPatchCall) UpdateMask(updateMask string) *ProjectsAppsPlayIntegrityConfigPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -7390,7 +7378,7 @@ func (c *ProjectsAppsPlayIntegrityConfigPatchCall) Do(opts ...googleapi.CallOpti // "type": "string" // }, // "updateMask": { - // "description": "Required. A comma-separated list of names of fields in the PlayIntegrityConfig Gets to update. Example: `token_ttl`.", + // "description": "Required. A comma-separated list of names of fields in the PlayIntegrityConfig to update. Example: `token_ttl`.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -9221,8 +9209,8 @@ func (r *ProjectsAppsSafetyNetConfigService) Patch(name string, googlefirebaseap } // UpdateMask sets the optional parameter "updateMask": Required. A -// comma-separated list of names of fields in the SafetyNetConfig Gets -// to update. Example: `token_ttl`. +// comma-separated list of names of fields in the SafetyNetConfig to +// update. Example: `token_ttl`. func (c *ProjectsAppsSafetyNetConfigPatchCall) UpdateMask(updateMask string) *ProjectsAppsSafetyNetConfigPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -9338,7 +9326,7 @@ func (c *ProjectsAppsSafetyNetConfigPatchCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "updateMask": { - // "description": "Required. A comma-separated list of names of fields in the SafetyNetConfig Gets to update. Example: `token_ttl`.", + // "description": "Required. A comma-separated list of names of fields in the SafetyNetConfig to update. Example: `token_ttl`.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -10052,7 +10040,7 @@ type ProjectsServicesResourcePoliciesBatchUpdateCall struct { // BatchUpdate: Atomically updates the specified ResourcePolicy // configurations. // -// - parent: The parent project name and the service, in the format ``` +// - parent: The parent service name, in the format ``` // projects/{project_number}/services/{service_id} ``` The parent // collection in the `name` field of any resource being updated must // match this field, or the entire batch fails. @@ -10166,7 +10154,7 @@ func (c *ProjectsServicesResourcePoliciesBatchUpdateCall) Do(opts ...googleapi.C // ], // "parameters": { // "parent": { - // "description": "Required. The parent project name and the service, in the format ``` projects/{project_number}/services/{service_id} ``` The parent collection in the `name` field of any resource being updated must match this field, or the entire batch fails.", + // "description": "Required. The parent service name, in the format ``` projects/{project_number}/services/{service_id} ``` The parent collection in the `name` field of any resource being updated must match this field, or the entire batch fails.", // "location": "path", // "pattern": "^projects/[^/]+/services/[^/]+$", // "required": true, @@ -10353,7 +10341,7 @@ type ProjectsServicesResourcePoliciesDeleteCall struct { // - name: The relative resource name of the ResourcePolicy to delete, // in the format: ``` // projects/{project_number}/services/{service_id}/resourcePolicies/{re -// source_name} ```. +// source_policy_id} ```. func (r *ProjectsServicesResourcePoliciesService) Delete(name string) *ProjectsServicesResourcePoliciesDeleteCall { c := &ProjectsServicesResourcePoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -10362,9 +10350,12 @@ func (r *ProjectsServicesResourcePoliciesService) Delete(name string) *ProjectsS // Etag sets the optional parameter "etag": The checksum to be validated // against the current ResourcePolicy, to ensure the client has an -// up-to-date value before proceeding. The user can obtain this from the -// ResourcePolicy object that they last received. This etag is strongly -// validated. +// up-to-date value before proceeding. This checksum is computed by the +// server based on the values of fields in the ResourcePolicy object, +// and can be obtained from the ResourcePolicy object received from the +// last CreateResourcePolicy, GetResourcePolicy, ListResourcePolicies, +// UpdateResourcePolicy, or BatchUpdateResourcePolicies call. This etag +// is strongly validated as defined by RFC 7232. func (c *ProjectsServicesResourcePoliciesDeleteCall) Etag(etag string) *ProjectsServicesResourcePoliciesDeleteCall { c.urlParams_.Set("etag", etag) return c @@ -10465,12 +10456,12 @@ func (c *ProjectsServicesResourcePoliciesDeleteCall) Do(opts ...googleapi.CallOp // ], // "parameters": { // "etag": { - // "description": "The checksum to be validated against the current ResourcePolicy, to ensure the client has an up-to-date value before proceeding. The user can obtain this from the ResourcePolicy object that they last received. This etag is strongly validated.", + // "description": "The checksum to be validated against the current ResourcePolicy, to ensure the client has an up-to-date value before proceeding. This checksum is computed by the server based on the values of fields in the ResourcePolicy object, and can be obtained from the ResourcePolicy object received from the last CreateResourcePolicy, GetResourcePolicy, ListResourcePolicies, UpdateResourcePolicy, or BatchUpdateResourcePolicies call. This etag is strongly validated as defined by RFC 7232.", // "location": "query", // "type": "string" // }, // "name": { - // "description": "Required. The relative resource name of the ResourcePolicy to delete, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_name} ```", + // "description": "Required. The relative resource name of the ResourcePolicy to delete, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ```", // "location": "path", // "pattern": "^projects/[^/]+/services/[^/]+/resourcePolicies/[^/]+$", // "required": true, @@ -10659,9 +10650,12 @@ type ProjectsServicesResourcePoliciesListCall struct { // List: Lists all ResourcePolicy configurations for the specified // project and service. // -// - parent: The relative resource name of the parent project and -// service for which to list each associated ResourcePolicy, in the -// format: ``` projects/{project_number}/services/{service_name} ```. +// - parent: The relative resource name of the parent service for which +// to list each associated ResourcePolicy, in the format: ``` +// projects/{project_number}/services/{service_id} ``` Note that the +// `service_id` element must be a supported service ID. Currently, the +// following service IDs are supported: * `oauth2.googleapis.com` +// (Google Identity for iOS). func (r *ProjectsServicesResourcePoliciesService) List(parent string) *ProjectsServicesResourcePoliciesListCall { c := &ProjectsServicesResourcePoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -10685,10 +10679,10 @@ func (c *ProjectsServicesResourcePoliciesListCall) Filter(filter string) *Projec } // PageSize sets the optional parameter "pageSize": The maximum number -// of ResourcePolicys to return in the response. Only explicitly -// configured policies are returned. The server may return fewer than -// this at its own discretion. If no value is specified (or too large a -// value is specified), the server will impose its own limit. +// of ResourcePolicy objects to return in the response. The server may +// return fewer than this at its own discretion. If no value is +// specified (or too large a value is specified), the server will impose +// its own limit. func (c *ProjectsServicesResourcePoliciesListCall) PageSize(pageSize int64) *ProjectsServicesResourcePoliciesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -10696,10 +10690,10 @@ func (c *ProjectsServicesResourcePoliciesListCall) PageSize(pageSize int64) *Pro // PageToken sets the optional parameter "pageToken": Token returned // from a previous call to ListResourcePolicies indicating where in the -// set of ResourcePolicys to resume listing. Provide this to retrieve -// the subsequent page. When paginating, all other parameters provided -// to ListResourcePolicies must match the call that provided the page -// token; if they do not match, the result is undefined. +// set of ResourcePolicy objects to resume listing. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to ListResourcePolicies must match the call that provided +// the page token; if they do not match, the result is undefined. func (c *ProjectsServicesResourcePoliciesListCall) PageToken(pageToken string) *ProjectsServicesResourcePoliciesListCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -10821,18 +10815,18 @@ func (c *ProjectsServicesResourcePoliciesListCall) Do(opts ...googleapi.CallOpti // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of ResourcePolicys to return in the response. Only explicitly configured policies are returned. The server may return fewer than this at its own discretion. If no value is specified (or too large a value is specified), the server will impose its own limit.", + // "description": "The maximum number of ResourcePolicy objects to return in the response. The server may return fewer than this at its own discretion. If no value is specified (or too large a value is specified), the server will impose its own limit.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Token returned from a previous call to ListResourcePolicies indicating where in the set of ResourcePolicys to resume listing. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListResourcePolicies must match the call that provided the page token; if they do not match, the result is undefined.", + // "description": "Token returned from a previous call to ListResourcePolicies indicating where in the set of ResourcePolicy objects to resume listing. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListResourcePolicies must match the call that provided the page token; if they do not match, the result is undefined.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The relative resource name of the parent project and service for which to list each associated ResourcePolicy, in the format: ``` projects/{project_number}/services/{service_name} ```", + // "description": "Required. The relative resource name of the parent service for which to list each associated ResourcePolicy, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS)", // "location": "path", // "pattern": "^projects/[^/]+/services/[^/]+$", // "required": true,