From 1678cf503541e1c6281f7bc50e3ae7a166f77037 Mon Sep 17 00:00:00 2001 From: Dilan Sachintha Nayanajith Date: Thu, 27 Jun 2024 13:59:31 +0530 Subject: [PATCH 1/4] [master] Update gRPC version --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 56cc074d1e..3cd2a6681c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -60,7 +60,7 @@ stdlibYamlVersion=0.5.3 stdlibHttpVersion=2.11.1 # Stdlib Level 06 -stdlibGrpcVersion=1.11.0 +stdlibGrpcVersion=1.11.1 stdlibSoapVersion=1.0.0 stdlibTransactionVersion=1.9.0 stdlibWebsocketVersion=2.11.0 From 6ef8c5bfc7bcb8584aa5e555c902c9ed7ff4977b Mon Sep 17 00:00:00 2001 From: Dilan Sachintha Nayanajith Date: Thu, 27 Jun 2024 15:57:52 +0530 Subject: [PATCH 2/4] Update gradle.properties --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 3cd2a6681c..55b489af90 100644 --- a/gradle.properties +++ b/gradle.properties @@ -85,7 +85,7 @@ docUiApi=https://api.dev-central.ballerina.io/2.0/docs/doc-ui graphqlToolVersion=0.10.0 # Protoc Tool -protocToolVersion=0.2.0 +protocToolVersion=0.3.0 # OpenAPI Module openapiToolVersion=2.0.0 From 7346f08946ac894e67cfcf0338b57c8a3ceefade Mon Sep 17 00:00:00 2001 From: Dilan Sachintha Nayanajith Date: Thu, 27 Jun 2024 16:16:25 +0530 Subject: [PATCH 3/4] Update route_guide_pb.bal --- .../grpc/expected-files/route_guide_pb.bal | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ballerina-test/src/test/resources/grpc/expected-files/route_guide_pb.bal b/ballerina-test/src/test/resources/grpc/expected-files/route_guide_pb.bal index 1bb714917c..88432fdd1c 100644 --- a/ballerina-test/src/test/resources/grpc/expected-files/route_guide_pb.bal +++ b/ballerina-test/src/test/resources/grpc/expected-files/route_guide_pb.bal @@ -82,8 +82,8 @@ public isolated client class RouteGuideClient { } } -public client class RecordRouteStreamingClient { - private grpc:StreamingClient sClient; +public isolated client class RecordRouteStreamingClient { + private final grpc:StreamingClient sClient; isolated function init(grpc:StreamingClient sClient) { self.sClient = sClient; @@ -150,8 +150,8 @@ public class FeatureStream { } } -public client class RouteChatStreamingClient { - private grpc:StreamingClient sClient; +public isolated client class RouteChatStreamingClient { + private final grpc:StreamingClient sClient; isolated function init(grpc:StreamingClient sClient) { self.sClient = sClient; @@ -194,8 +194,8 @@ public client class RouteChatStreamingClient { } } -public client class RouteGuideRouteSummaryCaller { - private grpc:Caller caller; +public isolated client class RouteGuideRouteSummaryCaller { + private final grpc:Caller caller; public isolated function init(grpc:Caller caller) { self.caller = caller; @@ -226,8 +226,8 @@ public client class RouteGuideRouteSummaryCaller { } } -public client class RouteGuideRouteNoteCaller { - private grpc:Caller caller; +public isolated client class RouteGuideRouteNoteCaller { + private final grpc:Caller caller; public isolated function init(grpc:Caller caller) { self.caller = caller; @@ -258,8 +258,8 @@ public client class RouteGuideRouteNoteCaller { } } -public client class RouteGuideFeatureCaller { - private grpc:Caller caller; +public isolated client class RouteGuideFeatureCaller { + private final grpc:Caller caller; public isolated function init(grpc:Caller caller) { self.caller = caller; From e0b420433f46143a8163d8183a44b8cbd0a4f779 Mon Sep 17 00:00:00 2001 From: dilanSachi Date: Thu, 27 Jun 2024 17:21:48 +0530 Subject: [PATCH 4/4] Update pb file --- .../src/test/resources/grpc/expected-files/route_guide_pb.bal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ballerina-test/src/test/resources/grpc/expected-files/route_guide_pb.bal b/ballerina-test/src/test/resources/grpc/expected-files/route_guide_pb.bal index 88432fdd1c..6198c37791 100644 --- a/ballerina-test/src/test/resources/grpc/expected-files/route_guide_pb.bal +++ b/ballerina-test/src/test/resources/grpc/expected-files/route_guide_pb.bal @@ -135,9 +135,9 @@ public class FeatureStream { public isolated function next() returns record {|Feature value;|}|grpc:Error? { var streamValue = self.anydataStream.next(); - if (streamValue is ()) { + if streamValue is () { return streamValue; - } else if (streamValue is grpc:Error) { + } else if streamValue is grpc:Error { return streamValue; } else { record {|Feature value;|} nextRecord = {value: streamValue.value};