diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index df624b9d087..6f693a6536c 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -450,6 +450,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "upload": { + "description": "Create a longrunning conversation upload operation. This method differs from CreateConversation by allowing audio transcription and optional DLP redaction.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:upload", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.conversations.upload", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the conversation.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/conversations:upload", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1UploadConversationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -1356,7 +1384,7 @@ } } }, - "revision": "20230312", + "revision": "20230330", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -3209,6 +3237,21 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1RedactionConfig": { + "description": "DLP resources used for redaction while ingesting conversations.", + "id": "GoogleCloudContactcenterinsightsV1RedactionConfig", + "properties": { + "deidentifyTemplate": { + "description": "The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}`", + "type": "string" + }, + "inspectTemplate": { + "description": "The fully-qualified DLP inspect template resource name. Format: `projects/{project}/inspectTemplates/{template}`", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1RuntimeAnnotation": { "description": "An annotation that was generated during the customer and agent interaction.", "id": "GoogleCloudContactcenterinsightsV1RuntimeAnnotation", @@ -3308,6 +3351,10 @@ "description": "A map that maps a notification trigger to a Pub/Sub topic. Each time a specified trigger occurs, Insights will notify the corresponding Pub/Sub topic. Keys are notification triggers. Supported keys are: * \"all-triggers\": Notify each time any of the supported triggers occurs. * \"create-analysis\": Notify each time an analysis is created. * \"create-conversation\": Notify each time a conversation is created. * \"export-insights-data\": Notify each time an export is complete. * \"update-conversation\": Notify each time a conversation is updated via UpdateConversation. Values are Pub/Sub topics. The format of each Pub/Sub topic is: projects/{project}/topics/{topic}", "type": "object" }, + "redactionConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1RedactionConfig", + "description": "Default DLP redaction resources to be applied while ingesting conversations." + }, "updateTime": { "description": "Output only. The time at which the settings were last updated.", "format": "google-datetime", @@ -3438,6 +3485,63 @@ "properties": {}, "type": "object" }, + "GoogleCloudContactcenterinsightsV1UploadConversationMetadata": { + "description": "The metadata for an UploadConversation operation.", + "id": "GoogleCloudContactcenterinsightsV1UploadConversationMetadata", + "properties": { + "analysisOperation": { + "description": "Output only. The operation name for a successfully created analysis operation, if any.", + "readOnly": true, + "type": "string" + }, + "appliedRedactionConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1RedactionConfig", + "description": "Output only. The redaction config applied to the uploaded conversation.", + "readOnly": true + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1UploadConversationRequest", + "description": "Output only. The original request.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1UploadConversationRequest": { + "description": "Request to upload a conversation.", + "id": "GoogleCloudContactcenterinsightsV1UploadConversationRequest", + "properties": { + "conversation": { + "$ref": "GoogleCloudContactcenterinsightsV1Conversation", + "description": "Required. The conversation resource to create." + }, + "conversationId": { + "description": "Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the conversation.", + "type": "string" + }, + "redactionConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1RedactionConfig", + "description": "Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings." + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1View": { "description": "The View resource.", "id": "GoogleCloudContactcenterinsightsV1View", @@ -3469,6 +3573,117 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1Analysis": { + "description": "The analysis resource.", + "id": "GoogleCloudContactcenterinsightsV1alpha1Analysis", + "properties": { + "analysisResult": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnalysisResult", + "description": "Output only. The result of the analysis, which is populated when the analysis finishes.", + "readOnly": true + }, + "annotatorSelector": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector", + "description": "To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run." + }, + "createTime": { + "description": "Output only. The time at which the analysis was created, which occurs when the long-running operation completes.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Immutable. The resource name of the analysis. Format: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}", + "type": "string" + }, + "requestTime": { + "description": "Output only. The time at which the analysis was requested.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1AnalysisResult": { + "description": "The result of an analysis.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AnalysisResult", + "properties": { + "callAnalysisMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata", + "description": "Call-specific metadata created by the analysis." + }, + "endTime": { + "description": "The time at which the analysis ended.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata": { + "description": "Call-specific metadata created during analysis.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata", + "properties": { + "annotations": { + "description": "A list of call annotations that apply to this call.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1CallAnnotation" + }, + "type": "array" + }, + "entities": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1Entity" + }, + "description": "All the entities in the call.", + "type": "object" + }, + "intents": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1Intent" + }, + "description": "All the matched intents in the call.", + "type": "object" + }, + "issueModelResult": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1IssueModelResult", + "description": "Overall conversation-level issue modeling result." + }, + "phraseMatchers": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData" + }, + "description": "All the matched phrase matchers in the call.", + "type": "object" + }, + "sentiments": { + "description": "Overall conversation-level sentiment for each channel of the call.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary": { + "description": "A point in a conversation that marks the start or the end of an annotation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary", + "properties": { + "transcriptIndex": { + "description": "The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero.", + "format": "int32", + "type": "integer" + }, + "wordIndex": { + "description": "The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector": { "description": "Selector of all available annotators and phrase matchers to run.", "id": "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector", @@ -3518,6 +3733,72 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback": { + "description": "The feedback that the customer has about a certain answer in the conversation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback", + "properties": { + "clicked": { + "description": "Indicates whether an answer or item was clicked by the human agent.", + "type": "boolean" + }, + "correctnessLevel": { + "description": "The correctness level of an answer.", + "enum": [ + "CORRECTNESS_LEVEL_UNSPECIFIED", + "NOT_CORRECT", + "PARTIALLY_CORRECT", + "FULLY_CORRECT" + ], + "enumDescriptions": [ + "Correctness level unspecified.", + "Answer is totally wrong.", + "Answer is partially correct.", + "Answer is fully correct." + ], + "type": "string" + }, + "displayed": { + "description": "Indicates whether an answer or item was displayed to the human agent in the agent desktop UI.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData": { + "description": "Agent Assist Article Suggestion data.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData", + "properties": { + "confidenceScore": { + "description": "The system's confidence score that this article is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).", + "format": "float", + "type": "number" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Map that contains metadata about the Article Suggestion and the document that it originates from.", + "type": "object" + }, + "queryRecord": { + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", + "type": "string" + }, + "source": { + "description": "The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}", + "type": "string" + }, + "title": { + "description": "Article title.", + "type": "string" + }, + "uri": { + "description": "Article URI.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata": { "description": "The metadata for a bulk analyze conversations operation.", "id": "GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata", @@ -3595,33 +3876,391 @@ }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata": { - "description": "Metadata for a create analysis operation.", - "id": "GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata", + "GoogleCloudContactcenterinsightsV1alpha1CallAnnotation": { + "description": "A piece of metadata that applies to a window of a call.", + "id": "GoogleCloudContactcenterinsightsV1alpha1CallAnnotation", "properties": { - "annotatorSelector": { - "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector", - "description": "Output only. The annotator selector used for the analysis (if any).", - "readOnly": true + "annotationEndBoundary": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary", + "description": "The boundary in the conversation where the annotation ends, inclusive." }, - "conversation": { - "description": "Output only. The Conversation that this Analysis Operation belongs to.", - "readOnly": true, - "type": "string" + "annotationStartBoundary": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary", + "description": "The boundary in the conversation where the annotation starts, inclusive." }, - "createTime": { - "description": "Output only. The time the operation was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" + "channelTag": { + "description": "The channel of the audio where the annotation occurs. For single-channel audio, this field is not populated.", + "format": "int32", + "type": "integer" }, - "endTime": { - "description": "Output only. The time the operation finished running.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - } - }, + "entityMentionData": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1EntityMentionData", + "description": "Data specifying an entity mention." + }, + "holdData": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1HoldData", + "description": "Data specifying a hold." + }, + "intentMatchData": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1IntentMatchData", + "description": "Data specifying an intent match." + }, + "interruptionData": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1InterruptionData", + "description": "Data specifying an interruption." + }, + "issueMatchData": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1IssueMatchData", + "description": "Data specifying an issue match." + }, + "phraseMatchData": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData", + "description": "Data specifying a phrase match." + }, + "sentimentData": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SentimentData", + "description": "Data specifying sentiment." + }, + "silenceData": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SilenceData", + "description": "Data specifying silence." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1Conversation": { + "description": "The conversation resource.", + "id": "GoogleCloudContactcenterinsightsV1alpha1Conversation", + "properties": { + "agentId": { + "description": "An opaque, user-specified string representing the human agent who handled the conversation.", + "type": "string" + }, + "callMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata", + "description": "Call-specific metadata." + }, + "createTime": { + "description": "Output only. The time at which the conversation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "dataSource": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource", + "description": "The source of the audio and transcription for the conversation." + }, + "dialogflowIntents": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent" + }, + "description": "Output only. All the matched Dialogflow intents in the call. The key corresponds to a Dialogflow intent, format: projects/{project}/agent/{agent}/intents/{intent}", + "readOnly": true, + "type": "object" + }, + "duration": { + "description": "Output only. The duration of the conversation.", + "format": "google-duration", + "readOnly": true, + "type": "string" + }, + "expireTime": { + "description": "The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted.", + "format": "google-datetime", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry.", + "type": "object" + }, + "languageCode": { + "description": "A user-specified language code for the conversation.", + "type": "string" + }, + "latestAnalysis": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1Analysis", + "description": "Output only. The conversation's latest analysis, if one exists.", + "readOnly": true + }, + "medium": { + "description": "Immutable. The conversation medium, if unspecified will default to PHONE_CALL.", + "enum": [ + "MEDIUM_UNSPECIFIED", + "PHONE_CALL", + "CHAT" + ], + "enumDescriptions": [ + "Default value, if unspecified will default to PHONE_CALL.", + "The format for conversations that took place over the phone.", + "The format for conversations that took place over chat." + ], + "type": "string" + }, + "name": { + "description": "Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation}", + "type": "string" + }, + "obfuscatedUserId": { + "description": "Obfuscated user ID which the customer sent to us.", + "type": "string" + }, + "runtimeAnnotations": { + "description": "Output only. The annotations that were generated during the customer and agent interaction.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation" + }, + "readOnly": true, + "type": "array" + }, + "startTime": { + "description": "The time at which the conversation started.", + "format": "google-datetime", + "type": "string" + }, + "transcript": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript", + "description": "Output only. The conversation transcript.", + "readOnly": true + }, + "ttl": { + "description": "Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time.", + "format": "google-duration", + "type": "string" + }, + "turnCount": { + "description": "Output only. The number of turns in the conversation.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "updateTime": { + "description": "Output only. The most recent time at which the conversation was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata": { + "description": "Call-specific metadata.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata", + "properties": { + "agentChannel": { + "description": "The audio channel that contains the agent.", + "format": "int32", + "type": "integer" + }, + "customerChannel": { + "description": "The audio channel that contains the customer.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource": { + "description": "The conversation source, which is a combination of transcript and audio.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource", + "properties": { + "dialogflowSource": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1DialogflowSource", + "description": "The source when the conversation comes from Dialogflow." + }, + "gcsSource": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1GcsSource", + "description": "A Cloud Storage location specification for the audio and transcript." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment": { + "description": "One channel of conversation-level sentiment data.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment", + "properties": { + "channelTag": { + "description": "The channel of the audio that the data applies to.", + "format": "int32", + "type": "integer" + }, + "sentimentData": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SentimentData", + "description": "Data specifying sentiment." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant": { + "description": "The call participant speaking for a given utterance.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant", + "properties": { + "dialogflowParticipant": { + "description": "Deprecated. Use `dialogflow_participant_name` instead. The name of the Dialogflow participant. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}", + "type": "string" + }, + "dialogflowParticipantName": { + "description": "The name of the participant provided by Dialogflow. Format: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}", + "type": "string" + }, + "obfuscatedExternalUserId": { + "description": "Obfuscated user ID from Dialogflow.", + "type": "string" + }, + "role": { + "description": "The role of the participant.", + "enum": [ + "ROLE_UNSPECIFIED", + "HUMAN_AGENT", + "AUTOMATED_AGENT", + "END_USER", + "ANY_AGENT" + ], + "enumDescriptions": [ + "Participant's role is not set.", + "Participant is a human agent.", + "Participant is an automated agent.", + "Participant is an end user who conversed with the contact center.", + "Participant is either a human or automated agent." + ], + "type": "string" + }, + "userId": { + "description": "A user-specified ID representing the participant.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript": { + "description": "A message representing the transcript of a conversation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript", + "properties": { + "transcriptSegments": { + "description": "A list of sequential transcript segments that comprise the conversation.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment": { + "description": "A segment of a full transcript.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment", + "properties": { + "channelTag": { + "description": "For conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel. For audioChannelCount = N, its output values can range from '1' to 'N'. A channel tag of 0 indicates that the audio is mono.", + "format": "int32", + "type": "integer" + }, + "confidence": { + "description": "A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A default value of 0.0 indicates that the value is unset.", + "format": "float", + "type": "number" + }, + "dialogflowSegmentMetadata": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata", + "description": "CCAI metadata relating to the current transcript segment." + }, + "languageCode": { + "description": "The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: \"en-US\".", + "type": "string" + }, + "messageTime": { + "description": "The time that the message occurred, if provided.", + "format": "google-datetime", + "type": "string" + }, + "segmentParticipant": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant", + "description": "The participant of this segment." + }, + "sentiment": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SentimentData", + "description": "The sentiment for this transcript segment." + }, + "text": { + "description": "The text of this segment.", + "type": "string" + }, + "words": { + "description": "A list of the word-specific information for each word in the segment.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata": { + "description": "Metadata from Dialogflow relating to the current transcript segment.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata", + "properties": { + "smartReplyAllowlistCovered": { + "description": "Whether the transcript segment was covered under the configured smart reply allowlist in Agent Assist.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo": { + "description": "Word-level info for words in a transcript.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo", + "properties": { + "confidence": { + "description": "A confidence estimate between 0.0 and 1.0 of the fidelity of this word. A default value of 0.0 indicates that the value is unset.", + "format": "float", + "type": "number" + }, + "endOffset": { + "description": "Time offset of the end of this word relative to the beginning of the total conversation.", + "format": "google-duration", + "type": "string" + }, + "startOffset": { + "description": "Time offset of the start of this word relative to the beginning of the total conversation.", + "format": "google-duration", + "type": "string" + }, + "word": { + "description": "The word itself. Includes punctuation marks that surround the word.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata": { + "description": "Metadata for a create analysis operation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata", + "properties": { + "annotatorSelector": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector", + "description": "Output only. The annotator selector used for the analysis (if any).", + "readOnly": true + }, + "conversation": { + "description": "Output only. The Conversation that this Analysis Operation belongs to.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, "type": "object" }, "GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata": { @@ -3736,6 +4375,139 @@ "properties": {}, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent": { + "description": "The data for a Dialogflow intent. Represents a detected intent in the conversation, e.g. MAKES_PROMISE.", + "id": "GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent", + "properties": { + "displayName": { + "description": "The human-readable name of the intent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData": { + "description": "Dialogflow interaction data.", + "id": "GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData", + "properties": { + "confidence": { + "description": "The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (completely certain).", + "format": "float", + "type": "number" + }, + "dialogflowIntentId": { + "description": "The Dialogflow intent resource path. Format: projects/{project}/agent/{agent}/intents/{intent}", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1DialogflowSource": { + "description": "A Dialogflow source of conversation data.", + "id": "GoogleCloudContactcenterinsightsV1alpha1DialogflowSource", + "properties": { + "audioUri": { + "description": "Cloud Storage URI that points to a file that contains the conversation audio.", + "type": "string" + }, + "dialogflowConversation": { + "description": "Output only. The name of the Dialogflow conversation that this conversation resource is derived from. Format: projects/{project}/locations/{location}/conversations/{conversation}", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1Entity": { + "description": "The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location.", + "id": "GoogleCloudContactcenterinsightsV1alpha1Entity", + "properties": { + "displayName": { + "description": "The representative name for the entity.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the metadata associated with other entity types, see the Type table below.", + "type": "object" + }, + "salience": { + "description": "The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.", + "format": "float", + "type": "number" + }, + "sentiment": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SentimentData", + "description": "The aggregate sentiment expressed for this entity in the conversation." + }, + "type": { + "description": "The entity type.", + "enum": [ + "TYPE_UNSPECIFIED", + "PERSON", + "LOCATION", + "ORGANIZATION", + "EVENT", + "WORK_OF_ART", + "CONSUMER_GOOD", + "OTHER", + "PHONE_NUMBER", + "ADDRESS", + "DATE", + "NUMBER", + "PRICE" + ], + "enumDescriptions": [ + "Unspecified.", + "Person.", + "Location.", + "Organization.", + "Event.", + "Artwork.", + "Consumer product.", + "Other types of entities.", + "Phone number. The metadata lists the phone number (formatted according to local convention), plus whichever additional elements appear in the text: * `number` - The actual number, broken down into sections according to local convention. * `national_prefix` - Country code, if detected. * `area_code` - Region or area code, if detected. * `extension` - Phone extension (to be dialed after connection), if detected.", + "Address. The metadata identifies the street number and locality plus whichever additional elements appear in the text: * `street_number` - Street number. * `locality` - City or town. * `street_name` - Street/route name, if detected. * `postal_code` - Postal code, if detected. * `country` - Country, if detected. * `broad_region` - Administrative area, such as the state, if detected. * `narrow_region` - Smaller administrative area, such as county, if detected. * `sublocality` - Used in Asian addresses to demark a district within a city, if detected.", + "Date. The metadata identifies the components of the date: * `year` - Four digit year, if detected. * `month` - Two digit month number, if detected. * `day` - Two digit day number, if detected.", + "Number. The metadata is the number itself.", + "Price. The metadata identifies the `value` and `currency`." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1EntityMentionData": { + "description": "The data for an entity mention annotation. This represents a mention of an `Entity` in the conversation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1EntityMentionData", + "properties": { + "entityUniqueId": { + "description": "The key of this entity in conversation entities. Can be used to retrieve the exact `Entity` this mention is attached to.", + "type": "string" + }, + "sentiment": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SentimentData", + "description": "Sentiment expressed for this mention of the entity." + }, + "type": { + "description": "The type of the entity mention.", + "enum": [ + "MENTION_TYPE_UNSPECIFIED", + "PROPER", + "COMMON" + ], + "enumDescriptions": [ + "Unspecified.", + "Proper noun.", + "Common noun (or noun compound)." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata": { "description": "Metadata for an export insights operation.", "id": "GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata", @@ -3803,28 +4575,84 @@ }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination": { - "description": "A BigQuery Table Reference.", - "id": "GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination", + "GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination": { + "description": "A BigQuery Table Reference.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination", + "properties": { + "dataset": { + "description": "Required. The name of the BigQuery dataset that the snapshot result should be exported to. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.", + "type": "string" + }, + "projectId": { + "description": "A project ID or number. If specified, then export will attempt to write data to this project instead of the resource project. Otherwise, the resource project will be used.", + "type": "string" + }, + "table": { + "description": "The BigQuery table name to which the insights data should be written. If this table does not exist, the export call returns an INVALID_ARGUMENT error.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse": { + "description": "Response for an export insights operation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData": { + "description": "Agent Assist frequently-asked-question answer data.", + "id": "GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData", + "properties": { + "answer": { + "description": "The piece of text from the `source` knowledge base document.", + "type": "string" + }, + "confidenceScore": { + "description": "The system's confidence score that this answer is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).", + "format": "float", + "type": "number" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Map that contains metadata about the FAQ answer and the document that it originates from.", + "type": "object" + }, + "queryRecord": { + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", + "type": "string" + }, + "question": { + "description": "The corresponding FAQ question.", + "type": "string" + }, + "source": { + "description": "The knowledge document that this answer was extracted from. Format: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1GcsSource": { + "description": "A Cloud Storage source of conversation data.", + "id": "GoogleCloudContactcenterinsightsV1alpha1GcsSource", "properties": { - "dataset": { - "description": "Required. The name of the BigQuery dataset that the snapshot result should be exported to. If this dataset does not exist, the export call returns an INVALID_ARGUMENT error.", - "type": "string" - }, - "projectId": { - "description": "A project ID or number. If specified, then export will attempt to write data to this project instead of the resource project. Otherwise, the resource project will be used.", + "audioUri": { + "description": "Cloud Storage URI that points to a file that contains the conversation audio.", "type": "string" }, - "table": { - "description": "The BigQuery table name to which the insights data should be written. If this table does not exist, the export call returns an INVALID_ARGUMENT error.", + "transcriptUri": { + "description": "Immutable. Cloud Storage URI that points to a file that contains the conversation transcript.", "type": "string" } }, "type": "object" }, - "GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse": { - "description": "Response for an export insights operation.", - "id": "GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse", + "GoogleCloudContactcenterinsightsV1alpha1HoldData": { + "description": "The data for a hold annotation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1HoldData", "properties": {}, "type": "object" }, @@ -3968,6 +4796,69 @@ "properties": {}, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1Intent": { + "description": "The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE.", + "id": "GoogleCloudContactcenterinsightsV1alpha1Intent", + "properties": { + "displayName": { + "description": "The human-readable name of the intent.", + "type": "string" + }, + "id": { + "description": "The unique identifier of the intent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1IntentMatchData": { + "description": "The data for an intent match. Represents an intent match for a text segment in the conversation. A text segment can be part of a sentence, a complete sentence, or an utterance with multiple sentences.", + "id": "GoogleCloudContactcenterinsightsV1alpha1IntentMatchData", + "properties": { + "intentUniqueId": { + "description": "The id of the matched intent. Can be used to retrieve the corresponding intent information.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1InterruptionData": { + "description": "The data for an interruption annotation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1InterruptionData", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1IssueAssignment": { + "description": "Information about the issue.", + "id": "GoogleCloudContactcenterinsightsV1alpha1IssueAssignment", + "properties": { + "displayName": { + "description": "Immutable. Display name of the assigned issue. This field is set at time of analyis and immutable since then.", + "type": "string" + }, + "issue": { + "description": "Resource name of the assigned issue.", + "type": "string" + }, + "score": { + "description": "Score indicating the likelihood of the issue assignment. currently bounded on [0,1].", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1IssueMatchData": { + "description": "The data for an issue match annotation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1IssueMatchData", + "properties": { + "issueAssignment": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1IssueAssignment", + "description": "Information about the issue's assignment." + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1IssueModel": { "description": "The issue model resource.", "id": "GoogleCloudContactcenterinsightsV1alpha1IssueModel", @@ -4106,6 +4997,179 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1IssueModelResult": { + "description": "Issue Modeling result on a conversation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1IssueModelResult", + "properties": { + "issueModel": { + "description": "Issue model that generates the result. Format: projects/{project}/locations/{location}/issueModels/{issue_model}", + "type": "string" + }, + "issues": { + "description": "All the matched issues.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1IssueAssignment" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData": { + "description": "The data for a matched phrase matcher. Represents information identifying a phrase matcher for a given match.", + "id": "GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData", + "properties": { + "displayName": { + "description": "The human-readable name of the phrase matcher.", + "type": "string" + }, + "phraseMatcher": { + "description": "The unique identifier (the resource name) of the phrase matcher.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1RedactionConfig": { + "description": "DLP resources used for redaction while ingesting conversations.", + "id": "GoogleCloudContactcenterinsightsV1alpha1RedactionConfig", + "properties": { + "deidentifyTemplate": { + "description": "The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}`", + "type": "string" + }, + "inspectTemplate": { + "description": "The fully-qualified DLP inspect template resource name. Format: `projects/{project}/inspectTemplates/{template}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation": { + "description": "An annotation that was generated during the customer and agent interaction.", + "id": "GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation", + "properties": { + "annotationId": { + "description": "The unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation}", + "type": "string" + }, + "answerFeedback": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback", + "description": "The feedback that the customer has about the answer in `data`." + }, + "articleSuggestion": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData", + "description": "Agent Assist Article Suggestion data." + }, + "createTime": { + "description": "The time at which this annotation was created.", + "format": "google-datetime", + "type": "string" + }, + "dialogflowInteraction": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData", + "description": "Dialogflow interaction data." + }, + "endBoundary": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary", + "description": "The boundary in the conversation where the annotation ends, inclusive." + }, + "faqAnswer": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData", + "description": "Agent Assist FAQ answer data." + }, + "smartComposeSuggestion": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData", + "description": "Agent Assist Smart Compose suggestion data." + }, + "smartReply": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1SmartReplyData", + "description": "Agent Assist Smart Reply data." + }, + "startBoundary": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary", + "description": "The boundary in the conversation where the annotation starts, inclusive." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1SentimentData": { + "description": "The data for a sentiment annotation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1SentimentData", + "properties": { + "magnitude": { + "description": "A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score.", + "format": "float", + "type": "number" + }, + "score": { + "description": "The sentiment score between -1.0 (negative) and 1.0 (positive).", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1SilenceData": { + "description": "The data for a silence annotation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1SilenceData", + "properties": {}, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData": { + "description": "Agent Assist Smart Compose suggestion data.", + "id": "GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData", + "properties": { + "confidenceScore": { + "description": "The system's confidence score that this suggestion is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).", + "format": "double", + "type": "number" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Map that contains metadata about the Smart Compose suggestion and the document from which it originates.", + "type": "object" + }, + "queryRecord": { + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", + "type": "string" + }, + "suggestion": { + "description": "The content of the suggestion.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1SmartReplyData": { + "description": "Agent Assist Smart Reply data.", + "id": "GoogleCloudContactcenterinsightsV1alpha1SmartReplyData", + "properties": { + "confidenceScore": { + "description": "The system's confidence score that this reply is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).", + "format": "double", + "type": "number" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Map that contains metadata about the Smart Reply and the document from which it originates.", + "type": "object" + }, + "queryRecord": { + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", + "type": "string" + }, + "reply": { + "description": "The content of the reply.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata": { "description": "Metadata for undeploying an issue model.", "id": "GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata", @@ -4146,6 +5210,63 @@ "properties": {}, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata": { + "description": "The metadata for an UploadConversation operation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata", + "properties": { + "analysisOperation": { + "description": "Output only. The operation name for a successfully created analysis operation, if any.", + "readOnly": true, + "type": "string" + }, + "appliedRedactionConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1RedactionConfig", + "description": "Output only. The redaction config applied to the uploaded conversation.", + "readOnly": true + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest", + "description": "Output only. The original request.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest": { + "description": "Request to upload a conversation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest", + "properties": { + "conversation": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1Conversation", + "description": "Required. The conversation resource to create." + }, + "conversationId": { + "description": "Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the conversation.", + "type": "string" + }, + "redactionConfig": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1RedactionConfig", + "description": "Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings." + } + }, + "type": "object" + }, "GoogleLongrunningListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "GoogleLongrunningListOperationsResponse", diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 41a80025303..01062fb25f4 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -3309,6 +3309,42 @@ func (s *GoogleCloudContactcenterinsightsV1PhraseMatcher) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1RedactionConfig: DLP resources used +// for redaction while ingesting conversations. +type GoogleCloudContactcenterinsightsV1RedactionConfig struct { + // DeidentifyTemplate: The fully-qualified DLP deidentify template + // resource name. Format: + // `projects/{project}/deidentifyTemplates/{template}` + DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"` + + // InspectTemplate: The fully-qualified DLP inspect template resource + // name. Format: `projects/{project}/inspectTemplates/{template}` + InspectTemplate string `json:"inspectTemplate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "DeidentifyTemplate") 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 *GoogleCloudContactcenterinsightsV1RedactionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1RedactionConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1RuntimeAnnotation: An annotation // that was generated during the customer and agent interaction. type GoogleCloudContactcenterinsightsV1RuntimeAnnotation struct { @@ -3459,6 +3495,10 @@ type GoogleCloudContactcenterinsightsV1Settings struct { // projects/{project}/topics/{topic} PubsubNotificationSettings map[string]string `json:"pubsubNotificationSettings,omitempty"` + // RedactionConfig: Default DLP redaction resources to be applied while + // ingesting conversations. + RedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"redactionConfig,omitempty"` + // UpdateTime: Output only. The time at which the settings were last // updated. UpdateTime string `json:"updateTime,omitempty"` @@ -3737,6 +3777,93 @@ func (s *GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest) MarshalJSO type GoogleCloudContactcenterinsightsV1UndeployIssueModelResponse struct { } +// GoogleCloudContactcenterinsightsV1UploadConversationMetadata: The +// metadata for an UploadConversation operation. +type GoogleCloudContactcenterinsightsV1UploadConversationMetadata struct { + // AnalysisOperation: Output only. The operation name for a successfully + // created analysis operation, if any. + AnalysisOperation string `json:"analysisOperation,omitempty"` + + // AppliedRedactionConfig: Output only. The redaction config applied to + // the uploaded conversation. + AppliedRedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"appliedRedactionConfig,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // Request: Output only. The original request. + Request *GoogleCloudContactcenterinsightsV1UploadConversationRequest `json:"request,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnalysisOperation") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "AnalysisOperation") 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 *GoogleCloudContactcenterinsightsV1UploadConversationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1UploadConversationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1UploadConversationRequest: Request +// to upload a conversation. +type GoogleCloudContactcenterinsightsV1UploadConversationRequest struct { + // Conversation: Required. The conversation resource to create. + Conversation *GoogleCloudContactcenterinsightsV1Conversation `json:"conversation,omitempty"` + + // ConversationId: Optional. A unique ID for the new conversation. This + // ID will become the final component of the conversation's resource + // name. If no ID is specified, a server-generated ID will be used. This + // value should be 4-64 characters and must match the regular expression + // `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + ConversationId string `json:"conversationId,omitempty"` + + // Parent: Required. The parent resource of the conversation. + Parent string `json:"parent,omitempty"` + + // RedactionConfig: Optional. DLP settings for transcript redaction. + // Optional, will default to the config specified in Settings. + RedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"redactionConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Conversation") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "Conversation") 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 *GoogleCloudContactcenterinsightsV1UploadConversationRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1UploadConversationRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1View: The View resource. type GoogleCloudContactcenterinsightsV1View struct { // CreateTime: Output only. The time at which this view was created. @@ -3783,6 +3910,170 @@ func (s *GoogleCloudContactcenterinsightsV1View) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContactcenterinsightsV1alpha1Analysis: The analysis +// resource. +type GoogleCloudContactcenterinsightsV1alpha1Analysis struct { + // AnalysisResult: Output only. The result of the analysis, which is + // populated when the analysis finishes. + AnalysisResult *GoogleCloudContactcenterinsightsV1alpha1AnalysisResult `json:"analysisResult,omitempty"` + + // AnnotatorSelector: To select the annotators to run and the phrase + // matchers to use (if any). If not specified, all annotators will be + // run. + AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"` + + // CreateTime: Output only. The time at which the analysis was created, + // which occurs when the long-running operation completes. + CreateTime string `json:"createTime,omitempty"` + + // Name: Immutable. The resource name of the analysis. Format: + // projects/{project}/locations/{location}/conversations/{conversation}/a + // nalyses/{analysis} + Name string `json:"name,omitempty"` + + // RequestTime: Output only. The time at which the analysis was + // requested. + RequestTime string `json:"requestTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnalysisResult") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "AnalysisResult") 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 *GoogleCloudContactcenterinsightsV1alpha1Analysis) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1Analysis + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1AnalysisResult: The result of +// an analysis. +type GoogleCloudContactcenterinsightsV1alpha1AnalysisResult struct { + // CallAnalysisMetadata: Call-specific metadata created by the analysis. + CallAnalysisMetadata *GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata `json:"callAnalysisMetadata,omitempty"` + + // EndTime: The time at which the analysis ended. + EndTime string `json:"endTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CallAnalysisMetadata") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. 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. "CallAnalysisMetadata") 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 *GoogleCloudContactcenterinsightsV1alpha1AnalysisResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnalysisResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMeta +// data: Call-specific metadata created during analysis. +type GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata struct { + // Annotations: A list of call annotations that apply to this call. + Annotations []*GoogleCloudContactcenterinsightsV1alpha1CallAnnotation `json:"annotations,omitempty"` + + // Entities: All the entities in the call. + Entities map[string]GoogleCloudContactcenterinsightsV1alpha1Entity `json:"entities,omitempty"` + + // Intents: All the matched intents in the call. + Intents map[string]GoogleCloudContactcenterinsightsV1alpha1Intent `json:"intents,omitempty"` + + // IssueModelResult: Overall conversation-level issue modeling result. + IssueModelResult *GoogleCloudContactcenterinsightsV1alpha1IssueModelResult `json:"issueModelResult,omitempty"` + + // PhraseMatchers: All the matched phrase matchers in the call. + PhraseMatchers map[string]GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData `json:"phraseMatchers,omitempty"` + + // Sentiments: Overall conversation-level sentiment for each channel of + // the call. + Sentiments []*GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment `json:"sentiments,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Annotations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "Annotations") 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 *GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary: A point +// in a conversation that marks the start or the end of an annotation. +type GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary struct { + // TranscriptIndex: The index in the sequence of transcribed pieces of + // the conversation where the boundary is located. This index starts at + // zero. + TranscriptIndex int64 `json:"transcriptIndex,omitempty"` + + // WordIndex: The word index of this boundary with respect to the first + // word in the transcript piece. This index starts at zero. + WordIndex int64 `json:"wordIndex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TranscriptIndex") to + // unconditionally include in API requests. By default, fields with + // empty or 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. "TranscriptIndex") 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 *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector: Selector // of all available annotators and phrase matchers to run. type GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector struct { @@ -3848,27 +4139,136 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector) MarshalJSON( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetada -// ta: The metadata for a bulk analyze conversations operation. -type GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata struct { - // CompletedAnalysesCount: The number of requested analyses that have - // completed successfully so far. - CompletedAnalysesCount int64 `json:"completedAnalysesCount,omitempty"` +// GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback: The feedback +// that the customer has about a certain answer in the conversation. +type GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback struct { + // Clicked: Indicates whether an answer or item was clicked by the human + // agent. + Clicked bool `json:"clicked,omitempty"` - // CreateTime: The time the operation was created. - CreateTime string `json:"createTime,omitempty"` + // CorrectnessLevel: The correctness level of an answer. + // + // Possible values: + // "CORRECTNESS_LEVEL_UNSPECIFIED" - Correctness level unspecified. + // "NOT_CORRECT" - Answer is totally wrong. + // "PARTIALLY_CORRECT" - Answer is partially correct. + // "FULLY_CORRECT" - Answer is fully correct. + CorrectnessLevel string `json:"correctnessLevel,omitempty"` - // EndTime: The time the operation finished running. - EndTime string `json:"endTime,omitempty"` + // Displayed: Indicates whether an answer or item was displayed to the + // human agent in the agent desktop UI. + Displayed bool `json:"displayed,omitempty"` - // FailedAnalysesCount: The number of requested analyses that have - // failed so far. - FailedAnalysesCount int64 `json:"failedAnalysesCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "Clicked") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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:"-"` - // Request: The original request for bulk analyze. - Request *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest `json:"request,omitempty"` + // NullFields is a list of field names (e.g. "Clicked") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. 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:"-"` +} - // TotalRequestedAnalysesCount: Total number of analyses requested. +func (s *GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData: Agent +// Assist Article Suggestion data. +type GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData struct { + // ConfidenceScore: The system's confidence score that this article is a + // good match for this conversation, ranging from 0.0 (completely + // uncertain) to 1.0 (completely certain). + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + + // Metadata: Map that contains metadata about the Article Suggestion and + // the document that it originates from. + Metadata map[string]string `json:"metadata,omitempty"` + + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} + QueryRecord string `json:"queryRecord,omitempty"` + + // Source: The knowledge document that this answer was extracted from. + // Format: + // projects/{project}/knowledgeBases/{knowledge_base}/documents/{document + // } + Source string `json:"source,omitempty"` + + // Title: Article title. + Title string `json:"title,omitempty"` + + // Uri: Article URI. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // 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. "ConfidenceScore") 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 *GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetada +// ta: The metadata for a bulk analyze conversations operation. +type GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata struct { + // CompletedAnalysesCount: The number of requested analyses that have + // completed successfully so far. + CompletedAnalysesCount int64 `json:"completedAnalysesCount,omitempty"` + + // CreateTime: The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // FailedAnalysesCount: The number of requested analyses that have + // failed so far. + FailedAnalysesCount int64 `json:"failedAnalysesCount,omitempty"` + + // Request: The original request for bulk analyze. + Request *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest `json:"request,omitempty"` + + // TotalRequestedAnalysesCount: Total number of analyses requested. // Computed by the number of conversations returned by `filter` // multiplied by `analysis_percentage` in the request. TotalRequestedAnalysesCount int64 `json:"totalRequestedAnalysesCount,omitempty"` @@ -3988,32 +4388,55 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRespons return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadat -// a: Metadata for a create analysis operation. -type GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata struct { - // AnnotatorSelector: Output only. The annotator selector used for the - // analysis (if any). - AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"` +// GoogleCloudContactcenterinsightsV1alpha1CallAnnotation: A piece of +// metadata that applies to a window of a call. +type GoogleCloudContactcenterinsightsV1alpha1CallAnnotation struct { + // AnnotationEndBoundary: The boundary in the conversation where the + // annotation ends, inclusive. + AnnotationEndBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"annotationEndBoundary,omitempty"` - // Conversation: Output only. The Conversation that this Analysis - // Operation belongs to. - Conversation string `json:"conversation,omitempty"` + // AnnotationStartBoundary: The boundary in the conversation where the + // annotation starts, inclusive. + AnnotationStartBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"annotationStartBoundary,omitempty"` - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` + // ChannelTag: The channel of the audio where the annotation occurs. For + // single-channel audio, this field is not populated. + ChannelTag int64 `json:"channelTag,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` + // EntityMentionData: Data specifying an entity mention. + EntityMentionData *GoogleCloudContactcenterinsightsV1alpha1EntityMentionData `json:"entityMentionData,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnnotatorSelector") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. 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. + // HoldData: Data specifying a hold. + HoldData *GoogleCloudContactcenterinsightsV1alpha1HoldData `json:"holdData,omitempty"` + + // IntentMatchData: Data specifying an intent match. + IntentMatchData *GoogleCloudContactcenterinsightsV1alpha1IntentMatchData `json:"intentMatchData,omitempty"` + + // InterruptionData: Data specifying an interruption. + InterruptionData *GoogleCloudContactcenterinsightsV1alpha1InterruptionData `json:"interruptionData,omitempty"` + + // IssueMatchData: Data specifying an issue match. + IssueMatchData *GoogleCloudContactcenterinsightsV1alpha1IssueMatchData `json:"issueMatchData,omitempty"` + + // PhraseMatchData: Data specifying a phrase match. + PhraseMatchData *GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData `json:"phraseMatchData,omitempty"` + + // SentimentData: Data specifying sentiment. + SentimentData *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentimentData,omitempty"` + + // SilenceData: Data specifying silence. + SilenceData *GoogleCloudContactcenterinsightsV1alpha1SilenceData `json:"silenceData,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AnnotationEndBoundary") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. 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. "AnnotatorSelector") to + // NullFields is a list of field names (e.g. "AnnotationEndBoundary") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -4023,25 +4446,95 @@ type GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata str NullFields []string `json:"-"` } -func (s *GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata +func (s *GoogleCloudContactcenterinsightsV1alpha1CallAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1CallAnnotation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata: -// Metadata for creating an issue model. -type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata struct { - // CreateTime: Output only. The time the operation was created. +// GoogleCloudContactcenterinsightsV1alpha1Conversation: The +// conversation resource. +type GoogleCloudContactcenterinsightsV1alpha1Conversation struct { + // AgentId: An opaque, user-specified string representing the human + // agent who handled the conversation. + AgentId string `json:"agentId,omitempty"` + + // CallMetadata: Call-specific metadata. + CallMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata `json:"callMetadata,omitempty"` + + // CreateTime: Output only. The time at which the conversation was + // created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` + // DataSource: The source of the audio and transcription for the + // conversation. + DataSource *GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource `json:"dataSource,omitempty"` - // Request: The original request for creation. - Request *GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest `json:"request,omitempty"` + // DialogflowIntents: Output only. All the matched Dialogflow intents in + // the call. The key corresponds to a Dialogflow intent, format: + // projects/{project}/agent/{agent}/intents/{intent} + DialogflowIntents map[string]GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent `json:"dialogflowIntents,omitempty"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // Duration: Output only. The duration of the conversation. + Duration string `json:"duration,omitempty"` + + // ExpireTime: The time at which this conversation should expire. After + // this time, the conversation data and any associated analyses will be + // deleted. + ExpireTime string `json:"expireTime,omitempty"` + + // Labels: A map for the user to specify any custom fields. A maximum of + // 20 labels per conversation is allowed, with a maximum of 256 + // characters per entry. + Labels map[string]string `json:"labels,omitempty"` + + // LanguageCode: A user-specified language code for the conversation. + LanguageCode string `json:"languageCode,omitempty"` + + // LatestAnalysis: Output only. The conversation's latest analysis, if + // one exists. + LatestAnalysis *GoogleCloudContactcenterinsightsV1alpha1Analysis `json:"latestAnalysis,omitempty"` + + // Medium: Immutable. The conversation medium, if unspecified will + // default to PHONE_CALL. + // + // Possible values: + // "MEDIUM_UNSPECIFIED" - Default value, if unspecified will default + // to PHONE_CALL. + // "PHONE_CALL" - The format for conversations that took place over + // the phone. + // "CHAT" - The format for conversations that took place over chat. + Medium string `json:"medium,omitempty"` + + // Name: Immutable. The resource name of the conversation. Format: + // projects/{project}/locations/{location}/conversations/{conversation} + Name string `json:"name,omitempty"` + + // ObfuscatedUserId: Obfuscated user ID which the customer sent to us. + ObfuscatedUserId string `json:"obfuscatedUserId,omitempty"` + + // RuntimeAnnotations: Output only. The annotations that were generated + // during the customer and agent interaction. + RuntimeAnnotations []*GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation `json:"runtimeAnnotations,omitempty"` + + // StartTime: The time at which the conversation started. + StartTime string `json:"startTime,omitempty"` + + // Transcript: Output only. The conversation transcript. + Transcript *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript `json:"transcript,omitempty"` + + // Ttl: Input only. The TTL for this resource. If specified, then this + // TTL will be used to calculate the expire time. + Ttl string `json:"ttl,omitempty"` + + // TurnCount: Output only. The number of turns in the conversation. + TurnCount int64 `json:"turnCount,omitempty"` + + // UpdateTime: Output only. The most recent time at which the + // conversation was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4049,7 +4542,7 @@ type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata struct { // 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 + // NullFields is a list of field names (e.g. "AgentId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -4058,22 +4551,22 @@ type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata struct { NullFields []string `json:"-"` } -func (s *GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata +func (s *GoogleCloudContactcenterinsightsV1alpha1Conversation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1Conversation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest: The -// request to create an issue model. -type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest struct { - // IssueModel: Required. The issue model to create. - IssueModel *GoogleCloudContactcenterinsightsV1alpha1IssueModel `json:"issueModel,omitempty"` +// GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata: +// Call-specific metadata. +type GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata struct { + // AgentChannel: The audio channel that contains the agent. + AgentChannel int64 `json:"agentChannel,omitempty"` - // Parent: Required. The parent resource of the issue model. - Parent string `json:"parent,omitempty"` + // CustomerChannel: The audio channel that contains the customer. + CustomerChannel int64 `json:"customerChannel,omitempty"` - // ForceSendFields is a list of field names (e.g. "IssueModel") to + // ForceSendFields is a list of field names (e.g. "AgentChannel") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4081,31 +4574,460 @@ type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IssueModel") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "AgentChannel") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. 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 *GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest +func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata: -// Metadata for deleting an issue model. -type GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata struct { - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` +// GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource: The +// conversation source, which is a combination of transcript and audio. +type GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource struct { + // DialogflowSource: The source when the conversation comes from + // Dialogflow. + DialogflowSource *GoogleCloudContactcenterinsightsV1alpha1DialogflowSource `json:"dialogflowSource,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` + // GcsSource: A Cloud Storage location specification for the audio and + // transcript. + GcsSource *GoogleCloudContactcenterinsightsV1alpha1GcsSource `json:"gcsSource,omitempty"` - // Request: The original request for deletion. + // ForceSendFields is a list of field names (e.g. "DialogflowSource") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "DialogflowSource") 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 *GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment: +// One channel of conversation-level sentiment data. +type GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment struct { + // ChannelTag: The channel of the audio that the data applies to. + ChannelTag int64 `json:"channelTag,omitempty"` + + // SentimentData: Data specifying sentiment. + SentimentData *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentimentData,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChannelTag") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "ChannelTag") 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 *GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant: The +// call participant speaking for a given utterance. +type GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant struct { + // DialogflowParticipant: Deprecated. Use `dialogflow_participant_name` + // instead. The name of the Dialogflow participant. Format: + // projects/{project}/locations/{location}/conversations/{conversation}/p + // articipants/{participant} + DialogflowParticipant string `json:"dialogflowParticipant,omitempty"` + + // DialogflowParticipantName: The name of the participant provided by + // Dialogflow. Format: + // projects/{project}/locations/{location}/conversations/{conversation}/p + // articipants/{participant} + DialogflowParticipantName string `json:"dialogflowParticipantName,omitempty"` + + // ObfuscatedExternalUserId: Obfuscated user ID from Dialogflow. + ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"` + + // Role: The role of the participant. + // + // Possible values: + // "ROLE_UNSPECIFIED" - Participant's role is not set. + // "HUMAN_AGENT" - Participant is a human agent. + // "AUTOMATED_AGENT" - Participant is an automated agent. + // "END_USER" - Participant is an end user who conversed with the + // contact center. + // "ANY_AGENT" - Participant is either a human or automated agent. + Role string `json:"role,omitempty"` + + // UserId: A user-specified ID representing the participant. + UserId string `json:"userId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DialogflowParticipant") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. 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. "DialogflowParticipant") 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 *GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript: A +// message representing the transcript of a conversation. +type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript struct { + // TranscriptSegments: A list of sequential transcript segments that + // comprise the conversation. + TranscriptSegments []*GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment `json:"transcriptSegments,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TranscriptSegments") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "TranscriptSegments") 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 *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscri +// ptSegment: A segment of a full transcript. +type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment struct { + // ChannelTag: For conversations derived from multi-channel audio, this + // is the channel number corresponding to the audio from that channel. + // For audioChannelCount = N, its output values can range from '1' to + // 'N'. A channel tag of 0 indicates that the audio is mono. + ChannelTag int64 `json:"channelTag,omitempty"` + + // Confidence: A confidence estimate between 0.0 and 1.0 of the fidelity + // of this segment. A default value of 0.0 indicates that the value is + // unset. + Confidence float64 `json:"confidence,omitempty"` + + // DialogflowSegmentMetadata: CCAI metadata relating to the current + // transcript segment. + DialogflowSegmentMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata `json:"dialogflowSegmentMetadata,omitempty"` + + // LanguageCode: The language code of this segment as a BCP-47 + // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: + // "en-US". + LanguageCode string `json:"languageCode,omitempty"` + + // MessageTime: The time that the message occurred, if provided. + MessageTime string `json:"messageTime,omitempty"` + + // SegmentParticipant: The participant of this segment. + SegmentParticipant *GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant `json:"segmentParticipant,omitempty"` + + // Sentiment: The sentiment for this transcript segment. + Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"` + + // Text: The text of this segment. + Text string `json:"text,omitempty"` + + // Words: A list of the word-specific information for each word in the + // segment. + Words []*GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo `json:"words,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChannelTag") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "ChannelTag") 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 *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscri +// ptSegmentDialogflowSegmentMetadata: Metadata from Dialogflow relating +// to the current transcript segment. +type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata struct { + // SmartReplyAllowlistCovered: Whether the transcript segment was + // covered under the configured smart reply allowlist in Agent Assist. + SmartReplyAllowlistCovered bool `json:"smartReplyAllowlistCovered,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "SmartReplyAllowlistCovered") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. 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. + // "SmartReplyAllowlistCovered") 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 *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscri +// ptSegmentWordInfo: Word-level info for words in a transcript. +type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo struct { + // Confidence: A confidence estimate between 0.0 and 1.0 of the fidelity + // of this word. A default value of 0.0 indicates that the value is + // unset. + Confidence float64 `json:"confidence,omitempty"` + + // EndOffset: Time offset of the end of this word relative to the + // beginning of the total conversation. + EndOffset string `json:"endOffset,omitempty"` + + // StartOffset: Time offset of the start of this word relative to the + // beginning of the total conversation. + StartOffset string `json:"startOffset,omitempty"` + + // Word: The word itself. Includes punctuation marks that surround the + // word. + Word string `json:"word,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Confidence") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "Confidence") 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 *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadat +// a: Metadata for a create analysis operation. +type GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata struct { + // AnnotatorSelector: Output only. The annotator selector used for the + // analysis (if any). + AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"` + + // Conversation: Output only. The Conversation that this Analysis + // Operation belongs to. + Conversation string `json:"conversation,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotatorSelector") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "AnnotatorSelector") 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 *GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata: +// Metadata for creating an issue model. +type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // Request: The original request for creation. + Request *GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest `json:"request,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // 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 *GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest: The +// request to create an issue model. +type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest struct { + // IssueModel: Required. The issue model to create. + IssueModel *GoogleCloudContactcenterinsightsV1alpha1IssueModel `json:"issueModel,omitempty"` + + // Parent: Required. The parent resource of the issue model. + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IssueModel") to + // 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. "IssueModel") 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 *GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata: +// Metadata for deleting an issue model. +type GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // Request: The original request for deletion. Request *GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest `json:"request,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to @@ -4195,13 +5117,269 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata) Marsh return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest: The -// request to deploy an issue model. -type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest struct { - // Name: Required. The issue model to deploy. - Name string `json:"name,omitempty"` +// GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest: The +// request to deploy an issue model. +type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest struct { + // Name: Required. The issue model to deploy. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "Name") 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 *GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse: The +// response to deploy an issue model. +type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent: The data +// for a Dialogflow intent. Represents a detected intent in the +// conversation, e.g. MAKES_PROMISE. +type GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent struct { + // DisplayName: The human-readable name of the intent. + DisplayName string `json:"displayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "DisplayName") 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 *GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData: +// Dialogflow interaction data. +type GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData struct { + // Confidence: The confidence of the match ranging from 0.0 (completely + // uncertain) to 1.0 (completely certain). + Confidence float64 `json:"confidence,omitempty"` + + // DialogflowIntentId: The Dialogflow intent resource path. Format: + // projects/{project}/agent/{agent}/intents/{intent} + DialogflowIntentId string `json:"dialogflowIntentId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Confidence") to + // 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. "Confidence") 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 *GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData + var s1 struct { + Confidence gensupport.JSONFloat64 `json:"confidence"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Confidence = float64(s1.Confidence) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1DialogflowSource: A +// Dialogflow source of conversation data. +type GoogleCloudContactcenterinsightsV1alpha1DialogflowSource struct { + // AudioUri: Cloud Storage URI that points to a file that contains the + // conversation audio. + AudioUri string `json:"audioUri,omitempty"` + + // DialogflowConversation: Output only. The name of the Dialogflow + // conversation that this conversation resource is derived from. Format: + // projects/{project}/locations/{location}/conversations/{conversation} + DialogflowConversation string `json:"dialogflowConversation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AudioUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "AudioUri") 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 *GoogleCloudContactcenterinsightsV1alpha1DialogflowSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1Entity: The data for an +// entity annotation. Represents a phrase in the conversation that is a +// known entity, such as a person, an organization, or location. +type GoogleCloudContactcenterinsightsV1alpha1Entity struct { + // DisplayName: The representative name for the entity. + DisplayName string `json:"displayName,omitempty"` + + // Metadata: Metadata associated with the entity. For most entity types, + // the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph + // MID (`mid`), if they are available. For the metadata associated with + // other entity types, see the Type table below. + Metadata map[string]string `json:"metadata,omitempty"` + + // Salience: The salience score associated with the entity in the [0, + // 1.0] range. The salience score for an entity provides information + // about the importance or centrality of that entity to the entire + // document text. Scores closer to 0 are less salient, while scores + // closer to 1.0 are highly salient. + Salience float64 `json:"salience,omitempty"` + + // Sentiment: The aggregate sentiment expressed for this entity in the + // conversation. + Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"` + + // Type: The entity type. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Unspecified. + // "PERSON" - Person. + // "LOCATION" - Location. + // "ORGANIZATION" - Organization. + // "EVENT" - Event. + // "WORK_OF_ART" - Artwork. + // "CONSUMER_GOOD" - Consumer product. + // "OTHER" - Other types of entities. + // "PHONE_NUMBER" - Phone number. The metadata lists the phone number + // (formatted according to local convention), plus whichever additional + // elements appear in the text: * `number` - The actual number, broken + // down into sections according to local convention. * `national_prefix` + // - Country code, if detected. * `area_code` - Region or area code, if + // detected. * `extension` - Phone extension (to be dialed after + // connection), if detected. + // "ADDRESS" - Address. The metadata identifies the street number and + // locality plus whichever additional elements appear in the text: * + // `street_number` - Street number. * `locality` - City or town. * + // `street_name` - Street/route name, if detected. * `postal_code` - + // Postal code, if detected. * `country` - Country, if detected. * + // `broad_region` - Administrative area, such as the state, if detected. + // * `narrow_region` - Smaller administrative area, such as county, if + // detected. * `sublocality` - Used in Asian addresses to demark a + // district within a city, if detected. + // "DATE" - Date. The metadata identifies the components of the date: + // * `year` - Four digit year, if detected. * `month` - Two digit month + // number, if detected. * `day` - Two digit day number, if detected. + // "NUMBER" - Number. The metadata is the number itself. + // "PRICE" - Price. The metadata identifies the `value` and + // `currency`. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "DisplayName") 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 *GoogleCloudContactcenterinsightsV1alpha1Entity) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1Entity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1Entity) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1Entity + var s1 struct { + Salience gensupport.JSONFloat64 `json:"salience"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Salience = float64(s1.Salience) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1EntityMentionData: The data +// for an entity mention annotation. This represents a mention of an +// `Entity` in the conversation. +type GoogleCloudContactcenterinsightsV1alpha1EntityMentionData struct { + // EntityUniqueId: The key of this entity in conversation entities. Can + // be used to retrieve the exact `Entity` this mention is attached to. + EntityUniqueId string `json:"entityUniqueId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // Sentiment: Sentiment expressed for this mention of the entity. + Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"` + + // Type: The type of the entity mention. + // + // Possible values: + // "MENTION_TYPE_UNSPECIFIED" - Unspecified. + // "PROPER" - Proper noun. + // "COMMON" - Common noun (or noun compound). + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityUniqueId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4209,26 +5387,22 @@ type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. 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. "EntityUniqueId") 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 *GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest +func (s *GoogleCloudContactcenterinsightsV1alpha1EntityMentionData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1EntityMentionData raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse: The -// response to deploy an issue model. -type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse struct { -} - // GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata: // Metadata for an export insights operation. type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata struct { @@ -4369,6 +5543,110 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQue type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse struct { } +// GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData: Agent Assist +// frequently-asked-question answer data. +type GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData struct { + // Answer: The piece of text from the `source` knowledge base document. + Answer string `json:"answer,omitempty"` + + // ConfidenceScore: The system's confidence score that this answer is a + // good match for this conversation, ranging from 0.0 (completely + // uncertain) to 1.0 (completely certain). + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + + // Metadata: Map that contains metadata about the FAQ answer and the + // document that it originates from. + Metadata map[string]string `json:"metadata,omitempty"` + + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} + QueryRecord string `json:"queryRecord,omitempty"` + + // Question: The corresponding FAQ question. + Question string `json:"question,omitempty"` + + // Source: The knowledge document that this answer was extracted from. + // Format: + // projects/{project}/knowledgeBases/{knowledge_base}/documents/{document + // }. + Source string `json:"source,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Answer") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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 *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1GcsSource: A Cloud Storage +// source of conversation data. +type GoogleCloudContactcenterinsightsV1alpha1GcsSource struct { + // AudioUri: Cloud Storage URI that points to a file that contains the + // conversation audio. + AudioUri string `json:"audioUri,omitempty"` + + // TranscriptUri: Immutable. Cloud Storage URI that points to a file + // that contains the conversation transcript. + TranscriptUri string `json:"transcriptUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AudioUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "AudioUri") 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 *GoogleCloudContactcenterinsightsV1alpha1GcsSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1GcsSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1HoldData: The data for a hold +// annotation. +type GoogleCloudContactcenterinsightsV1alpha1HoldData struct { +} + // GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata: // The metadata for an IngestConversations operation. type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata struct { @@ -4588,17 +5866,169 @@ type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscrip NullFields []string `json:"-"` } -func (s *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig +func (s *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse: +// The response to an IngestConversations operation. +type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1Intent: The data for an +// intent. Represents a detected intent in the conversation, for example +// MAKES_PROMISE. +type GoogleCloudContactcenterinsightsV1alpha1Intent struct { + // DisplayName: The human-readable name of the intent. + DisplayName string `json:"displayName,omitempty"` + + // Id: The unique identifier of the intent. + Id string `json:"id,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "DisplayName") 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 *GoogleCloudContactcenterinsightsV1alpha1Intent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1Intent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IntentMatchData: The data for +// an intent match. Represents an intent match for a text segment in the +// conversation. A text segment can be part of a sentence, a complete +// sentence, or an utterance with multiple sentences. +type GoogleCloudContactcenterinsightsV1alpha1IntentMatchData struct { + // IntentUniqueId: The id of the matched intent. Can be used to retrieve + // the corresponding intent information. + IntentUniqueId string `json:"intentUniqueId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IntentUniqueId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "IntentUniqueId") 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 *GoogleCloudContactcenterinsightsV1alpha1IntentMatchData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IntentMatchData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1InterruptionData: The data +// for an interruption annotation. +type GoogleCloudContactcenterinsightsV1alpha1InterruptionData struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1IssueAssignment: Information +// about the issue. +type GoogleCloudContactcenterinsightsV1alpha1IssueAssignment struct { + // DisplayName: Immutable. Display name of the assigned issue. This + // field is set at time of analyis and immutable since then. + DisplayName string `json:"displayName,omitempty"` + + // Issue: Resource name of the assigned issue. + Issue string `json:"issue,omitempty"` + + // Score: Score indicating the likelihood of the issue assignment. + // currently bounded on [0,1]. + Score float64 `json:"score,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "DisplayName") 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 *GoogleCloudContactcenterinsightsV1alpha1IssueAssignment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueAssignment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1IssueAssignment) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueAssignment + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1IssueMatchData: The data for +// an issue match annotation. +type GoogleCloudContactcenterinsightsV1alpha1IssueMatchData struct { + // IssueAssignment: Information about the issue's assignment. + IssueAssignment *GoogleCloudContactcenterinsightsV1alpha1IssueAssignment `json:"issueAssignment,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IssueAssignment") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "IssueAssignment") 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 *GoogleCloudContactcenterinsightsV1alpha1IssueMatchData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueMatchData raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse: -// The response to an IngestConversations operation. -type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse struct { -} - // GoogleCloudContactcenterinsightsV1alpha1IssueModel: The issue model // resource. type GoogleCloudContactcenterinsightsV1alpha1IssueModel struct { @@ -4743,28 +6173,348 @@ type GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats struct { NullFields []string `json:"-"` } -func (s *GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats +func (s *GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats +// : Aggregated statistics about an issue. +type GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats struct { + // DisplayName: Display name of the issue. + DisplayName string `json:"displayName,omitempty"` + + // Issue: Issue resource. Format: + // projects/{project}/locations/{location}/issueModels/{issue_model}/issu + // es/{issue} + Issue string `json:"issue,omitempty"` + + // LabeledConversationsCount: Number of conversations attached to the + // issue at this point in time. + LabeledConversationsCount int64 `json:"labeledConversationsCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "DisplayName") 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 *GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1IssueModelResult: Issue +// Modeling result on a conversation. +type GoogleCloudContactcenterinsightsV1alpha1IssueModelResult struct { + // IssueModel: Issue model that generates the result. Format: + // projects/{project}/locations/{location}/issueModels/{issue_model} + IssueModel string `json:"issueModel,omitempty"` + + // Issues: All the matched issues. + Issues []*GoogleCloudContactcenterinsightsV1alpha1IssueAssignment `json:"issues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IssueModel") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "IssueModel") 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 *GoogleCloudContactcenterinsightsV1alpha1IssueModelResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData: The data for +// a matched phrase matcher. Represents information identifying a phrase +// matcher for a given match. +type GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData struct { + // DisplayName: The human-readable name of the phrase matcher. + DisplayName string `json:"displayName,omitempty"` + + // PhraseMatcher: The unique identifier (the resource name) of the + // phrase matcher. + PhraseMatcher string `json:"phraseMatcher,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "DisplayName") 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 *GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1RedactionConfig: DLP +// resources used for redaction while ingesting conversations. +type GoogleCloudContactcenterinsightsV1alpha1RedactionConfig struct { + // DeidentifyTemplate: The fully-qualified DLP deidentify template + // resource name. Format: + // `projects/{project}/deidentifyTemplates/{template}` + DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"` + + // InspectTemplate: The fully-qualified DLP inspect template resource + // name. Format: `projects/{project}/inspectTemplates/{template}` + InspectTemplate string `json:"inspectTemplate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeidentifyTemplate") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "DeidentifyTemplate") 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 *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1RedactionConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation: An +// annotation that was generated during the customer and agent +// interaction. +type GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation struct { + // AnnotationId: The unique identifier of the annotation. Format: + // projects/{project}/locations/{location}/conversationDatasets/{dataset} + // /conversationDataItems/{data_item}/conversationAnnotations/{annotation + // } + AnnotationId string `json:"annotationId,omitempty"` + + // AnswerFeedback: The feedback that the customer has about the answer + // in `data`. + AnswerFeedback *GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback `json:"answerFeedback,omitempty"` + + // ArticleSuggestion: Agent Assist Article Suggestion data. + ArticleSuggestion *GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData `json:"articleSuggestion,omitempty"` + + // CreateTime: The time at which this annotation was created. + CreateTime string `json:"createTime,omitempty"` + + // DialogflowInteraction: Dialogflow interaction data. + DialogflowInteraction *GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData `json:"dialogflowInteraction,omitempty"` + + // EndBoundary: The boundary in the conversation where the annotation + // ends, inclusive. + EndBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"endBoundary,omitempty"` + + // FaqAnswer: Agent Assist FAQ answer data. + FaqAnswer *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData `json:"faqAnswer,omitempty"` + + // SmartComposeSuggestion: Agent Assist Smart Compose suggestion data. + SmartComposeSuggestion *GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData `json:"smartComposeSuggestion,omitempty"` + + // SmartReply: Agent Assist Smart Reply data. + SmartReply *GoogleCloudContactcenterinsightsV1alpha1SmartReplyData `json:"smartReply,omitempty"` + + // StartBoundary: The boundary in the conversation where the annotation + // starts, inclusive. + StartBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"startBoundary,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnnotationId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "AnnotationId") 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 *GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1SentimentData: The data for a +// sentiment annotation. +type GoogleCloudContactcenterinsightsV1alpha1SentimentData struct { + // Magnitude: A non-negative number from 0 to infinity which represents + // the abolute magnitude of sentiment regardless of score. + Magnitude float64 `json:"magnitude,omitempty"` + + // Score: The sentiment score between -1.0 (negative) and 1.0 + // (positive). + Score float64 `json:"score,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Magnitude") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "Magnitude") 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 *GoogleCloudContactcenterinsightsV1alpha1SentimentData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SentimentData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1SentimentData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SentimentData + var s1 struct { + Magnitude gensupport.JSONFloat64 `json:"magnitude"` + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Magnitude = float64(s1.Magnitude) + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudContactcenterinsightsV1alpha1SilenceData: The data for a +// silence annotation. +type GoogleCloudContactcenterinsightsV1alpha1SilenceData struct { +} + +// GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData: +// Agent Assist Smart Compose suggestion data. +type GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData struct { + // ConfidenceScore: The system's confidence score that this suggestion + // is a good match for this conversation, ranging from 0.0 (completely + // uncertain) to 1.0 (completely certain). + ConfidenceScore float64 `json:"confidenceScore,omitempty"` + + // Metadata: Map that contains metadata about the Smart Compose + // suggestion and the document from which it originates. + Metadata map[string]string `json:"metadata,omitempty"` + + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} + QueryRecord string `json:"queryRecord,omitempty"` + + // Suggestion: The content of the suggestion. + Suggestion string `json:"suggestion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "ConfidenceScore") 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 *GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats -// : Aggregated statistics about an issue. -type GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats struct { - // DisplayName: Display name of the issue. - DisplayName string `json:"displayName,omitempty"` +func (s *GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} - // Issue: Issue resource. Format: - // projects/{project}/locations/{location}/issueModels/{issue_model}/issu - // es/{issue} - Issue string `json:"issue,omitempty"` +// GoogleCloudContactcenterinsightsV1alpha1SmartReplyData: Agent Assist +// Smart Reply data. +type GoogleCloudContactcenterinsightsV1alpha1SmartReplyData struct { + // ConfidenceScore: The system's confidence score that this reply is a + // good match for this conversation, ranging from 0.0 (completely + // uncertain) to 1.0 (completely certain). + ConfidenceScore float64 `json:"confidenceScore,omitempty"` - // LabeledConversationsCount: Number of conversations attached to the - // issue at this point in time. - LabeledConversationsCount int64 `json:"labeledConversationsCount,omitempty,string"` + // Metadata: Map that contains metadata about the Smart Reply and the + // document from which it originates. + Metadata map[string]string `json:"metadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} + QueryRecord string `json:"queryRecord,omitempty"` + + // Reply: The content of the reply. + Reply string `json:"reply,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConfidenceScore") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4772,21 +6522,36 @@ type GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats stru // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. 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. "ConfidenceScore") 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 *GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats +func (s *GoogleCloudContactcenterinsightsV1alpha1SmartReplyData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartReplyData raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +func (s *GoogleCloudContactcenterinsightsV1alpha1SmartReplyData) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartReplyData + var s1 struct { + ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ConfidenceScore = float64(s1.ConfidenceScore) + return nil +} + // GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata: // Metadata for undeploying an issue model. type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata struct { @@ -4856,6 +6621,93 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest) Mars type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelResponse struct { } +// GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata: +// The metadata for an UploadConversation operation. +type GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata struct { + // AnalysisOperation: Output only. The operation name for a successfully + // created analysis operation, if any. + AnalysisOperation string `json:"analysisOperation,omitempty"` + + // AppliedRedactionConfig: Output only. The redaction config applied to + // the uploaded conversation. + AppliedRedactionConfig *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig `json:"appliedRedactionConfig,omitempty"` + + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // Request: Output only. The original request. + Request *GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest `json:"request,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AnalysisOperation") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "AnalysisOperation") 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 *GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest: +// Request to upload a conversation. +type GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest struct { + // Conversation: Required. The conversation resource to create. + Conversation *GoogleCloudContactcenterinsightsV1alpha1Conversation `json:"conversation,omitempty"` + + // ConversationId: Optional. A unique ID for the new conversation. This + // ID will become the final component of the conversation's resource + // name. If no ID is specified, a server-generated ID will be used. This + // value should be 4-64 characters and must match the regular expression + // `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + ConversationId string `json:"conversationId,omitempty"` + + // Parent: Required. The parent resource of the conversation. + Parent string `json:"parent,omitempty"` + + // RedactionConfig: Optional. DLP settings for transcript redaction. + // Optional, will default to the config specified in Settings. + RedactionConfig *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig `json:"redactionConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Conversation") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "Conversation") 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 *GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleLongrunningListOperationsResponse: The response message for // Operations.ListOperations. type GoogleLongrunningListOperationsResponse struct { @@ -6655,6 +8507,150 @@ func (c *ProjectsLocationsConversationsPatchCall) Do(opts ...googleapi.CallOptio } +// method id "contactcenterinsights.projects.locations.conversations.upload": + +type ProjectsLocationsConversationsUploadCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1uploadconversationrequest *GoogleCloudContactcenterinsightsV1UploadConversationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Upload: Create a longrunning conversation upload operation. This +// method differs from CreateConversation by allowing audio +// transcription and optional DLP redaction. +// +// - parent: The parent resource of the conversation. +func (r *ProjectsLocationsConversationsService) Upload(parent string, googlecloudcontactcenterinsightsv1uploadconversationrequest *GoogleCloudContactcenterinsightsV1UploadConversationRequest) *ProjectsLocationsConversationsUploadCall { + c := &ProjectsLocationsConversationsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1uploadconversationrequest = googlecloudcontactcenterinsightsv1uploadconversationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversationsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsUploadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversationsUploadCall) Context(ctx context.Context) *ProjectsLocationsConversationsUploadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversationsUploadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversationsUploadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1uploadconversationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations:upload") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.conversations.upload" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsConversationsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Create a longrunning conversation upload operation. This method differs from CreateConversation by allowing audio transcription and optional DLP redaction.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversations:upload", + // "httpMethod": "POST", + // "id": "contactcenterinsights.projects.locations.conversations.upload", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent resource of the conversation.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/conversations:upload", + // "request": { + // "$ref": "GoogleCloudContactcenterinsightsV1UploadConversationRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "contactcenterinsights.projects.locations.conversations.analyses.create": type ProjectsLocationsConversationsAnalysesCreateCall struct { diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index 3c6df49eba1..ff4b043acf7 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -610,7 +610,8 @@ "SPDX_FILE", "SPDX_RELATIONSHIP", "DSSE_ATTESTATION", - "VULNERABILITY_ASSESSMENT" + "VULNERABILITY_ASSESSMENT", + "SBOM_REFERENCE" ], "enumDescriptions": [ "Unknown", @@ -628,7 +629,8 @@ "This represents an SPDX File.", "This represents an SPDX Relationship.", "This represents a DSSE attestation Note", - "This represents a Vulnerability Assessment." + "This represents a Vulnerability Assessment.", + "This represents a reference to an SBOM." ], "location": "query", "type": "string" @@ -1231,7 +1233,7 @@ } } }, - "revision": "20230310", + "revision": "20230324", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AnalysisCompleted": { @@ -3438,7 +3440,8 @@ "SPDX_FILE", "SPDX_RELATIONSHIP", "DSSE_ATTESTATION", - "VULNERABILITY_ASSESSMENT" + "VULNERABILITY_ASSESSMENT", + "SBOM_REFERENCE" ], "enumDescriptions": [ "Unknown", @@ -3456,7 +3459,8 @@ "This represents an SPDX File.", "This represents an SPDX Relationship.", "This represents a DSSE attestation Note", - "This represents a Vulnerability Assessment." + "This represents a Vulnerability Assessment.", + "This represents a reference to an SBOM." ], "type": "string" } @@ -4615,7 +4619,8 @@ "SPDX_FILE", "SPDX_RELATIONSHIP", "DSSE_ATTESTATION", - "VULNERABILITY_ASSESSMENT" + "VULNERABILITY_ASSESSMENT", + "SBOM_REFERENCE" ], "enumDescriptions": [ "Unknown", @@ -4633,7 +4638,8 @@ "This represents an SPDX File.", "This represents an SPDX Relationship.", "This represents a DSSE attestation Note", - "This represents a Vulnerability Assessment." + "This represents a Vulnerability Assessment.", + "This represents a reference to an SBOM." ], "type": "string" }, @@ -4660,6 +4666,10 @@ "$ref": "DocumentNote", "description": "A note describing a software bill of materials." }, + "sbomReference": { + "$ref": "SBOMReferenceNote", + "description": "A note describing a reference to an SBOM." + }, "shortDescription": { "description": "A one sentence description of this `Note`.", "type": "string" @@ -4759,7 +4769,8 @@ "SPDX_FILE", "SPDX_RELATIONSHIP", "DSSE_ATTESTATION", - "VULNERABILITY_ASSESSMENT" + "VULNERABILITY_ASSESSMENT", + "SBOM_REFERENCE" ], "enumDescriptions": [ "Unknown", @@ -4777,7 +4788,8 @@ "This represents an SPDX File.", "This represents an SPDX Relationship.", "This represents a DSSE attestation Note", - "This represents a Vulnerability Assessment." + "This represents a Vulnerability Assessment.", + "This represents a reference to an SBOM." ], "type": "string" }, @@ -4805,6 +4817,10 @@ "$ref": "DocumentOccurrence", "description": "Describes a specific software bill of materials document." }, + "sbomReference": { + "$ref": "SBOMReferenceOccurrence", + "description": "This represents an SBOM reference occurrence" + }, "spdxFile": { "$ref": "FileOccurrence", "description": "Describes a specific SPDX File." @@ -5557,6 +5573,95 @@ }, "type": "object" }, + "SBOMReferenceNote": { + "description": "The note representing an SBOM reference.", + "id": "SBOMReferenceNote", + "properties": { + "format": { + "description": "The format that SBOM takes. E.g. may be spdx, cyclonedx, etc...", + "type": "string" + }, + "version": { + "description": "The version of the format that the SBOM takes. E.g. if the format is spdx, the version may be 2.3.", + "type": "string" + } + }, + "type": "object" + }, + "SBOMReferenceOccurrence": { + "description": "The occurrence representing an SBOM reference as applied to a specific resource. The occurrence follows the DSSE specification. See https://github.com/secure-systems-lab/dsse/blob/master/envelope.md for more details.", + "id": "SBOMReferenceOccurrence", + "properties": { + "payload": { + "$ref": "SbomReferenceIntotoPayload", + "description": "The actual payload that contains the SBOM reference data." + }, + "payloadType": { + "description": "The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'.", + "type": "string" + }, + "signatures": { + "description": "The signatures over the payload.", + "items": { + "$ref": "EnvelopeSignature" + }, + "type": "array" + } + }, + "type": "object" + }, + "SbomReferenceIntotoPayload": { + "description": "The actual payload that contains the SBOM Reference data. The payload follows the intoto statement specification. See https://github.com/in-toto/attestation/blob/main/spec/v1.0/statement.md for more details.", + "id": "SbomReferenceIntotoPayload", + "properties": { + "_type": { + "description": "Identifier for the schema of the Statement.", + "type": "string" + }, + "predicate": { + "$ref": "SbomReferenceIntotoPredicate", + "description": "Additional parameters of the Predicate. Includes the actual data about the SBOM." + }, + "predicateType": { + "description": "URI identifying the type of the Predicate.", + "type": "string" + }, + "subject": { + "description": "Set of software artifacts that the attestation applies to. Each element represents a single software artifact.", + "items": { + "$ref": "Subject" + }, + "type": "array" + } + }, + "type": "object" + }, + "SbomReferenceIntotoPredicate": { + "description": "A predicate which describes the SBOM being referenced.", + "id": "SbomReferenceIntotoPredicate", + "properties": { + "digest": { + "additionalProperties": { + "type": "string" + }, + "description": "A map of algorithm to digest of the contents of the SBOM.", + "type": "object" + }, + "location": { + "description": "The location of the SBOM.", + "type": "string" + }, + "mimeType": { + "description": "The mime type of the SBOM.", + "type": "string" + }, + "referrerId": { + "description": "The person or system referring this predicate to the consumer.", + "type": "string" + } + }, + "type": "object" + }, "ScanConfig": { "description": "Indicates various scans and whether they are turned on or off.", "id": "ScanConfig", diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 0e046fc6250..60a7907b93e 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -3449,6 +3449,7 @@ type Discovery struct { // "DSSE_ATTESTATION" - This represents a DSSE attestation Note // "VULNERABILITY_ASSESSMENT" - This represents a Vulnerability // Assessment. + // "SBOM_REFERENCE" - This represents a reference to an SBOM. AnalysisKind string `json:"analysisKind,omitempty"` // ForceSendFields is a list of field names (e.g. "AnalysisKind") to @@ -5382,6 +5383,7 @@ type Note struct { // "DSSE_ATTESTATION" - This represents a DSSE attestation Note // "VULNERABILITY_ASSESSMENT" - This represents a Vulnerability // Assessment. + // "SBOM_REFERENCE" - This represents a reference to an SBOM. Kind string `json:"kind,omitempty"` // LongDescription: A detailed description of this `Note`. @@ -5401,6 +5403,9 @@ type Note struct { // Sbom: A note describing a software bill of materials. Sbom *DocumentNote `json:"sbom,omitempty"` + // SbomReference: A note describing a reference to an SBOM. + SbomReference *SBOMReferenceNote `json:"sbomReference,omitempty"` + // ShortDescription: A one sentence description of this `Note`. ShortDescription string `json:"shortDescription,omitempty"` @@ -5520,6 +5525,7 @@ type Occurrence struct { // "DSSE_ATTESTATION" - This represents a DSSE attestation Note // "VULNERABILITY_ASSESSMENT" - This represents a Vulnerability // Assessment. + // "SBOM_REFERENCE" - This represents a reference to an SBOM. Kind string `json:"kind,omitempty"` // Name: Output only. The name of the `Occurrence` in the form @@ -5547,6 +5553,9 @@ type Occurrence struct { // Sbom: Describes a specific software bill of materials document. Sbom *DocumentOccurrence `json:"sbom,omitempty"` + // SbomReference: This represents an SBOM reference occurrence + SbomReference *SBOMReferenceOccurrence `json:"sbomReference,omitempty"` + // SpdxFile: Describes a specific SPDX File. SpdxFile *FileOccurrence `json:"spdxFile,omitempty"` @@ -6665,6 +6674,161 @@ func (s *Resource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SBOMReferenceNote: The note representing an SBOM reference. +type SBOMReferenceNote struct { + // Format: The format that SBOM takes. E.g. may be spdx, cyclonedx, + // etc... + Format string `json:"format,omitempty"` + + // Version: The version of the format that the SBOM takes. E.g. if the + // format is spdx, the version may be 2.3. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "Format") 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 *SBOMReferenceNote) MarshalJSON() ([]byte, error) { + type NoMethod SBOMReferenceNote + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SBOMReferenceOccurrence: The occurrence representing an SBOM +// reference as applied to a specific resource. The occurrence follows +// the DSSE specification. See +// https://github.com/secure-systems-lab/dsse/blob/master/envelope.md +// for more details. +type SBOMReferenceOccurrence struct { + // Payload: The actual payload that contains the SBOM reference data. + Payload *SbomReferenceIntotoPayload `json:"payload,omitempty"` + + // PayloadType: The kind of payload that SbomReferenceIntotoPayload + // takes. Since it's in the intoto format, this value is expected to be + // 'application/vnd.in-toto+json'. + PayloadType string `json:"payloadType,omitempty"` + + // Signatures: The signatures over the payload. + Signatures []*EnvelopeSignature `json:"signatures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Payload") 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. "Payload") 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 *SBOMReferenceOccurrence) MarshalJSON() ([]byte, error) { + type NoMethod SBOMReferenceOccurrence + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SbomReferenceIntotoPayload: The actual payload that contains the SBOM +// Reference data. The payload follows the intoto statement +// specification. See +// https://github.com/in-toto/attestation/blob/main/spec/v1.0/statement.md +// for more details. +type SbomReferenceIntotoPayload struct { + // Type: Identifier for the schema of the Statement. + Type string `json:"_type,omitempty"` + + // Predicate: Additional parameters of the Predicate. Includes the + // actual data about the SBOM. + Predicate *SbomReferenceIntotoPredicate `json:"predicate,omitempty"` + + // PredicateType: URI identifying the type of the Predicate. + PredicateType string `json:"predicateType,omitempty"` + + // Subject: Set of software artifacts that the attestation applies to. + // Each element represents a single software artifact. + Subject []*Subject `json:"subject,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Type") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "Type") 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 *SbomReferenceIntotoPayload) MarshalJSON() ([]byte, error) { + type NoMethod SbomReferenceIntotoPayload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SbomReferenceIntotoPredicate: A predicate which describes the SBOM +// being referenced. +type SbomReferenceIntotoPredicate struct { + // Digest: A map of algorithm to digest of the contents of the SBOM. + Digest map[string]string `json:"digest,omitempty"` + + // Location: The location of the SBOM. + Location string `json:"location,omitempty"` + + // MimeType: The mime type of the SBOM. + MimeType string `json:"mimeType,omitempty"` + + // ReferrerId: The person or system referring this predicate to the + // consumer. + ReferrerId string `json:"referrerId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Digest") 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. "Digest") 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 *SbomReferenceIntotoPredicate) MarshalJSON() ([]byte, error) { + type NoMethod SbomReferenceIntotoPredicate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ScanConfig: Indicates various scans and whether they are turned on or // off. type ScanConfig struct { @@ -10388,6 +10552,8 @@ func (c *ProjectsOccurrencesListCall) Filter(filter string) *ProjectsOccurrences // "VULNERABILITY_ASSESSMENT" - This represents a Vulnerability // // Assessment. +// +// "SBOM_REFERENCE" - This represents a reference to an SBOM. func (c *ProjectsOccurrencesListCall) Kind(kind string) *ProjectsOccurrencesListCall { c.urlParams_.Set("kind", kind) return c @@ -10544,7 +10710,8 @@ func (c *ProjectsOccurrencesListCall) Do(opts ...googleapi.CallOption) (*ListOcc // "SPDX_FILE", // "SPDX_RELATIONSHIP", // "DSSE_ATTESTATION", - // "VULNERABILITY_ASSESSMENT" + // "VULNERABILITY_ASSESSMENT", + // "SBOM_REFERENCE" // ], // "enumDescriptions": [ // "Unknown", @@ -10562,7 +10729,8 @@ func (c *ProjectsOccurrencesListCall) Do(opts ...googleapi.CallOption) (*ListOcc // "This represents an SPDX File.", // "This represents an SPDX Relationship.", // "This represents a DSSE attestation Note", - // "This represents a Vulnerability Assessment." + // "This represents a Vulnerability Assessment.", + // "This represents a reference to an SBOM." // ], // "location": "query", // "type": "string" diff --git a/dataflow/v1b3/dataflow-api.json b/dataflow/v1b3/dataflow-api.json index 318e6747374..15a32bb546f 100644 --- a/dataflow/v1b3/dataflow-api.json +++ b/dataflow/v1b3/dataflow-api.json @@ -251,7 +251,7 @@ "enumDescriptions": [ "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - "Request all information available for this job.", + "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", "Request summary info and limited job description data for steps, labels and environment." ], "location": "query", @@ -305,7 +305,7 @@ "enumDescriptions": [ "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - "Request all information available for this job.", + "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", "Request summary info and limited job description data for steps, labels and environment." ], "location": "query", @@ -364,7 +364,7 @@ "enumDescriptions": [ "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - "Request all information available for this job.", + "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", "Request summary info and limited job description data for steps, labels and environment." ], "location": "query", @@ -491,7 +491,7 @@ "enumDescriptions": [ "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - "Request all information available for this job.", + "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", "Request summary info and limited job description data for steps, labels and environment." ], "location": "query", @@ -963,7 +963,7 @@ "enumDescriptions": [ "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - "Request all information available for this job.", + "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", "Request summary info and limited job description data for steps, labels and environment." ], "location": "query", @@ -1024,7 +1024,7 @@ "enumDescriptions": [ "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - "Request all information available for this job.", + "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", "Request summary info and limited job description data for steps, labels and environment." ], "location": "query", @@ -1207,7 +1207,7 @@ "enumDescriptions": [ "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - "Request all information available for this job.", + "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", "Request summary info and limited job description data for steps, labels and environment." ], "location": "query", @@ -2211,7 +2211,7 @@ } } }, - "revision": "20230321", + "revision": "20230327", "rootUrl": "https://dataflow.googleapis.com/", "schemas": { "ApproximateProgress": { diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index 2c7a4c05146..5bea23c22e4 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -8699,6 +8699,14 @@ func (c *ProjectsJobsAggregatedCall) PageToken(pageToken string) *ProjectsJobsAg // version details. // // "JOB_VIEW_ALL" - Request all information available for this job. +// +// When the job is in `JOB_STATE_PENDING`, the job has been created but +// is not yet running, and not all job information is available. For +// complete job information, wait until the job in is +// `JOB_STATE_RUNNING`. For more information, see +// [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/ +// projects.jobs#jobstate). +// // "JOB_VIEW_DESCRIPTION" - Request summary info and limited job // // description data for steps, labels and environment. @@ -8869,7 +8877,7 @@ func (c *ProjectsJobsAggregatedCall) Do(opts ...googleapi.CallOption) (*ListJobs // "enumDescriptions": [ // "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", // "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - // "Request all information available for this job.", + // "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", // "Request summary info and limited job description data for steps, labels and environment." // ], // "location": "query", @@ -8970,6 +8978,14 @@ func (c *ProjectsJobsCreateCall) ReplaceJobId(replaceJobId string) *ProjectsJobs // version details. // // "JOB_VIEW_ALL" - Request all information available for this job. +// +// When the job is in `JOB_STATE_PENDING`, the job has been created but +// is not yet running, and not all job information is available. For +// complete job information, wait until the job in is +// `JOB_STATE_RUNNING`. For more information, see +// [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/ +// projects.jobs#jobstate). +// // "JOB_VIEW_DESCRIPTION" - Request summary info and limited job // // description data for steps, labels and environment. @@ -9104,7 +9120,7 @@ func (c *ProjectsJobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error) // "enumDescriptions": [ // "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", // "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - // "Request all information available for this job.", + // "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", // "Request summary info and limited job description data for steps, labels and environment." // ], // "location": "query", @@ -9182,6 +9198,14 @@ func (c *ProjectsJobsGetCall) Location(location string) *ProjectsJobsGetCall { // version details. // // "JOB_VIEW_ALL" - Request all information available for this job. +// +// When the job is in `JOB_STATE_PENDING`, the job has been created but +// is not yet running, and not all job information is available. For +// complete job information, wait until the job in is +// `JOB_STATE_RUNNING`. For more information, see +// [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/ +// projects.jobs#jobstate). +// // "JOB_VIEW_DESCRIPTION" - Request summary info and limited job // // description data for steps, labels and environment. @@ -9327,7 +9351,7 @@ func (c *ProjectsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) { // "enumDescriptions": [ // "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", // "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - // "Request all information available for this job.", + // "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", // "Request summary info and limited job description data for steps, labels and environment." // ], // "location": "query", @@ -9642,6 +9666,14 @@ func (c *ProjectsJobsListCall) PageToken(pageToken string) *ProjectsJobsListCall // version details. // // "JOB_VIEW_ALL" - Request all information available for this job. +// +// When the job is in `JOB_STATE_PENDING`, the job has been created but +// is not yet running, and not all job information is available. For +// complete job information, wait until the job in is +// `JOB_STATE_RUNNING`. For more information, see +// [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/ +// projects.jobs#jobstate). +// // "JOB_VIEW_DESCRIPTION" - Request summary info and limited job // // description data for steps, labels and environment. @@ -9812,7 +9844,7 @@ func (c *ProjectsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsRespon // "enumDescriptions": [ // "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", // "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - // "Request all information available for this job.", + // "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", // "Request summary info and limited job description data for steps, labels and environment." // ], // "location": "query", @@ -11517,6 +11549,14 @@ func (c *ProjectsLocationsJobsCreateCall) ReplaceJobId(replaceJobId string) *Pro // version details. // // "JOB_VIEW_ALL" - Request all information available for this job. +// +// When the job is in `JOB_STATE_PENDING`, the job has been created but +// is not yet running, and not all job information is available. For +// complete job information, wait until the job in is +// `JOB_STATE_RUNNING`. For more information, see +// [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/ +// projects.jobs#jobstate). +// // "JOB_VIEW_DESCRIPTION" - Request summary info and limited job // // description data for steps, labels and environment. @@ -11654,7 +11694,7 @@ func (c *ProjectsLocationsJobsCreateCall) Do(opts ...googleapi.CallOption) (*Job // "enumDescriptions": [ // "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", // "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - // "Request all information available for this job.", + // "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", // "Request summary info and limited job description data for steps, labels and environment." // ], // "location": "query", @@ -11728,6 +11768,14 @@ func (r *ProjectsLocationsJobsService) Get(projectId string, location string, jo // version details. // // "JOB_VIEW_ALL" - Request all information available for this job. +// +// When the job is in `JOB_STATE_PENDING`, the job has been created but +// is not yet running, and not all job information is available. For +// complete job information, wait until the job in is +// `JOB_STATE_RUNNING`. For more information, see +// [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/ +// projects.jobs#jobstate). +// // "JOB_VIEW_DESCRIPTION" - Request summary info and limited job // // description data for steps, labels and environment. @@ -11876,7 +11924,7 @@ func (c *ProjectsLocationsJobsGetCall) Do(opts ...googleapi.CallOption) (*Job, e // "enumDescriptions": [ // "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", // "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - // "Request all information available for this job.", + // "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", // "Request summary info and limited job description data for steps, labels and environment." // ], // "location": "query", @@ -12409,6 +12457,14 @@ func (c *ProjectsLocationsJobsListCall) PageToken(pageToken string) *ProjectsLoc // version details. // // "JOB_VIEW_ALL" - Request all information available for this job. +// +// When the job is in `JOB_STATE_PENDING`, the job has been created but +// is not yet running, and not all job information is available. For +// complete job information, wait until the job in is +// `JOB_STATE_RUNNING`. For more information, see +// [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/ +// projects.jobs#jobstate). +// // "JOB_VIEW_DESCRIPTION" - Request summary info and limited job // // description data for steps, labels and environment. @@ -12582,7 +12638,7 @@ func (c *ProjectsLocationsJobsListCall) Do(opts ...googleapi.CallOption) (*ListJ // "enumDescriptions": [ // "The job view to return isn't specified, or is unknown. Responses will contain at least the `JOB_VIEW_SUMMARY` information, and may contain additional information.", // "Request summary information only: Project ID, Job ID, job name, job type, job status, start/end time, and Cloud SDK version details.", - // "Request all information available for this job.", + // "Request all information available for this job. When the job is in `JOB_STATE_PENDING`, the job has been created but is not yet running, and not all job information is available. For complete job information, wait until the job in is `JOB_STATE_RUNNING`. For more information, see [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate).", // "Request summary info and limited job description data for steps, labels and environment." // ], // "location": "query", diff --git a/datastore/v1/datastore-api.json b/datastore/v1/datastore-api.json index 0cb4dfb08b2..0e9216e4429 100644 --- a/datastore/v1/datastore-api.json +++ b/datastore/v1/datastore-api.json @@ -654,7 +654,7 @@ } } }, - "revision": "20230315", + "revision": "20230328", "rootUrl": "https://datastore.googleapis.com/", "schemas": { "Aggregation": { @@ -937,7 +937,7 @@ "additionalProperties": { "$ref": "Value" }, - "description": "The entity's properties. The map's keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `\"\"`.", + "description": "The entity's properties. The map's keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.", "type": "object" } }, @@ -1987,10 +1987,10 @@ "The given `property` is greater than the given `value`. Requires: * That `property` comes first in `order_by`.", "The given `property` is greater than or equal to the given `value`. Requires: * That `property` comes first in `order_by`.", "The given `property` is equal to the given `value`.", - "The given `property` is equal to at least one value in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN` or `NOT_IN` is in the same query.", + "The given `property` is equal to at least one value in the given array. Requires: * That `value` is a non-empty `ArrayValue`, subject to disjunction limits. * No `NOT_IN` is in the same query.", "The given `property` is not equal to the given `value`. Requires: * No other `NOT_EQUAL` or `NOT_IN` is in the same query. * That `property` comes first in the `order_by`.", - "Limit the result set to the given entity and its descendants. Requires: * That `value` is an entity key. * No other `HAS_ANCESTOR` is in the same query.", - "The value of the `property` is not in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query. * That `field` comes first in the `order_by`." + "Limit the result set to the given entity and its descendants. Requires: * That `value` is an entity key. * All evaluated disjunctions must have the same `HAS_ANCESTOR` filter.", + "The value of the `property` is not in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query. * That `field` comes first in the `order_by`." ], "type": "string" }, diff --git a/datastore/v1/datastore-gen.go b/datastore/v1/datastore-gen.go index b78e27d3157..eb716922039 100644 --- a/datastore/v1/datastore-gen.go +++ b/datastore/v1/datastore-gen.go @@ -707,8 +707,8 @@ type Entity struct { // Properties: The entity's properties. The map's keys are property // names. A property name matching regex `__.*__` is reserved. A // reserved property name is forbidden in certain documented contexts. - // The name must not contain more than 500 characters. The name cannot - // be "". + // The map keys, represented as UTF-8, must not exceed 1,500 bytes and + // cannot be empty. Properties map[string]Value `json:"properties,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -2495,19 +2495,18 @@ type PropertyFilter struct { // in `order_by`. // "EQUAL" - The given `property` is equal to the given `value`. // "IN" - The given `property` is equal to at least one value in the - // given array. Requires: * That `value` is a non-empty `ArrayValue` - // with at most 10 values. * No other `IN` or `NOT_IN` is in the same - // query. + // given array. Requires: * That `value` is a non-empty `ArrayValue`, + // subject to disjunction limits. * No `NOT_IN` is in the same query. // "NOT_EQUAL" - The given `property` is not equal to the given // `value`. Requires: * No other `NOT_EQUAL` or `NOT_IN` is in the same // query. * That `property` comes first in the `order_by`. // "HAS_ANCESTOR" - Limit the result set to the given entity and its - // descendants. Requires: * That `value` is an entity key. * No other - // `HAS_ANCESTOR` is in the same query. + // descendants. Requires: * That `value` is an entity key. * All + // evaluated disjunctions must have the same `HAS_ANCESTOR` filter. // "NOT_IN" - The value of the `property` is not in the given array. // Requires: * That `value` is a non-empty `ArrayValue` with at most 10 - // values. * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query. - // * That `field` comes first in the `order_by`. + // values. * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same + // query. * That `field` comes first in the `order_by`. Op string `json:"op,omitempty"` // Property: The property to filter by. diff --git a/datastore/v1beta3/datastore-api.json b/datastore/v1beta3/datastore-api.json index 4fc83cd9196..8cdab185e01 100644 --- a/datastore/v1beta3/datastore-api.json +++ b/datastore/v1beta3/datastore-api.json @@ -336,7 +336,7 @@ } } }, - "revision": "20230315", + "revision": "20230328", "rootUrl": "https://datastore.googleapis.com/", "schemas": { "Aggregation": { @@ -597,7 +597,7 @@ "additionalProperties": { "$ref": "Value" }, - "description": "The entity's properties. The map's keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `\"\"`.", + "description": "The entity's properties. The map's keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.", "type": "object" } }, @@ -1433,10 +1433,10 @@ "The given `property` is greater than the given `value`. Requires: * That `property` comes first in `order_by`.", "The given `property` is greater than or equal to the given `value`. Requires: * That `property` comes first in `order_by`.", "The given `property` is equal to the given `value`.", - "The given `property` is equal to at least one value in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN` or `NOT_IN` is in the same query.", + "The given `property` is equal to at least one value in the given array. Requires: * That `value` is a non-empty `ArrayValue`, subject to disjunction limits. * No `NOT_IN` is in the same query.", "The given `property` is not equal to the given `value`. Requires: * No other `NOT_EQUAL` or `NOT_IN` is in the same query. * That `property` comes first in the `order_by`.", - "Limit the result set to the given entity and its descendants. Requires: * That `value` is an entity key. * No other `HAS_ANCESTOR` is in the same query.", - "The value of the `property` is not in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query. * That `field` comes first in the `order_by`." + "Limit the result set to the given entity and its descendants. Requires: * That `value` is an entity key. * All evaluated disjunctions must have the same `HAS_ANCESTOR` filter.", + "The value of the `property` is not in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query. * That `field` comes first in the `order_by`." ], "type": "string" }, diff --git a/datastore/v1beta3/datastore-gen.go b/datastore/v1beta3/datastore-gen.go index 9ca716b5e1a..f1b88ef410c 100644 --- a/datastore/v1beta3/datastore-gen.go +++ b/datastore/v1beta3/datastore-gen.go @@ -652,8 +652,8 @@ type Entity struct { // Properties: The entity's properties. The map's keys are property // names. A property name matching regex `__.*__` is reserved. A // reserved property name is forbidden in certain documented contexts. - // The name must not contain more than 500 characters. The name cannot - // be "". + // The map keys, represented as UTF-8, must not exceed 1,500 bytes and + // cannot be empty. Properties map[string]Value `json:"properties,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -2078,19 +2078,18 @@ type PropertyFilter struct { // in `order_by`. // "EQUAL" - The given `property` is equal to the given `value`. // "IN" - The given `property` is equal to at least one value in the - // given array. Requires: * That `value` is a non-empty `ArrayValue` - // with at most 10 values. * No other `IN` or `NOT_IN` is in the same - // query. + // given array. Requires: * That `value` is a non-empty `ArrayValue`, + // subject to disjunction limits. * No `NOT_IN` is in the same query. // "NOT_EQUAL" - The given `property` is not equal to the given // `value`. Requires: * No other `NOT_EQUAL` or `NOT_IN` is in the same // query. * That `property` comes first in the `order_by`. // "HAS_ANCESTOR" - Limit the result set to the given entity and its - // descendants. Requires: * That `value` is an entity key. * No other - // `HAS_ANCESTOR` is in the same query. + // descendants. Requires: * That `value` is an entity key. * All + // evaluated disjunctions must have the same `HAS_ANCESTOR` filter. // "NOT_IN" - The value of the `property` is not in the given array. // Requires: * That `value` is a non-empty `ArrayValue` with at most 10 - // values. * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query. - // * That `field` comes first in the `order_by`. + // values. * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same + // query. * That `field` comes first in the `order_by`. Op string `json:"op,omitempty"` // Property: The property to filter by. diff --git a/file/v1beta1/file-api.json b/file/v1beta1/file-api.json index 7357c8e83ff..4ae2277c773 100644 --- a/file/v1beta1/file-api.json +++ b/file/v1beta1/file-api.json @@ -1041,7 +1041,7 @@ } } }, - "revision": "20230312", + "revision": "20230323", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -1574,9 +1574,8 @@ "type": "string" }, "maxShareCount": { - "description": "Output only. The max number of shares allowed.", + "description": "The max number of shares allowed.", "format": "int64", - "readOnly": true, "type": "string" }, "multiShareEnabled": { diff --git a/file/v1beta1/file-gen.go b/file/v1beta1/file-gen.go index 1f0f5ef7b6d..4c1a92953e6 100644 --- a/file/v1beta1/file-gen.go +++ b/file/v1beta1/file-gen.go @@ -1020,7 +1020,7 @@ type Instance struct { // MaxCapacityGb: Output only. The max capacity of the instance. MaxCapacityGb int64 `json:"maxCapacityGb,omitempty,string"` - // MaxShareCount: Output only. The max number of shares allowed. + // MaxShareCount: The max number of shares allowed. MaxShareCount int64 `json:"maxShareCount,omitempty,string"` // MultiShareEnabled: Indicates whether this instance uses a multi-share diff --git a/firebaseappcheck/v1beta/firebaseappcheck-api.json b/firebaseappcheck/v1beta/firebaseappcheck-api.json index 8ea6dfb1f5d..dfd794d10db 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-api.json +++ b/firebaseappcheck/v1beta/firebaseappcheck-api.json @@ -1397,7 +1397,7 @@ ], "parameters": { "pageSize": { - "description": "The maximum number of Services to return in the response. Only explicitly configured services 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 Services to return in the response. Only explicitly configured services are returned. The server may return fewer than this at its own discretion. If no value is specified or set to zero (or too large a value is specified), the server will impose its own limit.", "format": "int32", "location": "query", "type": "integer" @@ -1464,7 +1464,7 @@ } } }, - "revision": "20220513", + "revision": "20230327", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1betaAppAttestConfig": { diff --git a/firebaseappcheck/v1beta/firebaseappcheck-gen.go b/firebaseappcheck/v1beta/firebaseappcheck-gen.go index 87d4e781046..873968c5dcf 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1beta/firebaseappcheck-gen.go @@ -8368,8 +8368,8 @@ func (r *ProjectsServicesService) List(parent string) *ProjectsServicesListCall // PageSize sets the optional parameter "pageSize": The maximum number // of Services to return in the response. Only explicitly configured // services 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. +// own discretion. If no value is specified or set to zero (or too large +// a value is specified), the server will impose its own limit. func (c *ProjectsServicesListCall) PageSize(pageSize int64) *ProjectsServicesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -8496,7 +8496,7 @@ func (c *ProjectsServicesListCall) Do(opts ...googleapi.CallOption) (*GoogleFire // ], // "parameters": { // "pageSize": { - // "description": "The maximum number of Services to return in the response. Only explicitly configured services 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 Services to return in the response. Only explicitly configured services are returned. The server may return fewer than this at its own discretion. If no value is specified or set to zero (or too large a value is specified), the server will impose its own limit.", // "format": "int32", // "location": "query", // "type": "integer" diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json index c5cf6d41016..715b8aa45dc 100644 --- a/firestore/v1/firestore-api.json +++ b/firestore/v1/firestore-api.json @@ -1423,7 +1423,7 @@ } } }, - "revision": "20230315", + "revision": "20230328", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -1906,9 +1906,9 @@ "The given `field` is equal to the given `value`.", "The given `field` is not equal to the given `value`. Requires: * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`.", "The given `field` is an array that contains the given `value`.", - "The given `field` is equal to at least one value in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.", - "The given `field` is an array that contains any of the values in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.", - "The value of the `field` is not in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`." + "The given `field` is equal to at least one value in the given array. Requires: * That `value` is a non-empty `ArrayValue`, subject to disjunction limits. * No `NOT_IN` filters in the same query.", + "The given `field` is an array that contains any of the values in the given array. Requires: * That `value` is a non-empty `ArrayValue`, subject to disjunction limits. * No other `ARRAY_CONTAINS_ANY` filters within the same disjunction. * No `NOT_IN` filters in the same query.", + "The value of the `field` is not in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`." ], "type": "string" }, diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 934c80e22fb..1f126d6bfc1 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -1141,18 +1141,19 @@ type FieldFilter struct { // "ARRAY_CONTAINS" - The given `field` is an array that contains the // given `value`. // "IN" - The given `field` is equal to at least one value in the - // given array. Requires: * That `value` is a non-empty `ArrayValue` - // with at most 10 values. * No other `IN` or `ARRAY_CONTAINS_ANY` or - // `NOT_IN`. + // given array. Requires: * That `value` is a non-empty `ArrayValue`, + // subject to disjunction limits. * No `NOT_IN` filters in the same + // query. // "ARRAY_CONTAINS_ANY" - The given `field` is an array that contains // any of the values in the given array. Requires: * That `value` is a - // non-empty `ArrayValue` with at most 10 values. * No other `IN` or - // `ARRAY_CONTAINS_ANY` or `NOT_IN`. + // non-empty `ArrayValue`, subject to disjunction limits. * No other + // `ARRAY_CONTAINS_ANY` filters within the same disjunction. * No + // `NOT_IN` filters in the same query. // "NOT_IN" - The value of the `field` is not in the given array. // Requires: * That `value` is a non-empty `ArrayValue` with at most 10 - // values. * No other `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, - // `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the - // `order_by`. + // values. * No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, + // `NOT_EQUAL`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes + // first in the `order_by`. Op string `json:"op,omitempty"` // Value: The value to compare to. diff --git a/firestore/v1beta1/firestore-api.json b/firestore/v1beta1/firestore-api.json index 34ce2f25f3a..d0542b50de6 100644 --- a/firestore/v1beta1/firestore-api.json +++ b/firestore/v1beta1/firestore-api.json @@ -950,7 +950,7 @@ } } }, - "revision": "20230315", + "revision": "20230328", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -1433,9 +1433,9 @@ "The given `field` is equal to the given `value`.", "The given `field` is not equal to the given `value`. Requires: * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`.", "The given `field` is an array that contains the given `value`.", - "The given `field` is equal to at least one value in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.", - "The given `field` is an array that contains any of the values in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN` or `ARRAY_CONTAINS_ANY` or `NOT_IN`.", - "The value of the `field` is not in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`." + "The given `field` is equal to at least one value in the given array. Requires: * That `value` is a non-empty `ArrayValue`, subject to disjunction limits. * No `NOT_IN` filters in the same query.", + "The given `field` is an array that contains any of the values in the given array. Requires: * That `value` is a non-empty `ArrayValue`, subject to disjunction limits. * No other `ARRAY_CONTAINS_ANY` filters within the same disjunction. * No `NOT_IN` filters in the same query.", + "The value of the `field` is not in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`." ], "type": "string" }, diff --git a/firestore/v1beta1/firestore-gen.go b/firestore/v1beta1/firestore-gen.go index a04b863d093..11350d73369 100644 --- a/firestore/v1beta1/firestore-gen.go +++ b/firestore/v1beta1/firestore-gen.go @@ -1093,18 +1093,19 @@ type FieldFilter struct { // "ARRAY_CONTAINS" - The given `field` is an array that contains the // given `value`. // "IN" - The given `field` is equal to at least one value in the - // given array. Requires: * That `value` is a non-empty `ArrayValue` - // with at most 10 values. * No other `IN` or `ARRAY_CONTAINS_ANY` or - // `NOT_IN`. + // given array. Requires: * That `value` is a non-empty `ArrayValue`, + // subject to disjunction limits. * No `NOT_IN` filters in the same + // query. // "ARRAY_CONTAINS_ANY" - The given `field` is an array that contains // any of the values in the given array. Requires: * That `value` is a - // non-empty `ArrayValue` with at most 10 values. * No other `IN` or - // `ARRAY_CONTAINS_ANY` or `NOT_IN`. + // non-empty `ArrayValue`, subject to disjunction limits. * No other + // `ARRAY_CONTAINS_ANY` filters within the same disjunction. * No + // `NOT_IN` filters in the same query. // "NOT_IN" - The value of the `field` is not in the given array. // Requires: * That `value` is a non-empty `ArrayValue` with at most 10 - // values. * No other `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, - // `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the - // `order_by`. + // values. * No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, + // `NOT_EQUAL`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes + // first in the `order_by`. Op string `json:"op,omitempty"` // Value: The value to compare to. diff --git a/networkservices/v1/networkservices-api.json b/networkservices/v1/networkservices-api.json index 50aae6ec635..dc1d48b91bb 100644 --- a/networkservices/v1/networkservices-api.json +++ b/networkservices/v1/networkservices-api.json @@ -2032,7 +2032,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "networkservices.projects.locations.operations.list", @@ -2603,7 +2603,7 @@ } } }, - "revision": "20230227", + "revision": "20230323", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -2837,6 +2837,20 @@ "description": "Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway.", "id": "Gateway", "properties": { + "addresses": { + "description": "Optional. Zero or one IPv4-address on which the Gateway will receive the traffic. When no address is provided, an IP from the subnetwork is allocated This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0.", + "items": { + "type": "string" + }, + "type": "array" + }, + "certificateUrls": { + "description": "Optional. A fully-qualified Certificates URL reference. The proxy presents a Certificate (selected based on SNI) when establishing a TLS connection. This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.", + "items": { + "type": "string" + }, + "type": "array" + }, "createTime": { "description": "Output only. The timestamp when the resource was created.", "format": "google-datetime", @@ -2847,6 +2861,10 @@ "description": "Optional. A free-text description of the resource. Max length 1024 characters.", "type": "string" }, + "gatewaySecurityPolicy": { + "description": "Optional. A fully-qualified GatewaySecurityPolicy URL reference. Defines how a server should apply security policy to inbound (VM to Proxy) initiated connections. For example: `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`. This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'.", + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -2858,6 +2876,10 @@ "description": "Required. Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/`.", "type": "string" }, + "network": { + "description": "Optional. The relative resource name identifying the VPC network that is using this configuration. For example: `projects/*/global/networks/network-1`. Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.", + "type": "string" + }, "ports": { "description": "Required. One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 and support multiple ports.", "items": { @@ -2879,6 +2901,10 @@ "description": "Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.", "type": "string" }, + "subnetwork": { + "description": "Optional. The relative resource name identifying the subnetwork in which this SWG is allocated. For example: `projects/*/regions/us-central1/subnetworks/network-1` Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY\".", + "type": "string" + }, "type": { "description": "Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.", "enum": [ diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index 0570a2f0302..d3c65fac06c 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -841,6 +841,18 @@ func (s *Expr) MarshalJSON() ([]byte, error) { // have reference to to Gateways to dictate how requests should be // routed by this Gateway. type Gateway struct { + // Addresses: Optional. Zero or one IPv4-address on which the Gateway + // will receive the traffic. When no address is provided, an IP from the + // subnetwork is allocated This field only applies to gateways of type + // 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0. + Addresses []string `json:"addresses,omitempty"` + + // CertificateUrls: Optional. A fully-qualified Certificates URL + // reference. The proxy presents a Certificate (selected based on SNI) + // when establishing a TLS connection. This feature only applies to + // gateways of type 'SECURE_WEB_GATEWAY'. + CertificateUrls []string `json:"certificateUrls,omitempty"` + // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` @@ -848,6 +860,14 @@ type Gateway struct { // length 1024 characters. Description string `json:"description,omitempty"` + // GatewaySecurityPolicy: Optional. A fully-qualified + // GatewaySecurityPolicy URL reference. Defines how a server should + // apply security policy to inbound (VM to Proxy) initiated connections. + // For example: + // `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`. This + // policy is specific to gateways of type 'SECURE_WEB_GATEWAY'. + GatewaySecurityPolicy string `json:"gatewaySecurityPolicy,omitempty"` + // Labels: Optional. Set of label tags associated with the Gateway // resource. Labels map[string]string `json:"labels,omitempty"` @@ -856,6 +876,12 @@ type Gateway struct { // `projects/*/locations/*/gateways/`. Name string `json:"name,omitempty"` + // Network: Optional. The relative resource name identifying the VPC + // network that is using this configuration. For example: + // `projects/*/global/networks/network-1`. Currently, this field is + // specific to gateways of type 'SECURE_WEB_GATEWAY'. + Network string `json:"network,omitempty"` + // Ports: Required. One or more port numbers (1-65535), on which the // Gateway will receive traffic. The proxy binds to the specified ports. // Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways @@ -878,6 +904,12 @@ type Gateway struct { // termination is disabled. ServerTlsPolicy string `json:"serverTlsPolicy,omitempty"` + // Subnetwork: Optional. The relative resource name identifying the + // subnetwork in which this SWG is allocated. For example: + // `projects/*/regions/us-central1/subnetworks/network-1` Currently, + // this field is specific to gateways of type 'SECURE_WEB_GATEWAY". + Subnetwork string `json:"subnetwork,omitempty"` + // Type: Immutable. The type of the customer managed gateway. This field // is required. If unspecified, an error is returned. // @@ -897,7 +929,7 @@ type Gateway struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "Addresses") 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 @@ -905,7 +937,7 @@ type Gateway struct { // 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 + // NullFields is a list of field names (e.g. "Addresses") 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 @@ -13570,14 +13602,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -13706,7 +13731,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "networkservices.projects.locations.operations.list", diff --git a/speech/v1/speech-api.json b/speech/v1/speech-api.json index 0749c342b0e..b571b009ca1 100644 --- a/speech/v1/speech-api.json +++ b/speech/v1/speech-api.json @@ -339,7 +339,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}/phraseSets` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.", + "description": "Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -524,7 +524,7 @@ } } }, - "revision": "20230313", + "revision": "20230323", "rootUrl": "https://speech.googleapis.com/", "schemas": { "ABNFGrammar": { diff --git a/speech/v1/speech-gen.go b/speech/v1/speech-gen.go index bea4c6858f1..8373d218412 100644 --- a/speech/v1/speech-gen.go +++ b/speech/v1/speech-gen.go @@ -2909,11 +2909,11 @@ type ProjectsLocationsPhraseSetsCreateCall struct { // the PhraseSet. // // - parent: The parent resource where this phrase set will be created. -// Format: `projects/{project}/locations/{location}/phraseSets` -// Speech-to-Text supports three locations: `global`, `us` (US North -// America), and `eu` (Europe). If you are calling the -// `speech.googleapis.com` endpoint, use the `global` location. To -// specify a region, use a regional endpoint +// Format: `projects/{project}/locations/{location}` Speech-to-Text +// supports three locations: `global`, `us` (US North America), and +// `eu` (Europe). If you are calling the `speech.googleapis.com` +// endpoint, use the `global` location. To specify a region, use a +// regional endpoint // (https://cloud.google.com/speech-to-text/docs/endpoints) with // matching `us` or `eu` location value. func (r *ProjectsLocationsPhraseSetsService) Create(parent string, createphrasesetrequest *CreatePhraseSetRequest) *ProjectsLocationsPhraseSetsCreateCall { @@ -3023,7 +3023,7 @@ func (c *ProjectsLocationsPhraseSetsCreateCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "parent": { - // "description": "Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}/phraseSets` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.", + // "description": "Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, diff --git a/speech/v1p1beta1/speech-api.json b/speech/v1p1beta1/speech-api.json index 90b6b2e4bbb..27749f8c83a 100644 --- a/speech/v1p1beta1/speech-api.json +++ b/speech/v1p1beta1/speech-api.json @@ -339,7 +339,7 @@ ], "parameters": { "parent": { - "description": "Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}/phraseSets` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.", + "description": "Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -524,7 +524,7 @@ } } }, - "revision": "20230313", + "revision": "20230323", "rootUrl": "https://speech.googleapis.com/", "schemas": { "ABNFGrammar": { diff --git a/speech/v1p1beta1/speech-gen.go b/speech/v1p1beta1/speech-gen.go index a35320f5005..ac4dcb928a0 100644 --- a/speech/v1p1beta1/speech-gen.go +++ b/speech/v1p1beta1/speech-gen.go @@ -3010,11 +3010,11 @@ type ProjectsLocationsPhraseSetsCreateCall struct { // the PhraseSet. // // - parent: The parent resource where this phrase set will be created. -// Format: `projects/{project}/locations/{location}/phraseSets` -// Speech-to-Text supports three locations: `global`, `us` (US North -// America), and `eu` (Europe). If you are calling the -// `speech.googleapis.com` endpoint, use the `global` location. To -// specify a region, use a regional endpoint +// Format: `projects/{project}/locations/{location}` Speech-to-Text +// supports three locations: `global`, `us` (US North America), and +// `eu` (Europe). If you are calling the `speech.googleapis.com` +// endpoint, use the `global` location. To specify a region, use a +// regional endpoint // (https://cloud.google.com/speech-to-text/docs/endpoints) with // matching `us` or `eu` location value. func (r *ProjectsLocationsPhraseSetsService) Create(parent string, createphrasesetrequest *CreatePhraseSetRequest) *ProjectsLocationsPhraseSetsCreateCall { @@ -3124,7 +3124,7 @@ func (c *ProjectsLocationsPhraseSetsCreateCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "parent": { - // "description": "Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}/phraseSets` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.", + // "description": "Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, diff --git a/transcoder/v1/transcoder-api.json b/transcoder/v1/transcoder-api.json index b32021d6f73..cf275efe1c0 100644 --- a/transcoder/v1/transcoder-api.json +++ b/transcoder/v1/transcoder-api.json @@ -385,7 +385,7 @@ } } }, - "revision": "20230308", + "revision": "20230322", "rootUrl": "https://transcoder.googleapis.com/", "schemas": { "AdBreak": { @@ -1024,6 +1024,20 @@ "description": "The labels associated with this job. You can use these to organize and group your jobs.", "type": "object" }, + "mode": { + "description": "The processing mode of the job. The default is `PROCESSING_MODE_INTERACTIVE`.", + "enum": [ + "PROCESSING_MODE_UNSPECIFIED", + "PROCESSING_MODE_INTERACTIVE", + "PROCESSING_MODE_BATCH" + ], + "enumDescriptions": [ + "The job processing mode is not specified.", + "The job processing mode is interactive mode. Interactive job will either be ran or rejected if quota does not allow for it.", + "The job processing mode is batch mode. Batch mode allows queuing of jobs." + ], + "type": "string" + }, "name": { "description": "The resource name of the job. Format: `projects/{project_number}/locations/{location}/jobs/{job}`", "type": "string" diff --git a/transcoder/v1/transcoder-gen.go b/transcoder/v1/transcoder-gen.go index acfb597a389..4d580eb8343 100644 --- a/transcoder/v1/transcoder-gen.go +++ b/transcoder/v1/transcoder-gen.go @@ -1356,6 +1356,19 @@ type Job struct { // organize and group your jobs. Labels map[string]string `json:"labels,omitempty"` + // Mode: The processing mode of the job. The default is + // `PROCESSING_MODE_INTERACTIVE`. + // + // Possible values: + // "PROCESSING_MODE_UNSPECIFIED" - The job processing mode is not + // specified. + // "PROCESSING_MODE_INTERACTIVE" - The job processing mode is + // interactive mode. Interactive job will either be ran or rejected if + // quota does not allow for it. + // "PROCESSING_MODE_BATCH" - The job processing mode is batch mode. + // Batch mode allows queuing of jobs. + Mode string `json:"mode,omitempty"` + // Name: The resource name of the job. Format: // `projects/{project_number}/locations/{location}/jobs/{job}` Name string `json:"name,omitempty"` diff --git a/workflowexecutions/v1/workflowexecutions-api.json b/workflowexecutions/v1/workflowexecutions-api.json index 9d1d2ccd1ad..5a2744172bb 100644 --- a/workflowexecutions/v1/workflowexecutions-api.json +++ b/workflowexecutions/v1/workflowexecutions-api.json @@ -309,7 +309,7 @@ } } }, - "revision": "20230221", + "revision": "20230323", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -350,12 +350,14 @@ "enum": [ "CALL_LOG_LEVEL_UNSPECIFIED", "LOG_ALL_CALLS", - "LOG_ERRORS_ONLY" + "LOG_ERRORS_ONLY", + "LOG_NONE" ], "enumDescriptions": [ "No call logging level specified.", "Log all call steps within workflows, all call returns, and all exceptions raised.", - "Log only exceptions that are raised from call steps within workflows." + "Log only exceptions that are raised from call steps within workflows.", + "Explicitly log nothing." ], "type": "string" }, diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 82b494fe691..6db316438f8 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -241,6 +241,7 @@ type Execution struct { // returns, and all exceptions raised. // "LOG_ERRORS_ONLY" - Log only exceptions that are raised from call // steps within workflows. + // "LOG_NONE" - Explicitly log nothing. CallLogLevel string `json:"callLogLevel,omitempty"` // Duration: Output only. Measures the duration of the execution. diff --git a/workflows/v1/workflows-api.json b/workflows/v1/workflows-api.json index bbaa8a664e9..ccfd0e01a0c 100644 --- a/workflows/v1/workflows-api.json +++ b/workflows/v1/workflows-api.json @@ -449,7 +449,7 @@ } } }, - "revision": "20230308", + "revision": "20230322", "rootUrl": "https://workflows.googleapis.com/", "schemas": { "Empty": { @@ -648,6 +648,22 @@ "description": "Workflow program to be executed by Workflows.", "id": "Workflow", "properties": { + "callLogLevel": { + "description": "Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.", + "enum": [ + "CALL_LOG_LEVEL_UNSPECIFIED", + "LOG_ALL_CALLS", + "LOG_ERRORS_ONLY", + "LOG_NONE" + ], + "enumDescriptions": [ + "No call logging level specified.", + "Log all call steps within workflows, all call returns, and all exceptions raised.", + "Log only exceptions that are raised from call steps within workflows.", + "Explicitly log nothing." + ], + "type": "string" + }, "createTime": { "description": "Output only. The timestamp for when the workflow was created.", "format": "google-datetime", diff --git a/workflows/v1/workflows-gen.go b/workflows/v1/workflows-gen.go index d3ce7ad2dce..118a2475b63 100644 --- a/workflows/v1/workflows-gen.go +++ b/workflows/v1/workflows-gen.go @@ -507,6 +507,20 @@ func (s *Status) MarshalJSON() ([]byte, error) { // Workflow: Workflow program to be executed by Workflows. type Workflow struct { + // CallLogLevel: Optional. Describes the level of platform logging to + // apply to calls and call responses during executions of this workflow. + // If both the workflow and the execution specify a logging level, the + // execution level takes precedence. + // + // Possible values: + // "CALL_LOG_LEVEL_UNSPECIFIED" - No call logging level specified. + // "LOG_ALL_CALLS" - Log all call steps within workflows, all call + // returns, and all exceptions raised. + // "LOG_ERRORS_ONLY" - Log only exceptions that are raised from call + // steps within workflows. + // "LOG_NONE" - Explicitly log nothing. + CallLogLevel string `json:"callLogLevel,omitempty"` + // CreateTime: Output only. The timestamp for when the workflow was // created. CreateTime string `json:"createTime,omitempty"` @@ -570,7 +584,7 @@ type Workflow struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "CallLogLevel") 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 @@ -578,10 +592,10 @@ type Workflow struct { // 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 + // NullFields is a list of field names (e.g. "CallLogLevel") 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:"-"` diff --git a/workstations/v1beta/workstations-api.json b/workstations/v1beta/workstations-api.json index 0a48527b1fa..ad740c8ef7a 100644 --- a/workstations/v1beta/workstations-api.json +++ b/workstations/v1beta/workstations-api.json @@ -1127,7 +1127,7 @@ } } }, - "revision": "20230314", + "revision": "20230327", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "AuditConfig": { @@ -1301,7 +1301,7 @@ "id": "GceInstance", "properties": { "bootDiskSizeGb": { - "description": "Size of the boot disk in GB.", + "description": "Size of the boot disk in GB. Defaults to 50.", "format": "int32", "type": "integer" }, @@ -1323,7 +1323,7 @@ "type": "integer" }, "serviceAccount": { - "description": "Email address of the service account that will be used on VM instances used to support this config. This service account must have permission to pull the specified container image. If not set, VMs will run without a service account, in which case the image must be publicly accessible.", + "description": "Email address of the service account that will be used on VM instances used to support this config. If not set, VMs will run with a Google-managed service account. This service account must have permission to pull the specified container image, otherwise the image must be publicly accessible.", "type": "string" }, "shieldedInstanceConfig": { @@ -1345,11 +1345,11 @@ "id": "GceRegionalPersistentDisk", "properties": { "diskType": { - "description": "Type of the disk to use.", + "description": "Type of the disk to use. Defaults to pd-standard.", "type": "string" }, "fsType": { - "description": "Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if source_snapshot is set.", + "description": "Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if source_snapshot is set. Defaults to ext4.", "type": "string" }, "reclaimPolicy": { @@ -1367,7 +1367,7 @@ "type": "string" }, "sizeGb": { - "description": "Size of the disk in GB. Must be empty if source_snapshot is set.", + "description": "Size of the disk in GB. Must be empty if source_snapshot is set. Defaults to 200.", "format": "int32", "type": "integer" }, diff --git a/workstations/v1beta/workstations-gen.go b/workstations/v1beta/workstations-gen.go index f56a5ed502d..e6956333cdb 100644 --- a/workstations/v1beta/workstations-gen.go +++ b/workstations/v1beta/workstations-gen.go @@ -566,7 +566,7 @@ func (s *GceConfidentialInstanceConfig) MarshalJSON() ([]byte, error) { // GceInstance: A runtime using a Compute Engine instance. type GceInstance struct { - // BootDiskSizeGb: Size of the boot disk in GB. + // BootDiskSizeGb: Size of the boot disk in GB. Defaults to 50. BootDiskSizeGb int64 `json:"bootDiskSizeGb,omitempty"` // ConfidentialInstanceConfig: A set of Compute Engine Confidential VM @@ -584,10 +584,10 @@ type GceInstance struct { PoolSize int64 `json:"poolSize,omitempty"` // ServiceAccount: Email address of the service account that will be - // used on VM instances used to support this config. This service - // account must have permission to pull the specified container image. - // If not set, VMs will run without a service account, in which case the - // image must be publicly accessible. + // used on VM instances used to support this config. If not set, VMs + // will run with a Google-managed service account. This service account + // must have permission to pull the specified container image, otherwise + // the image must be publicly accessible. ServiceAccount string `json:"serviceAccount,omitempty"` // ShieldedInstanceConfig: A set of Compute Engine Shielded instance @@ -625,12 +625,12 @@ func (s *GceInstance) MarshalJSON() ([]byte, error) { // GceRegionalPersistentDisk: A PersistentDirectory backed by a Compute // Engine regional persistent disk. type GceRegionalPersistentDisk struct { - // DiskType: Type of the disk to use. + // DiskType: Type of the disk to use. Defaults to pd-standard. DiskType string `json:"diskType,omitempty"` // FsType: Type of file system that the disk should be formatted with. // The workstation image must support this file system type. Must be - // empty if source_snapshot is set. + // empty if source_snapshot is set. Defaults to ext4. FsType string `json:"fsType,omitempty"` // ReclaimPolicy: What should happen to the disk after the workstation @@ -645,7 +645,7 @@ type GceRegionalPersistentDisk struct { ReclaimPolicy string `json:"reclaimPolicy,omitempty"` // SizeGb: Size of the disk in GB. Must be empty if source_snapshot is - // set. + // set. Defaults to 200. SizeGb int64 `json:"sizeGb,omitempty"` // SourceSnapshot: Name of the snapshot to use as the source for the