diff --git a/.gitignore b/.gitignore index 2339e6b..5d32b23 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ **/node_modules .coverage coverage -.idea/ .nyc_output docs/ out/ diff --git a/linkinator.config.json b/linkinator.config.json index 838f51f..29a223b 100644 --- a/linkinator.config.json +++ b/linkinator.config.json @@ -2,12 +2,6 @@ "recurse": true, "skip": [ "https://codecov.io/gh/googleapis/", - "https://github.com/googleapis/nodejs-contact-center-insights/blob/main/samples/createAnalysis.js", - "https://github.com/googleapis/nodejs-contact-center-insights/blob/main/samples/createConversation.js", - "https://github.com/googleapis/nodejs-contact-center-insights/blob/main/samples/createConversationWithTtl.js", - "https://github.com/googleapis/nodejs-contact-center-insights/blob/main/samples/enablePubSubNotifications.js", - "https://github.com/googleapis/nodejs-contact-center-insights/blob/main/samples/exportToBigquery.js", - "https://github.com/googleapis/nodejs-contact-center-insights/blob/main/samples/getOperation.js", "www.googleapis.com", "img.shields.io" ], diff --git a/protos/google/cloud/contactcenterinsights/v1/resources.proto b/protos/google/cloud/contactcenterinsights/v1/resources.proto index 80287cb..5a87b46 100644 --- a/protos/google/cloud/contactcenterinsights/v1/resources.proto +++ b/protos/google/cloud/contactcenterinsights/v1/resources.proto @@ -567,11 +567,17 @@ message IssueModel { // Configs for the input data used to create the issue model. message InputDataConfig { - // Required. Medium of conversations used in training data. - Conversation.Medium medium = 1 [(google.api.field_behavior) = REQUIRED]; + // Medium of conversations used in training data. This field is being + // deprecated. To specify the medium to be used in training a new issue + // model, set the `medium` field on `filter`. + Conversation.Medium medium = 1 [deprecated = true]; // Output only. Number of conversations used in training. Output only. int64 training_conversations_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A filter to reduce the conversations used for training the model to a + // specific subset. + string filter = 3; } // State of the model. @@ -730,6 +736,9 @@ message PhraseMatcher { // against. If the role is ROLE_UNSPECIFIED it will be matched against any // utterances in the transcript. ConversationParticipant.Role role_match = 10; + + // Output only. The most recent time at which the phrase matcher was updated. + google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A message representing a rule in the phrase matcher. diff --git a/protos/protos.d.ts b/protos/protos.d.ts index fb867f1..b6c0519 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -8066,6 +8066,9 @@ export namespace google { /** InputDataConfig trainingConversationsCount */ trainingConversationsCount?: (number|Long|string|null); + + /** InputDataConfig filter */ + filter?: (string|null); } /** Represents an InputDataConfig. */ @@ -8083,6 +8086,9 @@ export namespace google { /** InputDataConfig trainingConversationsCount. */ public trainingConversationsCount: (number|Long|string); + /** InputDataConfig filter. */ + public filter: string; + /** * Creates a new InputDataConfig instance using the specified properties. * @param [properties] Properties to set @@ -8506,6 +8512,9 @@ export namespace google { /** PhraseMatcher roleMatch */ roleMatch?: (google.cloud.contactcenterinsights.v1.ConversationParticipant.Role|keyof typeof google.cloud.contactcenterinsights.v1.ConversationParticipant.Role|null); + + /** PhraseMatcher updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } /** Represents a PhraseMatcher. */ @@ -8547,6 +8556,9 @@ export namespace google { /** PhraseMatcher roleMatch. */ public roleMatch: (google.cloud.contactcenterinsights.v1.ConversationParticipant.Role|keyof typeof google.cloud.contactcenterinsights.v1.ConversationParticipant.Role); + /** PhraseMatcher updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + /** * Creates a new PhraseMatcher instance using the specified properties. * @param [properties] Properties to set diff --git a/protos/protos.js b/protos/protos.js index 28fb461..bd4b48e 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -18777,6 +18777,7 @@ * @interface IInputDataConfig * @property {google.cloud.contactcenterinsights.v1.Conversation.Medium|null} [medium] InputDataConfig medium * @property {number|Long|null} [trainingConversationsCount] InputDataConfig trainingConversationsCount + * @property {string|null} [filter] InputDataConfig filter */ /** @@ -18810,6 +18811,14 @@ */ InputDataConfig.prototype.trainingConversationsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * InputDataConfig filter. + * @member {string} filter + * @memberof google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig + * @instance + */ + InputDataConfig.prototype.filter = ""; + /** * Creates a new InputDataConfig instance using the specified properties. * @function create @@ -18838,6 +18847,8 @@ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.medium); if (message.trainingConversationsCount != null && Object.hasOwnProperty.call(message, "trainingConversationsCount")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.trainingConversationsCount); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter); return writer; }; @@ -18878,6 +18889,9 @@ case 2: message.trainingConversationsCount = reader.int64(); break; + case 3: + message.filter = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -18925,6 +18939,9 @@ if (message.trainingConversationsCount != null && message.hasOwnProperty("trainingConversationsCount")) if (!$util.isInteger(message.trainingConversationsCount) && !(message.trainingConversationsCount && $util.isInteger(message.trainingConversationsCount.low) && $util.isInteger(message.trainingConversationsCount.high))) return "trainingConversationsCount: integer|Long expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; @@ -18963,6 +18980,8 @@ message.trainingConversationsCount = object.trainingConversationsCount; else if (typeof object.trainingConversationsCount === "object") message.trainingConversationsCount = new $util.LongBits(object.trainingConversationsCount.low >>> 0, object.trainingConversationsCount.high >>> 0).toNumber(); + if (object.filter != null) + message.filter = String(object.filter); return message; }; @@ -18986,6 +19005,7 @@ object.trainingConversationsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.trainingConversationsCount = options.longs === String ? "0" : 0; + object.filter = ""; } if (message.medium != null && message.hasOwnProperty("medium")) object.medium = options.enums === String ? $root.google.cloud.contactcenterinsights.v1.Conversation.Medium[message.medium] : message.medium; @@ -18994,6 +19014,8 @@ object.trainingConversationsCount = options.longs === String ? String(message.trainingConversationsCount) : message.trainingConversationsCount; else object.trainingConversationsCount = options.longs === String ? $util.Long.prototype.toString.call(message.trainingConversationsCount) : options.longs === Number ? new $util.LongBits(message.trainingConversationsCount.low >>> 0, message.trainingConversationsCount.high >>> 0).toNumber() : message.trainingConversationsCount; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; @@ -19843,6 +19865,7 @@ * @property {Array.|null} [phraseMatchRuleGroups] PhraseMatcher phraseMatchRuleGroups * @property {google.protobuf.ITimestamp|null} [activationUpdateTime] PhraseMatcher activationUpdateTime * @property {google.cloud.contactcenterinsights.v1.ConversationParticipant.Role|null} [roleMatch] PhraseMatcher roleMatch + * @property {google.protobuf.ITimestamp|null} [updateTime] PhraseMatcher updateTime */ /** @@ -19941,6 +19964,14 @@ */ PhraseMatcher.prototype.roleMatch = 0; + /** + * PhraseMatcher updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.contactcenterinsights.v1.PhraseMatcher + * @instance + */ + PhraseMatcher.prototype.updateTime = null; + /** * Creates a new PhraseMatcher instance using the specified properties. * @function create @@ -19986,6 +20017,8 @@ $root.google.protobuf.Timestamp.encode(message.activationUpdateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.roleMatch != null && Object.hasOwnProperty.call(message, "roleMatch")) writer.uint32(/* id 10, wireType 0 =*/80).int32(message.roleMatch); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; @@ -20052,6 +20085,9 @@ case 10: message.roleMatch = reader.int32(); break; + case 11: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -20141,6 +20177,11 @@ case 4: break; } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } return null; }; @@ -20222,6 +20263,11 @@ message.roleMatch = 4; break; } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.contactcenterinsights.v1.PhraseMatcher.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } return message; }; @@ -20250,6 +20296,7 @@ object.active = false; object.activationUpdateTime = null; object.roleMatch = options.enums === String ? "ROLE_UNSPECIFIED" : 0; + object.updateTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -20274,6 +20321,8 @@ object.activationUpdateTime = $root.google.protobuf.Timestamp.toObject(message.activationUpdateTime, options); if (message.roleMatch != null && message.hasOwnProperty("roleMatch")) object.roleMatch = options.enums === String ? $root.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role[message.roleMatch] : message.roleMatch; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; diff --git a/protos/protos.json b/protos/protos.json index d590e68..dd1a719 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -2021,7 +2021,7 @@ "type": "Conversation.Medium", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "trainingConversationsCount": { @@ -2030,6 +2030,10 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "filter": { + "type": "string", + "id": 3 } } }, @@ -2167,6 +2171,13 @@ "roleMatch": { "type": "ConversationParticipant.Role", "id": 10 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": {