diff --git a/cloudkms/v1/cloudkms-api.json b/cloudkms/v1/cloudkms-api.json index a147e2330f6..0cfaad38d4a 100644 --- a/cloudkms/v1/cloudkms-api.json +++ b/cloudkms/v1/cloudkms-api.json @@ -1828,7 +1828,7 @@ } } }, - "revision": "20231212", + "revision": "20240131", "rootUrl": "https://cloudkms.googleapis.com/", "schemas": { "AsymmetricDecryptRequest": { @@ -2024,7 +2024,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/cloudkms/v1/cloudkms-gen.go b/cloudkms/v1/cloudkms-gen.go index 2931b73c04a..40151242628 100644 --- a/cloudkms/v1/cloudkms-gen.go +++ b/cloudkms/v1/cloudkms-gen.go @@ -707,7 +707,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index afce2a4cec6..aaf1b763ca8 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -403,6 +403,11 @@ "location": "query", "type": "string" }, + "orderBy": { + "description": "Optional. The attribute by which to order conversations in the response. If empty, conversations will be ordered by descending creation time. Supported values are one of the following: * create_time * duration * turn_count * latest_analysis The default sort order is ascending. To specify order, append `asc` or `desc`, i.e. `create_time desc`. See https://google.aip.dev/132#ordering for more details.", + "location": "query", + "type": "string" + }, "pageSize": { "description": "The maximum number of conversations to return in the response. A valid page size ranges from 0 to 1,000 inclusive. If the page size is zero or unspecified, a default page size of 100 will be chosen. Note that a call might return fewer results than the requested page size.", "format": "int32", @@ -774,6 +779,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "export": { + "description": "Exports an issue model to the provided destination.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}:export", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.issueModels.export", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The issue model to export", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:export", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets an issue model.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}", @@ -799,6 +832,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "import": { + "description": "Imports an issue model from a Cloud Storage bucket.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels:import", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.issueModels.import", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the issue model.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/issueModels:import", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists issue models.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels", @@ -1412,7 +1473,7 @@ } } }, - "revision": "20240115", + "revision": "20240206", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -2754,6 +2815,59 @@ "properties": {}, "type": "object" }, + "GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata": { + "description": "Metadata used for export issue model.", + "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata", + "properties": { + "createTime": { + "description": "The time the operation was created.", + "format": "google-datetime", + "type": "string" + }, + "endTime": { + "description": "The time the operation finished running.", + "format": "google-datetime", + "type": "string" + }, + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest", + "description": "The original export request." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest": { + "description": "Request to export an issue model.", + "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest", + "properties": { + "gcsDestination": { + "$ref": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination", + "description": "Google Cloud Storage URI to export the Issue Model to." + }, + "name": { + "description": "Required. The issue model to export", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination": { + "description": "Google Cloud Storage Object URI to save the issue model to.", + "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination", + "properties": { + "objectUri": { + "description": "Required. Format: `gs:///`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ExportIssueModelResponse": { + "description": "Response from export issue model", + "id": "GoogleCloudContactcenterinsightsV1ExportIssueModelResponse", + "properties": {}, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1FaqAnswerData": { "description": "Agent Assist frequently-asked-question answer data.", "id": "GoogleCloudContactcenterinsightsV1FaqAnswerData", @@ -2810,6 +2924,63 @@ "properties": {}, "type": "object" }, + "GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata": { + "description": "Metadata used for import issue model.", + "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata", + "properties": { + "createTime": { + "description": "The time the operation was created.", + "format": "google-datetime", + "type": "string" + }, + "endTime": { + "description": "The time the operation finished running.", + "format": "google-datetime", + "type": "string" + }, + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest", + "description": "The original import request." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest": { + "description": "Request to import an issue model.", + "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest", + "properties": { + "createNewModel": { + "description": "Optional. If set to true, will create a new issue model from the imported file with randomly generated IDs for the issue model and corresponding issues. Otherwise, replaces an existing model with the same ID as the file.", + "type": "boolean" + }, + "gcsSource": { + "$ref": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource", + "description": "Google Cloud Storage source message." + }, + "parent": { + "description": "Required. The parent resource of the issue model.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource": { + "description": "Google Cloud Storage Object URI to get the issue model file from.", + "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource", + "properties": { + "objectUri": { + "description": "Required. Format: `gs:///`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1ImportIssueModelResponse": { + "description": "Response from import issue model", + "id": "GoogleCloudContactcenterinsightsV1ImportIssueModelResponse", + "properties": {}, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1IngestConversationsMetadata": { "description": "The metadata for an IngestConversations operation.", "id": "GoogleCloudContactcenterinsightsV1IngestConversationsMetadata", @@ -2951,6 +3122,17 @@ "bucketUri": { "description": "Required. The Cloud Storage bucket containing source objects.", "type": "string" + }, + "customMetadataKeys": { + "description": "Optional. Custom keys to extract as conversation labels from metadata files in `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a limit of 20 labels per conversation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "metadataBucketUri": { + "description": "Optional. The Cloud Storage path to the source object metadata. Note that: [1] metadata files are expected to be in JSON format [2] metadata and source objects must be in separate buckets [3] a source object's metadata object must share the same name to be properly ingested", + "type": "string" } }, "type": "object" @@ -5095,6 +5277,59 @@ "properties": {}, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata": { + "description": "Metadata used for export issue model.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata", + "properties": { + "createTime": { + "description": "The time the operation was created.", + "format": "google-datetime", + "type": "string" + }, + "endTime": { + "description": "The time the operation finished running.", + "format": "google-datetime", + "type": "string" + }, + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest", + "description": "The original export request." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest": { + "description": "Request to export an issue model.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest", + "properties": { + "gcsDestination": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination", + "description": "Google Cloud Storage URI to export the Issue Model to." + }, + "name": { + "description": "Required. The issue model to export", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination": { + "description": "Google Cloud Storage Object URI to save the issue model to.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination", + "properties": { + "objectUri": { + "description": "Required. Format: `gs:///`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse": { + "description": "Response from export issue model", + "id": "GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse", + "properties": {}, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData": { "description": "Agent Assist frequently-asked-question answer data.", "id": "GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData", @@ -5151,6 +5386,63 @@ "properties": {}, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata": { + "description": "Metadata used for import issue model.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata", + "properties": { + "createTime": { + "description": "The time the operation was created.", + "format": "google-datetime", + "type": "string" + }, + "endTime": { + "description": "The time the operation finished running.", + "format": "google-datetime", + "type": "string" + }, + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest", + "description": "The original import request." + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest": { + "description": "Request to import an issue model.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest", + "properties": { + "createNewModel": { + "description": "Optional. If set to true, will create a new issue model from the imported file with randomly generated IDs for the issue model and corresponding issues. Otherwise, replaces an existing model with the same ID as the file.", + "type": "boolean" + }, + "gcsSource": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource", + "description": "Google Cloud Storage source message." + }, + "parent": { + "description": "Required. The parent resource of the issue model.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource": { + "description": "Google Cloud Storage Object URI to get the issue model file from.", + "id": "GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource", + "properties": { + "objectUri": { + "description": "Required. Format: `gs:///`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse": { + "description": "Response from import issue model", + "id": "GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse", + "properties": {}, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata": { "description": "The metadata for an IngestConversations operation.", "id": "GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata", @@ -5292,6 +5584,17 @@ "bucketUri": { "description": "Required. The Cloud Storage bucket containing source objects.", "type": "string" + }, + "customMetadataKeys": { + "description": "Optional. Custom keys to extract as conversation labels from metadata files in `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a limit of 20 labels per conversation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "metadataBucketUri": { + "description": "Optional. The Cloud Storage path to the source object metadata. Note that: [1] metadata files are expected to be in JSON format [2] metadata and source objects must be in separate buckets [3] a source object's metadata object must share the same name to be properly ingested", + "type": "string" } }, "type": "object" diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 446bb0797bd..09170979f9b 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -2402,6 +2402,109 @@ func (s *GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDest type GoogleCloudContactcenterinsightsV1ExportInsightsDataResponse struct { } +// GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata: Metadata +// used for export issue model. +type GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata struct { + // CreateTime: The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // Request: The original export request. + Request *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest `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 *GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ExportIssueModelRequest: Request to +// export an issue model. +type GoogleCloudContactcenterinsightsV1ExportIssueModelRequest struct { + // GcsDestination: Google Cloud Storage URI to export the Issue Model + // to. + GcsDestination *GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination `json:"gcsDestination,omitempty"` + + // Name: Required. The issue model to export + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsDestination") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "GcsDestination") 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 *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ExportIssueModelRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestinatio +// n: Google Cloud Storage Object URI to save the issue model to. +type GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination struct { + // ObjectUri: Required. Format: `gs:///` + ObjectUri string `json:"objectUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ObjectUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ObjectUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ExportIssueModelResponse: Response +// from export issue model +type GoogleCloudContactcenterinsightsV1ExportIssueModelResponse struct { +} + // GoogleCloudContactcenterinsightsV1FaqAnswerData: Agent Assist // frequently-asked-question answer data. type GoogleCloudContactcenterinsightsV1FaqAnswerData struct { @@ -2506,6 +2609,114 @@ func (s *GoogleCloudContactcenterinsightsV1GcsSource) MarshalJSON() ([]byte, err type GoogleCloudContactcenterinsightsV1HoldData struct { } +// GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata: Metadata +// used for import issue model. +type GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata struct { + // CreateTime: The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // Request: The original import request. + Request *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest `json:"request,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ImportIssueModelRequest: Request to +// import an issue model. +type GoogleCloudContactcenterinsightsV1ImportIssueModelRequest struct { + // CreateNewModel: Optional. If set to true, will create a new issue + // model from the imported file with randomly generated IDs for the + // issue model and corresponding issues. Otherwise, replaces an existing + // model with the same ID as the file. + CreateNewModel bool `json:"createNewModel,omitempty"` + + // GcsSource: Google Cloud Storage source message. + GcsSource *GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource `json:"gcsSource,omitempty"` + + // Parent: Required. The parent resource of the issue model. + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateNewModel") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateNewModel") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource: +// Google Cloud Storage Object URI to get the issue model file from. +type GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource struct { + // ObjectUri: Required. Format: `gs:///` + ObjectUri string `json:"objectUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ObjectUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ObjectUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1ImportIssueModelResponse: Response +// from import issue model +type GoogleCloudContactcenterinsightsV1ImportIssueModelResponse struct { +} + // GoogleCloudContactcenterinsightsV1IngestConversationsMetadata: The // metadata for an IngestConversations operation. type GoogleCloudContactcenterinsightsV1IngestConversationsMetadata struct { @@ -2703,6 +2914,19 @@ type GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource struc // objects. BucketUri string `json:"bucketUri,omitempty"` + // CustomMetadataKeys: Optional. Custom keys to extract as conversation + // labels from metadata files in `metadata_bucket_uri`. Keys not + // included in this field will be ignored. Note that there is a limit of + // 20 labels per conversation. + CustomMetadataKeys []string `json:"customMetadataKeys,omitempty"` + + // MetadataBucketUri: Optional. The Cloud Storage path to the source + // object metadata. Note that: [1] metadata files are expected to be in + // JSON format [2] metadata and source objects must be in separate + // buckets [3] a source object's metadata object must share the same + // name to be properly ingested + MetadataBucketUri string `json:"metadataBucketUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "BucketObjectType") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -6224,6 +6448,109 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQue type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse struct { } +// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata: +// Metadata used for export issue model. +type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata struct { + // CreateTime: The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // Request: The original export request. + Request *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest `json:"request,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // 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 *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest: +// Request to export an issue model. +type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest struct { + // GcsDestination: Google Cloud Storage URI to export the Issue Model + // to. + GcsDestination *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination `json:"gcsDestination,omitempty"` + + // Name: Required. The issue model to export + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsDestination") to + // 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. "GcsDestination") 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 *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDest +// ination: Google Cloud Storage Object URI to save the issue model to. +type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination struct { + // ObjectUri: Required. Format: `gs:///` + ObjectUri string `json:"objectUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ObjectUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ObjectUri") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse: +// Response from export issue model +type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse struct { +} + // GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData: Agent Assist // frequently-asked-question answer data. type GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData struct { @@ -6300,7 +6627,115 @@ type GoogleCloudContactcenterinsightsV1alpha1GcsSource struct { // that contains the conversation transcript. TranscriptUri string `json:"transcriptUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "AudioUri") to + // 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 { +} + +// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata: +// Metadata used for import issue model. +type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata struct { + // CreateTime: The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + + // Request: The original import request. + Request *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest `json:"request,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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 *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest: +// Request to import an issue model. +type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest struct { + // CreateNewModel: Optional. If set to true, will create a new issue + // model from the imported file with randomly generated IDs for the + // issue model and corresponding issues. Otherwise, replaces an existing + // model with the same ID as the file. + CreateNewModel bool `json:"createNewModel,omitempty"` + + // GcsSource: Google Cloud Storage source message. + GcsSource *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource `json:"gcsSource,omitempty"` + + // Parent: Required. The parent resource of the issue model. + Parent string `json:"parent,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateNewModel") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateNewModel") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSour +// ce: Google Cloud Storage Object URI to get the issue model file from. +type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource struct { + // ObjectUri: Required. Format: `gs:///` + ObjectUri string `json:"objectUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ObjectUri") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -6308,7 +6743,7 @@ type GoogleCloudContactcenterinsightsV1alpha1GcsSource struct { // 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 + // NullFields is a list of field names (e.g. "ObjectUri") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -6317,15 +6752,15 @@ type GoogleCloudContactcenterinsightsV1alpha1GcsSource struct { NullFields []string `json:"-"` } -func (s *GoogleCloudContactcenterinsightsV1alpha1GcsSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContactcenterinsightsV1alpha1GcsSource +func (s *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContactcenterinsightsV1alpha1HoldData: The data for a hold -// annotation. -type GoogleCloudContactcenterinsightsV1alpha1HoldData struct { +// GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse: +// Response from import issue model +type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse struct { } // GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata: @@ -6524,6 +6959,19 @@ type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource // objects. BucketUri string `json:"bucketUri,omitempty"` + // CustomMetadataKeys: Optional. Custom keys to extract as conversation + // labels from metadata files in `metadata_bucket_uri`. Keys not + // included in this field will be ignored. Note that there is a limit of + // 20 labels per conversation. + CustomMetadataKeys []string `json:"customMetadataKeys,omitempty"` + + // MetadataBucketUri: Optional. The Cloud Storage path to the source + // object metadata. Note that: [1] metadata files are expected to be in + // JSON format [2] metadata and source objects must be in separate + // buckets [3] a source object's metadata object must share the same + // name to be properly ingested + MetadataBucketUri string `json:"metadataBucketUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "BucketObjectType") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -9037,6 +9485,18 @@ func (c *ProjectsLocationsConversationsListCall) Filter(filter string) *Projects return c } +// OrderBy sets the optional parameter "orderBy": The attribute by which +// to order conversations in the response. If empty, conversations will +// be ordered by descending creation time. Supported values are one of +// the following: * create_time * duration * turn_count * +// latest_analysis The default sort order is ascending. To specify +// order, append `asc` or `desc`, i.e. `create_time desc`. See +// https://google.aip.dev/132#ordering for more details. +func (c *ProjectsLocationsConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsConversationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + // PageSize sets the optional parameter "pageSize": The maximum number // of conversations to return in the response. A valid page size ranges // from 0 to 1,000 inclusive. If the page size is zero or unspecified, a @@ -9190,6 +9650,11 @@ func (c *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption // "location": "query", // "type": "string" // }, + // "orderBy": { + // "description": "Optional. The attribute by which to order conversations in the response. If empty, conversations will be ordered by descending creation time. Supported values are one of the following: * create_time * duration * turn_count * latest_analysis The default sort order is ascending. To specify order, append `asc` or `desc`, i.e. `create_time desc`. See https://google.aip.dev/132#ordering for more details.", + // "location": "query", + // "type": "string" + // }, // "pageSize": { // "description": "The maximum number of conversations to return in the response. A valid page size ranges from 0 to 1,000 inclusive. If the page size is zero or unspecified, a default page size of 100 will be chosen. Note that a call might return fewer results than the requested page size.", // "format": "int32", @@ -10904,6 +11369,148 @@ func (c *ProjectsLocationsIssueModelsDeployCall) Do(opts ...googleapi.CallOption } +// method id "contactcenterinsights.projects.locations.issueModels.export": + +type ProjectsLocationsIssueModelsExportCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1exportissuemodelrequest *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Export: Exports an issue model to the provided destination. +// +// - name: The issue model to export. +func (r *ProjectsLocationsIssueModelsService) Export(name string, googlecloudcontactcenterinsightsv1exportissuemodelrequest *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest) *ProjectsLocationsIssueModelsExportCall { + c := &ProjectsLocationsIssueModelsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudcontactcenterinsightsv1exportissuemodelrequest = googlecloudcontactcenterinsightsv1exportissuemodelrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIssueModelsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsExportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIssueModelsExportCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsExportCall { + 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 *ProjectsLocationsIssueModelsExportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIssueModelsExportCall) 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.googlecloudcontactcenterinsightsv1exportissuemodelrequest) + 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/{+name}:export") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.issueModels.export" 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 *ProjectsLocationsIssueModelsExportCall) 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": "Exports an issue model to the provided destination.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels/{issueModelsId}:export", + // "httpMethod": "POST", + // "id": "contactcenterinsights.projects.locations.issueModels.export", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The issue model to export", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:export", + // "request": { + // "$ref": "GoogleCloudContactcenterinsightsV1ExportIssueModelRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "contactcenterinsights.projects.locations.issueModels.get": type ProjectsLocationsIssueModelsGetCall struct { @@ -11052,6 +11659,148 @@ func (c *ProjectsLocationsIssueModelsGetCall) Do(opts ...googleapi.CallOption) ( } +// method id "contactcenterinsights.projects.locations.issueModels.import": + +type ProjectsLocationsIssueModelsImportCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1importissuemodelrequest *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Import: Imports an issue model from a Cloud Storage bucket. +// +// - parent: The parent resource of the issue model. +func (r *ProjectsLocationsIssueModelsService) Import(parent string, googlecloudcontactcenterinsightsv1importissuemodelrequest *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest) *ProjectsLocationsIssueModelsImportCall { + c := &ProjectsLocationsIssueModelsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1importissuemodelrequest = googlecloudcontactcenterinsightsv1importissuemodelrequest + 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 *ProjectsLocationsIssueModelsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsImportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIssueModelsImportCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsImportCall { + 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 *ProjectsLocationsIssueModelsImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIssueModelsImportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := 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.googlecloudcontactcenterinsightsv1importissuemodelrequest) + 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}/issueModels:import") + 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.issueModels.import" 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 *ProjectsLocationsIssueModelsImportCall) 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": "Imports an issue model from a Cloud Storage bucket.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/issueModels:import", + // "httpMethod": "POST", + // "id": "contactcenterinsights.projects.locations.issueModels.import", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent resource of the issue model.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/issueModels:import", + // "request": { + // "$ref": "GoogleCloudContactcenterinsightsV1ImportIssueModelRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "contactcenterinsights.projects.locations.issueModels.list": type ProjectsLocationsIssueModelsListCall struct { diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index 0432b18410e..49e45c08a50 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8327,7 +8327,7 @@ } } }, - "revision": "20240122", + "revision": "20240131", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -8835,6 +8835,27 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ExportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ExportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3ExportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ExportEntityTypesResponse": { + "description": "The response message for EntityTypes.ExportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3ExportEntityTypesResponse", + "properties": { + "entityTypesContent": { + "$ref": "GoogleCloudDialogflowCxV3InlineDestination", + "description": "Uncompressed byte content for entity types. This field is populated only if `entity_types_content_inline` is set to true in ExportEntityTypesRequest." + }, + "entityTypesUri": { + "description": "The URI to a file containing the exported entity types. This field is populated only if `entity_types_uri` is specified in ExportEntityTypesRequest.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ExportFlowResponse": { "description": "The response message for Flows.ExportFlow.", "id": "GoogleCloudDialogflowCxV3ExportFlowResponse", @@ -9135,6 +9156,51 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ImportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ImportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ImportEntityTypesResponse": { + "description": "The response message for EntityTypes.ImportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesResponse", + "properties": { + "conflictingResources": { + "$ref": "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources", + "description": "Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest." + }, + "entityTypes": { + "description": "The unique identifier of the imported entity types. Format: `projects//locations//agents//entity_types/`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources": { + "description": "Conflicting resources detected during the import process. Only filled when REPORT_CONFLICT is set in the request and there are conflicts in the display names.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources", + "properties": { + "entityDisplayNames": { + "description": "Display names of conflicting entities.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityTypeDisplayNames": { + "description": "Display names of conflicting entity types.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ImportFlowResponse": { "description": "The response message for Flows.ImportFlow.", "id": "GoogleCloudDialogflowCxV3ImportFlowResponse", @@ -11047,6 +11113,27 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ExportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse": { + "description": "The response message for EntityTypes.ExportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse", + "properties": { + "entityTypesContent": { + "$ref": "GoogleCloudDialogflowCxV3beta1InlineDestination", + "description": "Uncompressed byte content for entity types. This field is populated only if `entity_types_content_inline` is set to true in ExportEntityTypesRequest." + }, + "entityTypesUri": { + "description": "The URI to a file containing the exported entity types. This field is populated only if `entity_types_uri` is specified in ExportEntityTypesRequest.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ExportFlowResponse": { "description": "The response message for Flows.ExportFlow.", "id": "GoogleCloudDialogflowCxV3beta1ExportFlowResponse", @@ -11347,6 +11434,51 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ImportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse": { + "description": "The response message for EntityTypes.ImportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse", + "properties": { + "conflictingResources": { + "$ref": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources", + "description": "Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest." + }, + "entityTypes": { + "description": "The unique identifier of the imported entity types. Format: `projects//locations//agents//entity_types/`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources": { + "description": "Conflicting resources detected during the import process. Only filled when REPORT_CONFLICT is set in the request and there are conflicts in the display names.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources", + "properties": { + "entityDisplayNames": { + "description": "Display names of conflicting entities.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityTypeDisplayNames": { + "description": "Display names of conflicting entity types.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ImportFlowResponse": { "description": "The response message for Flows.ImportFlow.", "id": "GoogleCloudDialogflowCxV3beta1ImportFlowResponse", @@ -12930,6 +13062,13 @@ "summaryText": { "description": "Text of actual submitted summary.", "type": "string" + }, + "textSections": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Actual text sections of submitted summary.", + "type": "object" } }, "type": "object" diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 83893589c01..9d0b1c2c1af 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -1879,6 +1879,48 @@ func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ExportEntityTypesMetadata: Metadata returned +// for the EntityTypes.ExportEntityTypes long running operation. +type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3ExportEntityTypesResponse: The response +// message for EntityTypes.ExportEntityTypes. +type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct { + // EntityTypesContent: Uncompressed byte content for entity types. This + // field is populated only if `entity_types_content_inline` is set to + // true in ExportEntityTypesRequest. + EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"` + + // EntityTypesUri: The URI to a file containing the exported entity + // types. This field is populated only if `entity_types_uri` is + // specified in ExportEntityTypesRequest. + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityTypesContent") + // 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. "EntityTypesContent") 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 *GoogleCloudDialogflowCxV3ExportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ExportFlowResponse: The response message for // Flows.ExportFlow. type GoogleCloudDialogflowCxV3ExportFlowResponse struct { @@ -2488,6 +2530,82 @@ func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ImportEntityTypesMetadata: Metadata returned +// for the EntityTypes.ImportEntityTypes long running operation. +type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3ImportEntityTypesResponse: The response +// message for EntityTypes.ImportEntityTypes. +type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct { + // ConflictingResources: Info which resources have conflicts when + // REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest. + ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"` + + // EntityTypes: The unique identifier of the imported entity types. + // Format: `projects//locations//agents//entity_types/`. + EntityTypes []string `json:"entityTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConflictingResources") 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. "ConflictingResources") 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 *GoogleCloudDialogflowCxV3ImportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources +// : Conflicting resources detected during the import process. Only +// filled when REPORT_CONFLICT is set in the request and there are +// conflicts in the display names. +type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct { + // EntityDisplayNames: Display names of conflicting entities. + EntityDisplayNames []string `json:"entityDisplayNames,omitempty"` + + // EntityTypeDisplayNames: Display names of conflicting entity types. + EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityDisplayNames") + // 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. "EntityDisplayNames") 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 *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ImportFlowResponse: The response message for // Flows.ImportFlow. type GoogleCloudDialogflowCxV3ImportFlowResponse struct { @@ -5970,6 +6088,49 @@ func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata: Metadata +// returned for the EntityTypes.ExportEntityTypes long running +// operation. +type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse: The response +// message for EntityTypes.ExportEntityTypes. +type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct { + // EntityTypesContent: Uncompressed byte content for entity types. This + // field is populated only if `entity_types_content_inline` is set to + // true in ExportEntityTypesRequest. + EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"` + + // EntityTypesUri: The URI to a file containing the exported entity + // types. This field is populated only if `entity_types_uri` is + // specified in ExportEntityTypesRequest. + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityTypesContent") + // 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. "EntityTypesContent") 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 *GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ExportFlowResponse: The response // message for Flows.ExportFlow. type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct { @@ -6581,6 +6742,83 @@ func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata: Metadata +// returned for the EntityTypes.ImportEntityTypes long running +// operation. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse: The response +// message for EntityTypes.ImportEntityTypes. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct { + // ConflictingResources: Info which resources have conflicts when + // REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest. + ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"` + + // EntityTypes: The unique identifier of the imported entity types. + // Format: `projects//locations//agents//entity_types/`. + EntityTypes []string `json:"entityTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConflictingResources") 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. "ConflictingResources") 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 *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingReso +// urces: Conflicting resources detected during the import process. Only +// filled when REPORT_CONFLICT is set in the request and there are +// conflicts in the display names. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct { + // EntityDisplayNames: Display names of conflicting entities. + EntityDisplayNames []string `json:"entityDisplayNames,omitempty"` + + // EntityTypeDisplayNames: Display names of conflicting entity types. + EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityDisplayNames") + // 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. "EntityDisplayNames") 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 *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ImportFlowResponse: The response // message for Flows.ImportFlow. type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct { @@ -9313,6 +9551,9 @@ type GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback struct { // SummaryText: Text of actual submitted summary. SummaryText string `json:"summaryText,omitempty"` + // TextSections: Optional. Actual text sections of submitted summary. + TextSections map[string]string `json:"textSections,omitempty"` + // ForceSendFields is a list of field names (e.g. "StartTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index ece5240ae0f..8573b2425fd 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7695,7 +7695,7 @@ } } }, - "revision": "20240122", + "revision": "20240131", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -8203,6 +8203,27 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ExportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ExportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3ExportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ExportEntityTypesResponse": { + "description": "The response message for EntityTypes.ExportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3ExportEntityTypesResponse", + "properties": { + "entityTypesContent": { + "$ref": "GoogleCloudDialogflowCxV3InlineDestination", + "description": "Uncompressed byte content for entity types. This field is populated only if `entity_types_content_inline` is set to true in ExportEntityTypesRequest." + }, + "entityTypesUri": { + "description": "The URI to a file containing the exported entity types. This field is populated only if `entity_types_uri` is specified in ExportEntityTypesRequest.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ExportFlowResponse": { "description": "The response message for Flows.ExportFlow.", "id": "GoogleCloudDialogflowCxV3ExportFlowResponse", @@ -8503,6 +8524,51 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ImportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ImportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ImportEntityTypesResponse": { + "description": "The response message for EntityTypes.ImportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesResponse", + "properties": { + "conflictingResources": { + "$ref": "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources", + "description": "Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest." + }, + "entityTypes": { + "description": "The unique identifier of the imported entity types. Format: `projects//locations//agents//entity_types/`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources": { + "description": "Conflicting resources detected during the import process. Only filled when REPORT_CONFLICT is set in the request and there are conflicts in the display names.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources", + "properties": { + "entityDisplayNames": { + "description": "Display names of conflicting entities.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityTypeDisplayNames": { + "description": "Display names of conflicting entity types.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ImportFlowResponse": { "description": "The response message for Flows.ImportFlow.", "id": "GoogleCloudDialogflowCxV3ImportFlowResponse", @@ -10415,6 +10481,27 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ExportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse": { + "description": "The response message for EntityTypes.ExportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse", + "properties": { + "entityTypesContent": { + "$ref": "GoogleCloudDialogflowCxV3beta1InlineDestination", + "description": "Uncompressed byte content for entity types. This field is populated only if `entity_types_content_inline` is set to true in ExportEntityTypesRequest." + }, + "entityTypesUri": { + "description": "The URI to a file containing the exported entity types. This field is populated only if `entity_types_uri` is specified in ExportEntityTypesRequest.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ExportFlowResponse": { "description": "The response message for Flows.ExportFlow.", "id": "GoogleCloudDialogflowCxV3beta1ExportFlowResponse", @@ -10715,6 +10802,51 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ImportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse": { + "description": "The response message for EntityTypes.ImportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse", + "properties": { + "conflictingResources": { + "$ref": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources", + "description": "Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest." + }, + "entityTypes": { + "description": "The unique identifier of the imported entity types. Format: `projects//locations//agents//entity_types/`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources": { + "description": "Conflicting resources detected during the import process. Only filled when REPORT_CONFLICT is set in the request and there are conflicts in the display names.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources", + "properties": { + "entityDisplayNames": { + "description": "Display names of conflicting entities.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityTypeDisplayNames": { + "description": "Display names of conflicting entity types.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ImportFlowResponse": { "description": "The response message for Flows.ImportFlow.", "id": "GoogleCloudDialogflowCxV3beta1ImportFlowResponse", @@ -14437,6 +14569,13 @@ "summaryText": { "description": "Text of actual submitted summary.", "type": "string" + }, + "textSections": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Actual text sections of submitted summary.", + "type": "object" } }, "type": "object" diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index cb07e652952..1278b12b528 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -1807,6 +1807,48 @@ func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ExportEntityTypesMetadata: Metadata returned +// for the EntityTypes.ExportEntityTypes long running operation. +type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3ExportEntityTypesResponse: The response +// message for EntityTypes.ExportEntityTypes. +type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct { + // EntityTypesContent: Uncompressed byte content for entity types. This + // field is populated only if `entity_types_content_inline` is set to + // true in ExportEntityTypesRequest. + EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"` + + // EntityTypesUri: The URI to a file containing the exported entity + // types. This field is populated only if `entity_types_uri` is + // specified in ExportEntityTypesRequest. + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityTypesContent") + // 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. "EntityTypesContent") 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 *GoogleCloudDialogflowCxV3ExportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ExportFlowResponse: The response message for // Flows.ExportFlow. type GoogleCloudDialogflowCxV3ExportFlowResponse struct { @@ -2416,6 +2458,82 @@ func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ImportEntityTypesMetadata: Metadata returned +// for the EntityTypes.ImportEntityTypes long running operation. +type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3ImportEntityTypesResponse: The response +// message for EntityTypes.ImportEntityTypes. +type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct { + // ConflictingResources: Info which resources have conflicts when + // REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest. + ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"` + + // EntityTypes: The unique identifier of the imported entity types. + // Format: `projects//locations//agents//entity_types/`. + EntityTypes []string `json:"entityTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConflictingResources") 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. "ConflictingResources") 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 *GoogleCloudDialogflowCxV3ImportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources +// : Conflicting resources detected during the import process. Only +// filled when REPORT_CONFLICT is set in the request and there are +// conflicts in the display names. +type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct { + // EntityDisplayNames: Display names of conflicting entities. + EntityDisplayNames []string `json:"entityDisplayNames,omitempty"` + + // EntityTypeDisplayNames: Display names of conflicting entity types. + EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityDisplayNames") + // 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. "EntityDisplayNames") 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 *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ImportFlowResponse: The response message for // Flows.ImportFlow. type GoogleCloudDialogflowCxV3ImportFlowResponse struct { @@ -5898,6 +6016,49 @@ func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata: Metadata +// returned for the EntityTypes.ExportEntityTypes long running +// operation. +type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse: The response +// message for EntityTypes.ExportEntityTypes. +type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct { + // EntityTypesContent: Uncompressed byte content for entity types. This + // field is populated only if `entity_types_content_inline` is set to + // true in ExportEntityTypesRequest. + EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"` + + // EntityTypesUri: The URI to a file containing the exported entity + // types. This field is populated only if `entity_types_uri` is + // specified in ExportEntityTypesRequest. + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityTypesContent") + // 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. "EntityTypesContent") 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 *GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ExportFlowResponse: The response // message for Flows.ExportFlow. type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct { @@ -6509,6 +6670,83 @@ func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata: Metadata +// returned for the EntityTypes.ImportEntityTypes long running +// operation. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse: The response +// message for EntityTypes.ImportEntityTypes. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct { + // ConflictingResources: Info which resources have conflicts when + // REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest. + ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"` + + // EntityTypes: The unique identifier of the imported entity types. + // Format: `projects//locations//agents//entity_types/`. + EntityTypes []string `json:"entityTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConflictingResources") 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. "ConflictingResources") 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 *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingReso +// urces: Conflicting resources detected during the import process. Only +// filled when REPORT_CONFLICT is set in the request and there are +// conflicts in the display names. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct { + // EntityDisplayNames: Display names of conflicting entities. + EntityDisplayNames []string `json:"entityDisplayNames,omitempty"` + + // EntityTypeDisplayNames: Display names of conflicting entity types. + EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityDisplayNames") + // 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. "EntityDisplayNames") 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 *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ImportFlowResponse: The response // message for Flows.ImportFlow. type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct { @@ -12810,6 +13048,9 @@ type GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback str // SummaryText: Text of actual submitted summary. SummaryText string `json:"summaryText,omitempty"` + // TextSections: Optional. Actual text sections of submitted summary. + TextSections map[string]string `json:"textSections,omitempty"` + // ForceSendFields is a list of field names (e.g. "StartTimestamp") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index bb5105ac2fa..99d8f9c07e2 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -662,6 +662,35 @@ "https://www.googleapis.com/auth/dialogflow" ] }, + "export": { + "description": "Exports the selected entity types.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes:export", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.entityTypes.export", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the parent agent to export entity types. Format: `projects//locations//agents/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/entityTypes:export", + "request": { + "$ref": "GoogleCloudDialogflowCxV3ExportEntityTypesRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, "get": { "description": "Retrieves the specified entity type.", "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes/{entityTypesId}", @@ -693,6 +722,35 @@ "https://www.googleapis.com/auth/dialogflow" ] }, + "import": { + "description": "Imports the specified entitytypes into the agent.", + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes:import", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.entityTypes.import", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The agent to import the entity types into. Format: `projects//locations//agents/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3/{+parent}/entityTypes:import", + "request": { + "$ref": "GoogleCloudDialogflowCxV3ImportEntityTypesRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, "list": { "description": "Returns the list of all entity types in the specified agent.", "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes", @@ -4395,7 +4453,7 @@ } } }, - "revision": "20240122", + "revision": "20240131", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -5802,6 +5860,67 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ExportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ExportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3ExportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ExportEntityTypesRequest": { + "description": "The request message for EntityTypes.ExportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3ExportEntityTypesRequest", + "properties": { + "dataFormat": { + "description": "Optional. The data format of the exported entity types. If not specified, `BLOB` is assumed.", + "enum": [ + "DATA_FORMAT_UNSPECIFIED", + "BLOB", + "JSON_PACKAGE" + ], + "enumDescriptions": [ + "Unspecified format. Treated as `BLOB`.", + "EntityTypes will be exported as raw bytes.", + "EntityTypes will be exported in JSON Package format." + ], + "type": "string" + }, + "entityTypes": { + "description": "Required. The name of the entity types to export. Format: `projects//locations//agents//entityTypes/`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityTypesContentInline": { + "description": "Optional. The option to return the serialized entity types inline.", + "type": "boolean" + }, + "entityTypesUri": { + "description": "Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the entity types to. The format of this URI must be `gs:///`. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).", + "type": "string" + }, + "languageCode": { + "description": "Optional. The language to retrieve the entity type for. The following fields are language dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, all language dependent fields will be retrieved. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ExportEntityTypesResponse": { + "description": "The response message for EntityTypes.ExportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3ExportEntityTypesResponse", + "properties": { + "entityTypesContent": { + "$ref": "GoogleCloudDialogflowCxV3InlineDestination", + "description": "Uncompressed byte content for entity types. This field is populated only if `entity_types_content_inline` is set to true in ExportEntityTypesRequest." + }, + "entityTypesUri": { + "description": "The URI to a file containing the exported entity types. This field is populated only if `entity_types_uri` is specified in ExportEntityTypesRequest.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ExportFlowRequest": { "description": "The request message for Flows.ExportFlow.", "id": "GoogleCloudDialogflowCxV3ExportFlowRequest", @@ -6483,6 +6602,90 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ImportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ImportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ImportEntityTypesRequest": { + "description": "The request message for EntityTypes.ImportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesRequest", + "properties": { + "entityTypesContent": { + "$ref": "GoogleCloudDialogflowCxV3InlineSource", + "description": "Uncompressed byte content of entity types." + }, + "entityTypesUri": { + "description": "The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from. The format of this URI must be `gs:///`. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).", + "type": "string" + }, + "mergeOption": { + "description": "Required. Merge option for importing entity types.", + "enum": [ + "MERGE_OPTION_UNSPECIFIED", + "REPLACE", + "MERGE", + "RENAME", + "REPORT_CONFLICT", + "KEEP" + ], + "enumDescriptions": [ + "Unspecified. If used, system uses REPORT_CONFLICT as default.", + "Replace the original entity type in the agent with the new entity type when display name conflicts exist.", + "Merge the original entity type with the new entity type when display name conflicts exist.", + "Create new entity types with new display names to differentiate them from the existing entity types when display name conflicts exist.", + "Report conflict information if display names conflict is detected. Otherwise, import entity types.", + "Keep the original entity type and discard the conflicting new entity type when display name conflicts exist." + ], + "type": "string" + }, + "targetEntityType": { + "description": "Optional. The target entity type to import into. Format: `projects//locations//agents//entity_types/`. If set, there should be only one entity type included in entity_types, of which the type should match the type of the target entity type. All entities in the imported entity type will be added to the target entity type.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ImportEntityTypesResponse": { + "description": "The response message for EntityTypes.ImportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesResponse", + "properties": { + "conflictingResources": { + "$ref": "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources", + "description": "Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest." + }, + "entityTypes": { + "description": "The unique identifier of the imported entity types. Format: `projects//locations//agents//entity_types/`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources": { + "description": "Conflicting resources detected during the import process. Only filled when REPORT_CONFLICT is set in the request and there are conflicts in the display names.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources", + "properties": { + "entityDisplayNames": { + "description": "Display names of conflicting entities.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityTypeDisplayNames": { + "description": "Display names of conflicting entity types.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ImportFlowRequest": { "description": "The request message for Flows.ImportFlow.", "id": "GoogleCloudDialogflowCxV3ImportFlowRequest", @@ -10112,6 +10315,27 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ExportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse": { + "description": "The response message for EntityTypes.ExportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse", + "properties": { + "entityTypesContent": { + "$ref": "GoogleCloudDialogflowCxV3beta1InlineDestination", + "description": "Uncompressed byte content for entity types. This field is populated only if `entity_types_content_inline` is set to true in ExportEntityTypesRequest." + }, + "entityTypesUri": { + "description": "The URI to a file containing the exported entity types. This field is populated only if `entity_types_uri` is specified in ExportEntityTypesRequest.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ExportFlowResponse": { "description": "The response message for Flows.ExportFlow.", "id": "GoogleCloudDialogflowCxV3beta1ExportFlowResponse", @@ -10412,6 +10636,51 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ImportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse": { + "description": "The response message for EntityTypes.ImportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse", + "properties": { + "conflictingResources": { + "$ref": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources", + "description": "Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest." + }, + "entityTypes": { + "description": "The unique identifier of the imported entity types. Format: `projects//locations//agents//entity_types/`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources": { + "description": "Conflicting resources detected during the import process. Only filled when REPORT_CONFLICT is set in the request and there are conflicts in the display names.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources", + "properties": { + "entityDisplayNames": { + "description": "Display names of conflicting entities.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityTypeDisplayNames": { + "description": "Display names of conflicting entity types.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ImportFlowResponse": { "description": "The response message for Flows.ImportFlow.", "id": "GoogleCloudDialogflowCxV3beta1ImportFlowResponse", diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 11a95708365..09b6f9b0c82 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -3073,6 +3073,112 @@ func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ExportEntityTypesMetadata: Metadata returned +// for the EntityTypes.ExportEntityTypes long running operation. +type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3ExportEntityTypesRequest: The request +// message for EntityTypes.ExportEntityTypes. +type GoogleCloudDialogflowCxV3ExportEntityTypesRequest struct { + // DataFormat: Optional. The data format of the exported entity types. + // If not specified, `BLOB` is assumed. + // + // Possible values: + // "DATA_FORMAT_UNSPECIFIED" - Unspecified format. Treated as `BLOB`. + // "BLOB" - EntityTypes will be exported as raw bytes. + // "JSON_PACKAGE" - EntityTypes will be exported in JSON Package + // format. + DataFormat string `json:"dataFormat,omitempty"` + + // EntityTypes: Required. The name of the entity types to export. + // Format: `projects//locations//agents//entityTypes/`. + EntityTypes []string `json:"entityTypes,omitempty"` + + // EntityTypesContentInline: Optional. The option to return the + // serialized entity types inline. + EntityTypesContentInline bool `json:"entityTypesContentInline,omitempty"` + + // EntityTypesUri: Optional. The Google Cloud Storage + // (https://cloud.google.com/storage/docs/) URI to export the entity + // types to. The format of this URI must be `gs:///`. Dialogflow + // performs a write operation for the Cloud Storage object on the + // caller's behalf, so your request authentication must have write + // permissions for the object. For more information, see Dialogflow + // access control + // (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // LanguageCode: Optional. The language to retrieve the entity type for. + // The following fields are language dependent: * + // `EntityType.entities.value` * `EntityType.entities.synonyms` * + // `EntityType.excluded_phrases.value` If not specified, all language + // dependent fields will be retrieved. Many languages + // (https://cloud.google.com/dialogflow/docs/reference/language) are + // supported. Note: languages must be enabled in the agent before they + // can be used. + LanguageCode string `json:"languageCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataFormat") 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. "DataFormat") 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 *GoogleCloudDialogflowCxV3ExportEntityTypesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ExportEntityTypesResponse: The response +// message for EntityTypes.ExportEntityTypes. +type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct { + // EntityTypesContent: Uncompressed byte content for entity types. This + // field is populated only if `entity_types_content_inline` is set to + // true in ExportEntityTypesRequest. + EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"` + + // EntityTypesUri: The URI to a file containing the exported entity + // types. This field is populated only if `entity_types_uri` is + // specified in ExportEntityTypesRequest. + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityTypesContent") + // 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. "EntityTypesContent") 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 *GoogleCloudDialogflowCxV3ExportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ExportFlowRequest: The request message for // Flows.ExportFlow. type GoogleCloudDialogflowCxV3ExportFlowRequest struct { @@ -4403,6 +4509,146 @@ func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ImportEntityTypesMetadata: Metadata returned +// for the EntityTypes.ImportEntityTypes long running operation. +type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3ImportEntityTypesRequest: The request +// message for EntityTypes.ImportEntityTypes. +type GoogleCloudDialogflowCxV3ImportEntityTypesRequest struct { + // EntityTypesContent: Uncompressed byte content of entity types. + EntityTypesContent *GoogleCloudDialogflowCxV3InlineSource `json:"entityTypesContent,omitempty"` + + // EntityTypesUri: The Google Cloud Storage + // (https://cloud.google.com/storage/docs/) URI to import entity types + // from. The format of this URI must be `gs:///`. Dialogflow performs a + // read operation for the Cloud Storage object on the caller's behalf, + // so your request authentication must have read permissions for the + // object. For more information, see Dialogflow access control + // (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // MergeOption: Required. Merge option for importing entity types. + // + // Possible values: + // "MERGE_OPTION_UNSPECIFIED" - Unspecified. If used, system uses + // REPORT_CONFLICT as default. + // "REPLACE" - Replace the original entity type in the agent with the + // new entity type when display name conflicts exist. + // "MERGE" - Merge the original entity type with the new entity type + // when display name conflicts exist. + // "RENAME" - Create new entity types with new display names to + // differentiate them from the existing entity types when display name + // conflicts exist. + // "REPORT_CONFLICT" - Report conflict information if display names + // conflict is detected. Otherwise, import entity types. + // "KEEP" - Keep the original entity type and discard the conflicting + // new entity type when display name conflicts exist. + MergeOption string `json:"mergeOption,omitempty"` + + // TargetEntityType: Optional. The target entity type to import into. + // Format: `projects//locations//agents//entity_types/`. If set, there + // should be only one entity type included in entity_types, of which the + // type should match the type of the target entity type. All entities in + // the imported entity type will be added to the target entity type. + TargetEntityType string `json:"targetEntityType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityTypesContent") + // 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. "EntityTypesContent") 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 *GoogleCloudDialogflowCxV3ImportEntityTypesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ImportEntityTypesResponse: The response +// message for EntityTypes.ImportEntityTypes. +type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct { + // ConflictingResources: Info which resources have conflicts when + // REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest. + ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"` + + // EntityTypes: The unique identifier of the imported entity types. + // Format: `projects//locations//agents//entity_types/`. + EntityTypes []string `json:"entityTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConflictingResources") 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. "ConflictingResources") 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 *GoogleCloudDialogflowCxV3ImportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources +// : Conflicting resources detected during the import process. Only +// filled when REPORT_CONFLICT is set in the request and there are +// conflicts in the display names. +type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct { + // EntityDisplayNames: Display names of conflicting entities. + EntityDisplayNames []string `json:"entityDisplayNames,omitempty"` + + // EntityTypeDisplayNames: Display names of conflicting entity types. + EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityDisplayNames") + // 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. "EntityDisplayNames") 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 *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ImportFlowRequest: The request message for // Flows.ImportFlow. type GoogleCloudDialogflowCxV3ImportFlowRequest struct { @@ -11104,6 +11350,49 @@ func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata: Metadata +// returned for the EntityTypes.ExportEntityTypes long running +// operation. +type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse: The response +// message for EntityTypes.ExportEntityTypes. +type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct { + // EntityTypesContent: Uncompressed byte content for entity types. This + // field is populated only if `entity_types_content_inline` is set to + // true in ExportEntityTypesRequest. + EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"` + + // EntityTypesUri: The URI to a file containing the exported entity + // types. This field is populated only if `entity_types_uri` is + // specified in ExportEntityTypesRequest. + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityTypesContent") + // 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. "EntityTypesContent") 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 *GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ExportFlowResponse: The response // message for Flows.ExportFlow. type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct { @@ -11715,6 +12004,83 @@ func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata: Metadata +// returned for the EntityTypes.ImportEntityTypes long running +// operation. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse: The response +// message for EntityTypes.ImportEntityTypes. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct { + // ConflictingResources: Info which resources have conflicts when + // REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest. + ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"` + + // EntityTypes: The unique identifier of the imported entity types. + // Format: `projects//locations//agents//entity_types/`. + EntityTypes []string `json:"entityTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConflictingResources") 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. "ConflictingResources") 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 *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingReso +// urces: Conflicting resources detected during the import process. Only +// filled when REPORT_CONFLICT is set in the request and there are +// conflicts in the display names. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct { + // EntityDisplayNames: Display names of conflicting entities. + EntityDisplayNames []string `json:"entityDisplayNames,omitempty"` + + // EntityTypeDisplayNames: Display names of conflicting entity types. + EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityDisplayNames") + // 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. "EntityDisplayNames") 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 *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ImportFlowResponse: The response // message for Flows.ImportFlow. type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct { @@ -25044,6 +25410,150 @@ func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Do(opts ...googleapi.Call } +// method id "dialogflow.projects.locations.agents.entityTypes.export": + +type ProjectsLocationsAgentsEntityTypesExportCall struct { + s *Service + parent string + googleclouddialogflowcxv3exportentitytypesrequest *GoogleCloudDialogflowCxV3ExportEntityTypesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Export: Exports the selected entity types. +// +// - parent: The name of the parent agent to export entity types. +// Format: `projects//locations//agents/`. +func (r *ProjectsLocationsAgentsEntityTypesService) Export(parent string, googleclouddialogflowcxv3exportentitytypesrequest *GoogleCloudDialogflowCxV3ExportEntityTypesRequest) *ProjectsLocationsAgentsEntityTypesExportCall { + c := &ProjectsLocationsAgentsEntityTypesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddialogflowcxv3exportentitytypesrequest = googleclouddialogflowcxv3exportentitytypesrequest + 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 *ProjectsLocationsAgentsEntityTypesExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesExportCall { + 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 *ProjectsLocationsAgentsEntityTypesExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesExportCall { + 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 *ProjectsLocationsAgentsEntityTypesExportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsEntityTypesExportCall) 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.googleclouddialogflowcxv3exportentitytypesrequest) + 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, "v3/{+parent}/entityTypes:export") + 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 "dialogflow.projects.locations.agents.entityTypes.export" 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 *ProjectsLocationsAgentsEntityTypesExportCall) 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": "Exports the selected entity types.", + // "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes:export", + // "httpMethod": "POST", + // "id": "dialogflow.projects.locations.agents.entityTypes.export", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The name of the parent agent to export entity types. Format: `projects//locations//agents/`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v3/{+parent}/entityTypes:export", + // "request": { + // "$ref": "GoogleCloudDialogflowCxV3ExportEntityTypesRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/dialogflow" + // ] + // } + +} + // method id "dialogflow.projects.locations.agents.entityTypes.get": type ProjectsLocationsAgentsEntityTypesGetCall struct { @@ -25212,6 +25722,150 @@ func (c *ProjectsLocationsAgentsEntityTypesGetCall) Do(opts ...googleapi.CallOpt } +// method id "dialogflow.projects.locations.agents.entityTypes.import": + +type ProjectsLocationsAgentsEntityTypesImportCall struct { + s *Service + parent string + googleclouddialogflowcxv3importentitytypesrequest *GoogleCloudDialogflowCxV3ImportEntityTypesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Import: Imports the specified entitytypes into the agent. +// +// - parent: The agent to import the entity types into. Format: +// `projects//locations//agents/`. +func (r *ProjectsLocationsAgentsEntityTypesService) Import(parent string, googleclouddialogflowcxv3importentitytypesrequest *GoogleCloudDialogflowCxV3ImportEntityTypesRequest) *ProjectsLocationsAgentsEntityTypesImportCall { + c := &ProjectsLocationsAgentsEntityTypesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddialogflowcxv3importentitytypesrequest = googleclouddialogflowcxv3importentitytypesrequest + 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 *ProjectsLocationsAgentsEntityTypesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesImportCall { + 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 *ProjectsLocationsAgentsEntityTypesImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesImportCall { + 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 *ProjectsLocationsAgentsEntityTypesImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsEntityTypesImportCall) 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.googleclouddialogflowcxv3importentitytypesrequest) + 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, "v3/{+parent}/entityTypes:import") + 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 "dialogflow.projects.locations.agents.entityTypes.import" 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 *ProjectsLocationsAgentsEntityTypesImportCall) 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": "Imports the specified entitytypes into the agent.", + // "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes:import", + // "httpMethod": "POST", + // "id": "dialogflow.projects.locations.agents.entityTypes.import", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The agent to import the entity types into. Format: `projects//locations//agents/`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v3/{+parent}/entityTypes:import", + // "request": { + // "$ref": "GoogleCloudDialogflowCxV3ImportEntityTypesRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/dialogflow" + // ] + // } + +} + // method id "dialogflow.projects.locations.agents.entityTypes.list": type ProjectsLocationsAgentsEntityTypesListCall struct { diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index b043c35c228..ce2e995866e 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -662,6 +662,35 @@ "https://www.googleapis.com/auth/dialogflow" ] }, + "export": { + "description": "Exports the selected entity types.", + "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes:export", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.entityTypes.export", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the parent agent to export entity types. Format: `projects//locations//agents/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3beta1/{+parent}/entityTypes:export", + "request": { + "$ref": "GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, "get": { "description": "Retrieves the specified entity type.", "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes/{entityTypesId}", @@ -693,6 +722,35 @@ "https://www.googleapis.com/auth/dialogflow" ] }, + "import": { + "description": "Imports the specified entitytypes into the agent.", + "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes:import", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.entityTypes.import", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The agent to import the entity types into. Format: `projects//locations//agents/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3beta1/{+parent}/entityTypes:import", + "request": { + "$ref": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, "list": { "description": "Returns the list of all entity types in the specified agent.", "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes", @@ -4395,7 +4453,7 @@ } } }, - "revision": "20240122", + "revision": "20240131", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -4903,6 +4961,27 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ExportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ExportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3ExportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ExportEntityTypesResponse": { + "description": "The response message for EntityTypes.ExportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3ExportEntityTypesResponse", + "properties": { + "entityTypesContent": { + "$ref": "GoogleCloudDialogflowCxV3InlineDestination", + "description": "Uncompressed byte content for entity types. This field is populated only if `entity_types_content_inline` is set to true in ExportEntityTypesRequest." + }, + "entityTypesUri": { + "description": "The URI to a file containing the exported entity types. This field is populated only if `entity_types_uri` is specified in ExportEntityTypesRequest.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ExportFlowResponse": { "description": "The response message for Flows.ExportFlow.", "id": "GoogleCloudDialogflowCxV3ExportFlowResponse", @@ -5203,6 +5282,51 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3ImportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ImportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ImportEntityTypesResponse": { + "description": "The response message for EntityTypes.ImportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesResponse", + "properties": { + "conflictingResources": { + "$ref": "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources", + "description": "Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest." + }, + "entityTypes": { + "description": "The unique identifier of the imported entity types. Format: `projects//locations//agents//entity_types/`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources": { + "description": "Conflicting resources detected during the import process. Only filled when REPORT_CONFLICT is set in the request and there are conflicts in the display names.", + "id": "GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources", + "properties": { + "entityDisplayNames": { + "description": "Display names of conflicting entities.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityTypeDisplayNames": { + "description": "Display names of conflicting entity types.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3ImportFlowResponse": { "description": "The response message for Flows.ImportFlow.", "id": "GoogleCloudDialogflowCxV3ImportFlowResponse", @@ -8014,6 +8138,67 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ExportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest": { + "description": "The request message for EntityTypes.ExportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest", + "properties": { + "dataFormat": { + "description": "Optional. The data format of the exported entity types. If not specified, `BLOB` is assumed.", + "enum": [ + "DATA_FORMAT_UNSPECIFIED", + "BLOB", + "JSON_PACKAGE" + ], + "enumDescriptions": [ + "Unspecified format. Treated as `BLOB`.", + "EntityTypes will be exported as raw bytes.", + "EntityTypes will be exported in JSON Package format." + ], + "type": "string" + }, + "entityTypes": { + "description": "Required. The name of the entity types to export. Format: `projects//locations//agents//entityTypes/`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityTypesContentInline": { + "description": "Optional. The option to return the serialized entity types inline.", + "type": "boolean" + }, + "entityTypesUri": { + "description": "Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the entity types to. The format of this URI must be `gs:///`. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).", + "type": "string" + }, + "languageCode": { + "description": "Optional. The language to retrieve the entity type for. The following fields are language dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, all language dependent fields will be retrieved. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse": { + "description": "The response message for EntityTypes.ExportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse", + "properties": { + "entityTypesContent": { + "$ref": "GoogleCloudDialogflowCxV3beta1InlineDestination", + "description": "Uncompressed byte content for entity types. This field is populated only if `entity_types_content_inline` is set to true in ExportEntityTypesRequest." + }, + "entityTypesUri": { + "description": "The URI to a file containing the exported entity types. This field is populated only if `entity_types_uri` is specified in ExportEntityTypesRequest.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ExportFlowRequest": { "description": "The request message for Flows.ExportFlow.", "id": "GoogleCloudDialogflowCxV3beta1ExportFlowRequest", @@ -8695,6 +8880,90 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata": { + "description": "Metadata returned for the EntityTypes.ImportEntityTypes long running operation.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest": { + "description": "The request message for EntityTypes.ImportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest", + "properties": { + "entityTypesContent": { + "$ref": "GoogleCloudDialogflowCxV3beta1InlineSource", + "description": "Uncompressed byte content of entity types." + }, + "entityTypesUri": { + "description": "The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from. The format of this URI must be `gs:///`. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).", + "type": "string" + }, + "mergeOption": { + "description": "Required. Merge option for importing entity types.", + "enum": [ + "MERGE_OPTION_UNSPECIFIED", + "REPLACE", + "MERGE", + "RENAME", + "REPORT_CONFLICT", + "KEEP" + ], + "enumDescriptions": [ + "Unspecified. If used, system uses REPORT_CONFLICT as default.", + "Replace the original entity type in the agent with the new entity type when display name conflicts exist.", + "Merge the original entity type with the new entity type when display name conflicts exist.", + "Create new entity types with new display names to differentiate them from the existing entity types when display name conflicts exist.", + "Report conflict information if display names conflict is detected. Otherwise, import entity types.", + "Keep the original entity type and discard the conflicting new entity type when display name conflicts exist." + ], + "type": "string" + }, + "targetEntityType": { + "description": "Optional. The target entity type to import into. Format: `projects//locations//agents//entity_types/`. If set, there should be only one entity type included in entity_types, of which the type should match the type of the target entity type. All entities in the imported entity type will be added to the target entity type.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse": { + "description": "The response message for EntityTypes.ImportEntityTypes.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse", + "properties": { + "conflictingResources": { + "$ref": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources", + "description": "Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest." + }, + "entityTypes": { + "description": "The unique identifier of the imported entity types. Format: `projects//locations//agents//entity_types/`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources": { + "description": "Conflicting resources detected during the import process. Only filled when REPORT_CONFLICT is set in the request and there are conflicts in the display names.", + "id": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources", + "properties": { + "entityDisplayNames": { + "description": "Display names of conflicting entities.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityTypeDisplayNames": { + "description": "Display names of conflicting entity types.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ImportFlowRequest": { "description": "The request message for Flows.ImportFlow.", "id": "GoogleCloudDialogflowCxV3beta1ImportFlowRequest", diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 1b5e72e88a0..5350085a740 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -1471,6 +1471,48 @@ func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ExportEntityTypesMetadata: Metadata returned +// for the EntityTypes.ExportEntityTypes long running operation. +type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3ExportEntityTypesResponse: The response +// message for EntityTypes.ExportEntityTypes. +type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct { + // EntityTypesContent: Uncompressed byte content for entity types. This + // field is populated only if `entity_types_content_inline` is set to + // true in ExportEntityTypesRequest. + EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"` + + // EntityTypesUri: The URI to a file containing the exported entity + // types. This field is populated only if `entity_types_uri` is + // specified in ExportEntityTypesRequest. + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityTypesContent") + // 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. "EntityTypesContent") 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 *GoogleCloudDialogflowCxV3ExportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ExportFlowResponse: The response message for // Flows.ExportFlow. type GoogleCloudDialogflowCxV3ExportFlowResponse struct { @@ -2080,6 +2122,82 @@ func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3ImportEntityTypesMetadata: Metadata returned +// for the EntityTypes.ImportEntityTypes long running operation. +type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3ImportEntityTypesResponse: The response +// message for EntityTypes.ImportEntityTypes. +type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct { + // ConflictingResources: Info which resources have conflicts when + // REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest. + ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"` + + // EntityTypes: The unique identifier of the imported entity types. + // Format: `projects//locations//agents//entity_types/`. + EntityTypes []string `json:"entityTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConflictingResources") 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. "ConflictingResources") 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 *GoogleCloudDialogflowCxV3ImportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources +// : Conflicting resources detected during the import process. Only +// filled when REPORT_CONFLICT is set in the request and there are +// conflicts in the display names. +type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct { + // EntityDisplayNames: Display names of conflicting entities. + EntityDisplayNames []string `json:"entityDisplayNames,omitempty"` + + // EntityTypeDisplayNames: Display names of conflicting entity types. + EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityDisplayNames") + // 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. "EntityDisplayNames") 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 *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3ImportFlowResponse: The response message for // Flows.ImportFlow. type GoogleCloudDialogflowCxV3ImportFlowResponse struct { @@ -7166,6 +7284,113 @@ func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata: Metadata +// returned for the EntityTypes.ExportEntityTypes long running +// operation. +type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest: The request +// message for EntityTypes.ExportEntityTypes. +type GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest struct { + // DataFormat: Optional. The data format of the exported entity types. + // If not specified, `BLOB` is assumed. + // + // Possible values: + // "DATA_FORMAT_UNSPECIFIED" - Unspecified format. Treated as `BLOB`. + // "BLOB" - EntityTypes will be exported as raw bytes. + // "JSON_PACKAGE" - EntityTypes will be exported in JSON Package + // format. + DataFormat string `json:"dataFormat,omitempty"` + + // EntityTypes: Required. The name of the entity types to export. + // Format: `projects//locations//agents//entityTypes/`. + EntityTypes []string `json:"entityTypes,omitempty"` + + // EntityTypesContentInline: Optional. The option to return the + // serialized entity types inline. + EntityTypesContentInline bool `json:"entityTypesContentInline,omitempty"` + + // EntityTypesUri: Optional. The Google Cloud Storage + // (https://cloud.google.com/storage/docs/) URI to export the entity + // types to. The format of this URI must be `gs:///`. Dialogflow + // performs a write operation for the Cloud Storage object on the + // caller's behalf, so your request authentication must have write + // permissions for the object. For more information, see Dialogflow + // access control + // (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // LanguageCode: Optional. The language to retrieve the entity type for. + // The following fields are language dependent: * + // `EntityType.entities.value` * `EntityType.entities.synonyms` * + // `EntityType.excluded_phrases.value` If not specified, all language + // dependent fields will be retrieved. Many languages + // (https://cloud.google.com/dialogflow/docs/reference/language) are + // supported. Note: languages must be enabled in the agent before they + // can be used. + LanguageCode string `json:"languageCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataFormat") 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. "DataFormat") 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 *GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse: The response +// message for EntityTypes.ExportEntityTypes. +type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct { + // EntityTypesContent: Uncompressed byte content for entity types. This + // field is populated only if `entity_types_content_inline` is set to + // true in ExportEntityTypesRequest. + EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"` + + // EntityTypesUri: The URI to a file containing the exported entity + // types. This field is populated only if `entity_types_uri` is + // specified in ExportEntityTypesRequest. + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityTypesContent") + // 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. "EntityTypesContent") 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 *GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ExportFlowRequest: The request message // for Flows.ExportFlow. type GoogleCloudDialogflowCxV3beta1ExportFlowRequest struct { @@ -8497,6 +8722,147 @@ func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata: Metadata +// returned for the EntityTypes.ImportEntityTypes long running +// operation. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct { +} + +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest: The request +// message for EntityTypes.ImportEntityTypes. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest struct { + // EntityTypesContent: Uncompressed byte content of entity types. + EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineSource `json:"entityTypesContent,omitempty"` + + // EntityTypesUri: The Google Cloud Storage + // (https://cloud.google.com/storage/docs/) URI to import entity types + // from. The format of this URI must be `gs:///`. Dialogflow performs a + // read operation for the Cloud Storage object on the caller's behalf, + // so your request authentication must have read permissions for the + // object. For more information, see Dialogflow access control + // (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + EntityTypesUri string `json:"entityTypesUri,omitempty"` + + // MergeOption: Required. Merge option for importing entity types. + // + // Possible values: + // "MERGE_OPTION_UNSPECIFIED" - Unspecified. If used, system uses + // REPORT_CONFLICT as default. + // "REPLACE" - Replace the original entity type in the agent with the + // new entity type when display name conflicts exist. + // "MERGE" - Merge the original entity type with the new entity type + // when display name conflicts exist. + // "RENAME" - Create new entity types with new display names to + // differentiate them from the existing entity types when display name + // conflicts exist. + // "REPORT_CONFLICT" - Report conflict information if display names + // conflict is detected. Otherwise, import entity types. + // "KEEP" - Keep the original entity type and discard the conflicting + // new entity type when display name conflicts exist. + MergeOption string `json:"mergeOption,omitempty"` + + // TargetEntityType: Optional. The target entity type to import into. + // Format: `projects//locations//agents//entity_types/`. If set, there + // should be only one entity type included in entity_types, of which the + // type should match the type of the target entity type. All entities in + // the imported entity type will be added to the target entity type. + TargetEntityType string `json:"targetEntityType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityTypesContent") + // 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. "EntityTypesContent") 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 *GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse: The response +// message for EntityTypes.ImportEntityTypes. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct { + // ConflictingResources: Info which resources have conflicts when + // REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest. + ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"` + + // EntityTypes: The unique identifier of the imported entity types. + // Format: `projects//locations//agents//entity_types/`. + EntityTypes []string `json:"entityTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ConflictingResources") 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. "ConflictingResources") 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 *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingReso +// urces: Conflicting resources detected during the import process. Only +// filled when REPORT_CONFLICT is set in the request and there are +// conflicts in the display names. +type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct { + // EntityDisplayNames: Display names of conflicting entities. + EntityDisplayNames []string `json:"entityDisplayNames,omitempty"` + + // EntityTypeDisplayNames: Display names of conflicting entity types. + EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityDisplayNames") + // 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. "EntityDisplayNames") 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 *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ImportFlowRequest: The request message // for Flows.ImportFlow. type GoogleCloudDialogflowCxV3beta1ImportFlowRequest struct { @@ -25052,6 +25418,150 @@ func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Do(opts ...googleapi.Call } +// method id "dialogflow.projects.locations.agents.entityTypes.export": + +type ProjectsLocationsAgentsEntityTypesExportCall struct { + s *Service + parent string + googleclouddialogflowcxv3beta1exportentitytypesrequest *GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Export: Exports the selected entity types. +// +// - parent: The name of the parent agent to export entity types. +// Format: `projects//locations//agents/`. +func (r *ProjectsLocationsAgentsEntityTypesService) Export(parent string, googleclouddialogflowcxv3beta1exportentitytypesrequest *GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest) *ProjectsLocationsAgentsEntityTypesExportCall { + c := &ProjectsLocationsAgentsEntityTypesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddialogflowcxv3beta1exportentitytypesrequest = googleclouddialogflowcxv3beta1exportentitytypesrequest + 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 *ProjectsLocationsAgentsEntityTypesExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesExportCall { + 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 *ProjectsLocationsAgentsEntityTypesExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesExportCall { + 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 *ProjectsLocationsAgentsEntityTypesExportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsEntityTypesExportCall) 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.googleclouddialogflowcxv3beta1exportentitytypesrequest) + 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, "v3beta1/{+parent}/entityTypes:export") + 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 "dialogflow.projects.locations.agents.entityTypes.export" 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 *ProjectsLocationsAgentsEntityTypesExportCall) 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": "Exports the selected entity types.", + // "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes:export", + // "httpMethod": "POST", + // "id": "dialogflow.projects.locations.agents.entityTypes.export", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The name of the parent agent to export entity types. Format: `projects//locations//agents/`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v3beta1/{+parent}/entityTypes:export", + // "request": { + // "$ref": "GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/dialogflow" + // ] + // } + +} + // method id "dialogflow.projects.locations.agents.entityTypes.get": type ProjectsLocationsAgentsEntityTypesGetCall struct { @@ -25221,6 +25731,150 @@ func (c *ProjectsLocationsAgentsEntityTypesGetCall) Do(opts ...googleapi.CallOpt } +// method id "dialogflow.projects.locations.agents.entityTypes.import": + +type ProjectsLocationsAgentsEntityTypesImportCall struct { + s *Service + parent string + googleclouddialogflowcxv3beta1importentitytypesrequest *GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Import: Imports the specified entitytypes into the agent. +// +// - parent: The agent to import the entity types into. Format: +// `projects//locations//agents/`. +func (r *ProjectsLocationsAgentsEntityTypesService) Import(parent string, googleclouddialogflowcxv3beta1importentitytypesrequest *GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest) *ProjectsLocationsAgentsEntityTypesImportCall { + c := &ProjectsLocationsAgentsEntityTypesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddialogflowcxv3beta1importentitytypesrequest = googleclouddialogflowcxv3beta1importentitytypesrequest + 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 *ProjectsLocationsAgentsEntityTypesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesImportCall { + 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 *ProjectsLocationsAgentsEntityTypesImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesImportCall { + 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 *ProjectsLocationsAgentsEntityTypesImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsEntityTypesImportCall) 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.googleclouddialogflowcxv3beta1importentitytypesrequest) + 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, "v3beta1/{+parent}/entityTypes:import") + 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 "dialogflow.projects.locations.agents.entityTypes.import" 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 *ProjectsLocationsAgentsEntityTypesImportCall) 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": "Imports the specified entitytypes into the agent.", + // "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/entityTypes:import", + // "httpMethod": "POST", + // "id": "dialogflow.projects.locations.agents.entityTypes.import", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The agent to import the entity types into. Format: `projects//locations//agents/`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v3beta1/{+parent}/entityTypes:import", + // "request": { + // "$ref": "GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/dialogflow" + // ] + // } + +} + // method id "dialogflow.projects.locations.agents.entityTypes.list": type ProjectsLocationsAgentsEntityTypesListCall struct { diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 7b8ad1a17b2..e41e5f3baa1 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://dlp.googleapis.com/", "batchPath": "batch", "canonicalName": "DLP", - "description": "Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.", + "description": "Discover and protect your sensitive data. A fully managed service designed to help you discover, classify, and protect your valuable data assets with ease.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/dlp/docs/", "fullyEncodeReservedExpansion": true, @@ -3714,7 +3714,7 @@ } } }, - "revision": "20240113", + "revision": "20240204", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -3942,13 +3942,14 @@ "type": "integer" }, "sampleMethod": { + "description": "How to sample the data.", "enum": [ "SAMPLE_METHOD_UNSPECIFIED", "TOP", "RANDOM_START" ], "enumDescriptions": [ - "", + "No sampling.", "Scan groups of rows in the order BigQuery provides (default). Multiple groups of rows may be scanned in parallel, so results may not appear in the same order the rows are read.", "Randomly pick groups of rows to scan." ], @@ -4327,7 +4328,7 @@ "enumDescriptions": [ "Includes all files.", "Includes all file extensions not covered by another entry. Binary scanning attempts to convert the content of the file to utf_8 to scan the file. If you wish to avoid this fall back, specify one or more of the other file types in your storage scan.", - "Included file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.", + "Included file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.", "Included file extensions: bmp, gif, jpg, jpeg, jpe, png. Setting bytes_limit_per_file or bytes_limit_per_file_percent has no effect on image files. Image inspection is restricted to the `global`, `us`, `asia`, and `europe` regions.", "Microsoft Word files larger than 30 MB will be scanned as binary files. Included file extensions: docx, dotx, docm, dotm. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on Word files.", "PDF files larger than 30 MB will be scanned as binary files. Included file extensions: pdf. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on PDF files.", @@ -4347,13 +4348,14 @@ "type": "integer" }, "sampleMethod": { + "description": "How to sample the data.", "enum": [ "SAMPLE_METHOD_UNSPECIFIED", "TOP", "RANDOM_START" ], "enumDescriptions": [ - "", + "No sampling.", "Scan from the top (default).", "For each file larger than bytes_limit_per_file, randomly pick the offset to start scanning. The scanned bytes are contiguous." ], @@ -4499,7 +4501,7 @@ "Unused.", "Very few null entries.", "Some null entries.", - "", + "A few null entries.", "A lot of null entries." ], "type": "string" @@ -4680,6 +4682,7 @@ "type": "object" }, "GooglePrivacyDlpV2ContentItem": { + "description": "Type of content to inspect.", "id": "GooglePrivacyDlpV2ContentItem", "properties": { "byteItem": { @@ -5304,7 +5307,7 @@ "enumDescriptions": [ "Includes all files.", "Includes all file extensions not covered by another entry. Binary scanning attempts to convert the content of the file to utf_8 to scan the file. If you wish to avoid this fall back, specify one or more of the other file types in your storage scan.", - "Included file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.", + "Included file extensions: asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.", "Included file extensions: bmp, gif, jpg, jpeg, jpe, png. Setting bytes_limit_per_file or bytes_limit_per_file_percent has no effect on image files. Image inspection is restricted to the `global`, `us`, `asia`, and `europe` regions.", "Microsoft Word files larger than 30 MB will be scanned as binary files. Included file extensions: docx, dotx, docm, dotm. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on Word files.", "PDF files larger than 30 MB will be scanned as binary files. Included file extensions: pdf. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` has no effect on PDF files.", @@ -6470,6 +6473,7 @@ "id": "GooglePrivacyDlpV2ImageTransformations", "properties": { "transforms": { + "description": "List of transforms to make.", "items": { "$ref": "GooglePrivacyDlpV2ImageTransformation" }, @@ -7936,6 +7940,7 @@ "type": "object" }, "GooglePrivacyDlpV2ProfileStatus": { + "description": "Success or errors for the profile generation.", "id": "GooglePrivacyDlpV2ProfileStatus", "properties": { "status": { @@ -8203,10 +8208,12 @@ "id": "GooglePrivacyDlpV2RecordKey", "properties": { "bigQueryKey": { - "$ref": "GooglePrivacyDlpV2BigQueryKey" + "$ref": "GooglePrivacyDlpV2BigQueryKey", + "description": "Datastore key" }, "datastoreKey": { - "$ref": "GooglePrivacyDlpV2DatastoreKey" + "$ref": "GooglePrivacyDlpV2DatastoreKey", + "description": "Bigquery key" }, "idValues": { "description": "Values of identifying columns in the given row. Order of values matches the order of `identifying_fields` specified in the scanning request.", @@ -8249,6 +8256,7 @@ "type": "object" }, "GooglePrivacyDlpV2RecordTransformation": { + "description": "The field in a record to transform.", "id": "GooglePrivacyDlpV2RecordTransformation", "properties": { "containerTimestamp": { @@ -8649,7 +8657,8 @@ "description": "Hybrid inspection options." }, "timespanConfig": { - "$ref": "GooglePrivacyDlpV2TimespanConfig" + "$ref": "GooglePrivacyDlpV2TimespanConfig", + "description": "Configuration of the timespan of the items to include in scanning." } }, "type": "object" @@ -8659,6 +8668,7 @@ "id": "GooglePrivacyDlpV2StorageMetadataLabel", "properties": { "key": { + "description": "Label name.", "type": "string" } }, @@ -9271,10 +9281,10 @@ "TRANSFORM_TABLE" ], "enumDescriptions": [ - "", - "", - "", - "" + "Unused.", + "Body of a file.", + "Metadata for a file.", + "A table." ], "type": "string" }, @@ -9309,6 +9319,7 @@ "type": "object" }, "GooglePrivacyDlpV2TransformationResultStatus": { + "description": "The outcome of a transformation.", "id": "GooglePrivacyDlpV2TransformationResultStatus", "properties": { "details": { @@ -9325,7 +9336,7 @@ "SUCCESS" ], "enumDescriptions": [ - "", + "Unused.", "This will be set when a finding could not be transformed (i.e. outside user set bucket range).", "This will be set when a BigQuery transformation was successful but could not be stored back in BigQuery because the transformed row exceeds BigQuery's max row size.", "This will be set when there is a finding in the custom metadata of a file, but at the write time of the transformed file, this key / value pair is unretrievable.", @@ -9687,7 +9698,7 @@ } }, "servicePath": "", - "title": "Cloud Data Loss Prevention (DLP)", + "title": "Sensitive Data Protection (DLP)", "version": "v2", "version_module": true } \ No newline at end of file diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index b0a295f64ba..04eb44376c7 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package dlp provides access to the Cloud Data Loss Prevention (DLP). +// Package dlp provides access to the Sensitive Data Protection (DLP). // // This package is DEPRECATED. Use package cloud.google.com/go/dlp/apiv2 instead. // @@ -877,8 +877,10 @@ type GooglePrivacyDlpV2BigQueryOptions struct { // recommend using `rowsLimit` instead. RowsLimitPercent int64 `json:"rowsLimitPercent,omitempty"` + // SampleMethod: How to sample the data. + // // Possible values: - // "SAMPLE_METHOD_UNSPECIFIED" + // "SAMPLE_METHOD_UNSPECIFIED" - No sampling. // "TOP" - Scan groups of rows in the order BigQuery provides // (default). Multiple groups of rows may be scanned in parallel, so // results may not appear in the same order the rows are read. @@ -1548,8 +1550,9 @@ type GooglePrivacyDlpV2CloudStorageOptions struct { // epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, // m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, // pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, - // xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md, txt, text, - // tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml. + // xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, ocaml, md, + // txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, + // yaml. // "IMAGE" - Included file extensions: bmp, gif, jpg, jpeg, jpe, png. // Setting bytes_limit_per_file or bytes_limit_per_file_percent has no // effect on image files. Image inspection is restricted to the @@ -1580,8 +1583,10 @@ type GooglePrivacyDlpV2CloudStorageOptions struct { // limit. Defaults to 0. FilesLimitPercent int64 `json:"filesLimitPercent,omitempty"` + // SampleMethod: How to sample the data. + // // Possible values: - // "SAMPLE_METHOD_UNSPECIFIED" + // "SAMPLE_METHOD_UNSPECIFIED" - No sampling. // "TOP" - Scan from the top (default). // "RANDOM_START" - For each file larger than bytes_limit_per_file, // randomly pick the offset to start scanning. The scanned bytes are @@ -1825,7 +1830,7 @@ type GooglePrivacyDlpV2ColumnDataProfile struct { // "NULL_PERCENTAGE_LEVEL_UNSPECIFIED" - Unused. // "NULL_PERCENTAGE_VERY_LOW" - Very few null entries. // "NULL_PERCENTAGE_LOW" - Some null entries. - // "NULL_PERCENTAGE_MEDIUM" + // "NULL_PERCENTAGE_MEDIUM" - A few null entries. // "NULL_PERCENTAGE_HIGH" - A lot of null entries. EstimatedNullPercentage string `json:"estimatedNullPercentage,omitempty"` @@ -2082,6 +2087,7 @@ func (s *GooglePrivacyDlpV2Container) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2ContentItem: Type of content to inspect. type GooglePrivacyDlpV2ContentItem struct { // ByteItem: Content data to inspect or redact. Replaces `type` and // `data`. @@ -3295,8 +3301,9 @@ type GooglePrivacyDlpV2Deidentify struct { // epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, mkd, markdown, // m, ml, mli, perl, pl, plist, pm, php, phtml, pht, properties, py, // pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, shtml, shtm, - // xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md, txt, text, - // tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml. + // xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, ocaml, md, + // txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, + // yaml. // "IMAGE" - Included file extensions: bmp, gif, jpg, jpeg, jpe, png. // Setting bytes_limit_per_file or bytes_limit_per_file_percent has no // effect on image files. Image inspection is restricted to the @@ -5446,6 +5453,7 @@ func (s *GooglePrivacyDlpV2ImageTransformation) MarshalJSON() ([]byte, error) { // GooglePrivacyDlpV2ImageTransformations: A type of transformation that // is applied over images. type GooglePrivacyDlpV2ImageTransformations struct { + // Transforms: List of transforms to make. Transforms []*GooglePrivacyDlpV2ImageTransformation `json:"transforms,omitempty"` // ForceSendFields is a list of field names (e.g. "Transforms") to @@ -7887,6 +7895,8 @@ func (s *GooglePrivacyDlpV2PrivacyMetric) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2ProfileStatus: Success or errors for the profile +// generation. type GooglePrivacyDlpV2ProfileStatus struct { // Status: Profiling status code and optional message. The `status.code` // value is 0 (default value) for OK. @@ -8379,8 +8389,10 @@ func (s *GooglePrivacyDlpV2RecordCondition) MarshalJSON() ([]byte, error) { // GooglePrivacyDlpV2RecordKey: Message for a unique key indicating a // record that contains a finding. type GooglePrivacyDlpV2RecordKey struct { + // BigQueryKey: Datastore key BigQueryKey *GooglePrivacyDlpV2BigQueryKey `json:"bigQueryKey,omitempty"` + // DatastoreKey: Bigquery key DatastoreKey *GooglePrivacyDlpV2DatastoreKey `json:"datastoreKey,omitempty"` // IdValues: Values of identifying columns in the given row. Order of @@ -8477,6 +8489,8 @@ func (s *GooglePrivacyDlpV2RecordSuppression) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2RecordTransformation: The field in a record to +// transform. type GooglePrivacyDlpV2RecordTransformation struct { // ContainerTimestamp: Findings container modification timestamp, if // applicable. @@ -9249,6 +9263,8 @@ type GooglePrivacyDlpV2StorageConfig struct { // HybridOptions: Hybrid inspection options. HybridOptions *GooglePrivacyDlpV2HybridOptions `json:"hybridOptions,omitempty"` + // TimespanConfig: Configuration of the timespan of the items to include + // in scanning. TimespanConfig *GooglePrivacyDlpV2TimespanConfig `json:"timespanConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "BigQueryOptions") to @@ -9278,6 +9294,7 @@ func (s *GooglePrivacyDlpV2StorageConfig) MarshalJSON() ([]byte, error) { // GooglePrivacyDlpV2StorageMetadataLabel: Storage metadata label to // indicate which metadata entry contains findings. type GooglePrivacyDlpV2StorageMetadataLabel struct { + // Key: Label name. Key string `json:"key,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to @@ -10251,10 +10268,10 @@ type GooglePrivacyDlpV2TransformationLocation struct { // where this finding occurred, if available. // // Possible values: - // "TRANSFORM_UNKNOWN_CONTAINER" - // "TRANSFORM_BODY" - // "TRANSFORM_METADATA" - // "TRANSFORM_TABLE" + // "TRANSFORM_UNKNOWN_CONTAINER" - Unused. + // "TRANSFORM_BODY" - Body of a file. + // "TRANSFORM_METADATA" - Metadata for a file. + // "TRANSFORM_TABLE" - A table. ContainerType string `json:"containerType,omitempty"` // FindingId: For infotype transformations, link to the corresponding @@ -10326,6 +10343,8 @@ func (s *GooglePrivacyDlpV2TransformationOverview) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2TransformationResultStatus: The outcome of a +// transformation. type GooglePrivacyDlpV2TransformationResultStatus struct { // Details: Detailed error codes and messages Details *GoogleRpcStatus `json:"details,omitempty"` @@ -10335,7 +10354,7 @@ type GooglePrivacyDlpV2TransformationResultStatus struct { // was not completely successful. // // Possible values: - // "STATE_TYPE_UNSPECIFIED" + // "STATE_TYPE_UNSPECIFIED" - Unused. // "INVALID_TRANSFORM" - This will be set when a finding could not be // transformed (i.e. outside user set bucket range). // "BIGQUERY_MAX_ROW_SIZE_EXCEEDED" - This will be set when a BigQuery