Skip to content

Commit

Permalink
feat: filter is used to filter conversations used for issue model tra…
Browse files Browse the repository at this point in the history
…ining feat: update_time is used to indicate when the phrase matcher was updated

PiperOrigin-RevId: 397164390

Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Sep 16 14:06:18 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 2ec824213a3a54a8e70e308370fd2544c129beb6
Source-Link: googleapis/googleapis@2ec8242
  • Loading branch information
yoshi-automation authored and jskeet committed Sep 17, 2021
1 parent 2a57d32 commit 37fa769
Show file tree
Hide file tree
Showing 3 changed files with 244 additions and 139 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,7 @@ public void CreatePhraseMatcherRequestObject()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.CreatePhraseMatcher(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2193,6 +2194,7 @@ public void CreatePhraseMatcherRequestObject()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.CreatePhraseMatcherAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<PhraseMatcher>(stt::Task.FromResult(expectedResponse), null, null, null, null));
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2228,6 +2230,7 @@ public void CreatePhraseMatcher()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.CreatePhraseMatcher(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2261,6 +2264,7 @@ public void CreatePhraseMatcher()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.CreatePhraseMatcherAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<PhraseMatcher>(stt::Task.FromResult(expectedResponse), null, null, null, null));
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2296,6 +2300,7 @@ public void CreatePhraseMatcherResourceNames()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.CreatePhraseMatcher(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2329,6 +2334,7 @@ public void CreatePhraseMatcherResourceNames()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.CreatePhraseMatcherAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<PhraseMatcher>(stt::Task.FromResult(expectedResponse), null, null, null, null));
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2363,6 +2369,7 @@ public void GetPhraseMatcherRequestObject()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetPhraseMatcher(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2395,6 +2402,7 @@ public void GetPhraseMatcherRequestObject()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetPhraseMatcherAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<PhraseMatcher>(stt::Task.FromResult(expectedResponse), null, null, null, null));
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2429,6 +2437,7 @@ public void GetPhraseMatcher()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetPhraseMatcher(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2461,6 +2470,7 @@ public void GetPhraseMatcher()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetPhraseMatcherAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<PhraseMatcher>(stt::Task.FromResult(expectedResponse), null, null, null, null));
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2495,6 +2505,7 @@ public void GetPhraseMatcherResourceNames()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetPhraseMatcher(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -2527,6 +2538,7 @@ public void GetPhraseMatcherResourceNames()
},
ActivationUpdateTime = new wkt::Timestamp(),
RoleMatch = ConversationParticipant.Types.Role.HumanAgent,
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetPhraseMatcherAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<PhraseMatcher>(stt::Task.FromResult(expectedResponse), null, null, null, null));
ContactCenterInsightsClient client = new ContactCenterInsightsClientImpl(mockGrpcClient.Object, null);
Expand Down
Loading

0 comments on commit 37fa769

Please sign in to comment.