Skip to content

Commit 6699f2e

Browse files
gcf-owl-bot[bot]jskeet
authored andcommitted
feat: added support to configure security settings, language code and time zone on conversation profile
PiperOrigin-RevId: 407663596 Source-Link: googleapis/googleapis@f9acb37 Source-Link: https://github.com/googleapis/googleapis-gen/commit/aa54a757068f005ab21064fb208a5ec597e49a9a Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuRGlhbG9nZmxvdy5WMi8uT3dsQm90LnlhbWwiLCJoIjoiYWE1NGE3NTcwNjhmMDA1YWIyMTA2NGZiMjA4YTVlYzU5N2U0OWE5YSJ9
1 parent 2b667d4 commit 6699f2e

3 files changed

Lines changed: 292 additions & 152 deletions

File tree

‎apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2.Tests/ConversationProfilesClientTest.g.cs‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public void GetConversationProfileRequestObject()
5050
LanguageCode = "language_code2f6c7160",
5151
CreateTime = new wkt::Timestamp(),
5252
UpdateTime = new wkt::Timestamp(),
53+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
54+
TimeZone = "time_zone73f23b20",
5355
};
5456
mockGrpcClient.Setup(x => x.GetConversationProfile(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
5557
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -80,6 +82,8 @@ public void GetConversationProfileRequestObject()
8082
LanguageCode = "language_code2f6c7160",
8183
CreateTime = new wkt::Timestamp(),
8284
UpdateTime = new wkt::Timestamp(),
85+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
86+
TimeZone = "time_zone73f23b20",
8387
};
8488
mockGrpcClient.Setup(x => x.GetConversationProfileAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<ConversationProfile>(stt::Task.FromResult(expectedResponse), null, null, null, null));
8589
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -112,6 +116,8 @@ public void GetConversationProfile()
112116
LanguageCode = "language_code2f6c7160",
113117
CreateTime = new wkt::Timestamp(),
114118
UpdateTime = new wkt::Timestamp(),
119+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
120+
TimeZone = "time_zone73f23b20",
115121
};
116122
mockGrpcClient.Setup(x => x.GetConversationProfile(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
117123
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -142,6 +148,8 @@ public void GetConversationProfile()
142148
LanguageCode = "language_code2f6c7160",
143149
CreateTime = new wkt::Timestamp(),
144150
UpdateTime = new wkt::Timestamp(),
151+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
152+
TimeZone = "time_zone73f23b20",
145153
};
146154
mockGrpcClient.Setup(x => x.GetConversationProfileAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<ConversationProfile>(stt::Task.FromResult(expectedResponse), null, null, null, null));
147155
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -174,6 +182,8 @@ public void GetConversationProfileResourceNames()
174182
LanguageCode = "language_code2f6c7160",
175183
CreateTime = new wkt::Timestamp(),
176184
UpdateTime = new wkt::Timestamp(),
185+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
186+
TimeZone = "time_zone73f23b20",
177187
};
178188
mockGrpcClient.Setup(x => x.GetConversationProfile(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
179189
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -204,6 +214,8 @@ public void GetConversationProfileResourceNames()
204214
LanguageCode = "language_code2f6c7160",
205215
CreateTime = new wkt::Timestamp(),
206216
UpdateTime = new wkt::Timestamp(),
217+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
218+
TimeZone = "time_zone73f23b20",
207219
};
208220
mockGrpcClient.Setup(x => x.GetConversationProfileAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<ConversationProfile>(stt::Task.FromResult(expectedResponse), null, null, null, null));
209221
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -237,6 +249,8 @@ public void CreateConversationProfileRequestObject()
237249
LanguageCode = "language_code2f6c7160",
238250
CreateTime = new wkt::Timestamp(),
239251
UpdateTime = new wkt::Timestamp(),
252+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
253+
TimeZone = "time_zone73f23b20",
240254
};
241255
mockGrpcClient.Setup(x => x.CreateConversationProfile(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
242256
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -268,6 +282,8 @@ public void CreateConversationProfileRequestObject()
268282
LanguageCode = "language_code2f6c7160",
269283
CreateTime = new wkt::Timestamp(),
270284
UpdateTime = new wkt::Timestamp(),
285+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
286+
TimeZone = "time_zone73f23b20",
271287
};
272288
mockGrpcClient.Setup(x => x.CreateConversationProfileAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<ConversationProfile>(stt::Task.FromResult(expectedResponse), null, null, null, null));
273289
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -301,6 +317,8 @@ public void CreateConversationProfile()
301317
LanguageCode = "language_code2f6c7160",
302318
CreateTime = new wkt::Timestamp(),
303319
UpdateTime = new wkt::Timestamp(),
320+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
321+
TimeZone = "time_zone73f23b20",
304322
};
305323
mockGrpcClient.Setup(x => x.CreateConversationProfile(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
306324
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -332,6 +350,8 @@ public void CreateConversationProfile()
332350
LanguageCode = "language_code2f6c7160",
333351
CreateTime = new wkt::Timestamp(),
334352
UpdateTime = new wkt::Timestamp(),
353+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
354+
TimeZone = "time_zone73f23b20",
335355
};
336356
mockGrpcClient.Setup(x => x.CreateConversationProfileAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<ConversationProfile>(stt::Task.FromResult(expectedResponse), null, null, null, null));
337357
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -365,6 +385,8 @@ public void CreateConversationProfileResourceNames1()
365385
LanguageCode = "language_code2f6c7160",
366386
CreateTime = new wkt::Timestamp(),
367387
UpdateTime = new wkt::Timestamp(),
388+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
389+
TimeZone = "time_zone73f23b20",
368390
};
369391
mockGrpcClient.Setup(x => x.CreateConversationProfile(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
370392
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -396,6 +418,8 @@ public void CreateConversationProfileResourceNames1()
396418
LanguageCode = "language_code2f6c7160",
397419
CreateTime = new wkt::Timestamp(),
398420
UpdateTime = new wkt::Timestamp(),
421+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
422+
TimeZone = "time_zone73f23b20",
399423
};
400424
mockGrpcClient.Setup(x => x.CreateConversationProfileAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<ConversationProfile>(stt::Task.FromResult(expectedResponse), null, null, null, null));
401425
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -429,6 +453,8 @@ public void CreateConversationProfileResourceNames2()
429453
LanguageCode = "language_code2f6c7160",
430454
CreateTime = new wkt::Timestamp(),
431455
UpdateTime = new wkt::Timestamp(),
456+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
457+
TimeZone = "time_zone73f23b20",
432458
};
433459
mockGrpcClient.Setup(x => x.CreateConversationProfile(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
434460
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -460,6 +486,8 @@ public void CreateConversationProfileResourceNames2()
460486
LanguageCode = "language_code2f6c7160",
461487
CreateTime = new wkt::Timestamp(),
462488
UpdateTime = new wkt::Timestamp(),
489+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
490+
TimeZone = "time_zone73f23b20",
463491
};
464492
mockGrpcClient.Setup(x => x.CreateConversationProfileAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<ConversationProfile>(stt::Task.FromResult(expectedResponse), null, null, null, null));
465493
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -493,6 +521,8 @@ public void UpdateConversationProfileRequestObject()
493521
LanguageCode = "language_code2f6c7160",
494522
CreateTime = new wkt::Timestamp(),
495523
UpdateTime = new wkt::Timestamp(),
524+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
525+
TimeZone = "time_zone73f23b20",
496526
};
497527
mockGrpcClient.Setup(x => x.UpdateConversationProfile(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
498528
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -524,6 +554,8 @@ public void UpdateConversationProfileRequestObject()
524554
LanguageCode = "language_code2f6c7160",
525555
CreateTime = new wkt::Timestamp(),
526556
UpdateTime = new wkt::Timestamp(),
557+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
558+
TimeZone = "time_zone73f23b20",
527559
};
528560
mockGrpcClient.Setup(x => x.UpdateConversationProfileAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<ConversationProfile>(stt::Task.FromResult(expectedResponse), null, null, null, null));
529561
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -557,6 +589,8 @@ public void UpdateConversationProfile()
557589
LanguageCode = "language_code2f6c7160",
558590
CreateTime = new wkt::Timestamp(),
559591
UpdateTime = new wkt::Timestamp(),
592+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
593+
TimeZone = "time_zone73f23b20",
560594
};
561595
mockGrpcClient.Setup(x => x.UpdateConversationProfile(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
562596
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);
@@ -588,6 +622,8 @@ public void UpdateConversationProfile()
588622
LanguageCode = "language_code2f6c7160",
589623
CreateTime = new wkt::Timestamp(),
590624
UpdateTime = new wkt::Timestamp(),
625+
SecuritySettingsAsCXSecuritySettingsName = CXSecuritySettingsName.FromProjectLocationSecuritySettings("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]"),
626+
TimeZone = "time_zone73f23b20",
591627
};
592628
mockGrpcClient.Setup(x => x.UpdateConversationProfileAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<ConversationProfile>(stt::Task.FromResult(expectedResponse), null, null, null, null));
593629
ConversationProfilesClient client = new ConversationProfilesClientImpl(mockGrpcClient.Object, null);

0 commit comments

Comments
 (0)
⌂ 换网址