├── payment-service ├── gradle.properties ├── settings.gradle ├── .idea │ ├── sonarlint │ │ └── issuestore │ │ │ ├── 0 │ │ │ ├── 4 │ │ │ │ └── 044c1f33c507bae0fe0d30cf4540e5efa7cc930a │ │ │ └── 5 │ │ │ │ └── 05efc8b1657769a27696d478ded1e95f38737233 │ │ │ ├── 2 │ │ │ ├── 0 │ │ │ │ └── 2091ac6ebc2eaca6ab3efce8a6c25d7dfd266ec1 │ │ │ └── a │ │ │ │ └── 2afbb999f001938c88fa43fc2ef52abf0f8213e4 │ │ │ ├── c │ │ │ └── 1 │ │ │ │ └── c1727ce6f52bcef37a0b4c77c07864556113a2a6 │ │ │ ├── e │ │ │ ├── 3 │ │ │ │ └── e399e773ad94312258a9e04ba2a0a1f3fc43e924 │ │ │ └── a │ │ │ │ └── ea09be42a7bf557e89ff2fe44b99041661d49002 │ │ │ ├── f │ │ │ └── 0 │ │ │ │ └── f07866736216be0ee2aba49e392191aeae700a35 │ │ │ └── index.pb │ ├── codeStyles │ │ ├── codeStyleConfig.xml │ │ └── Project.xml │ ├── compiler.xml │ ├── .gitignore │ ├── modules.xml │ ├── csv-plugin.xml │ ├── misc.xml │ ├── gradle.xml │ ├── modules │ │ ├── payment-service.iml │ │ ├── payment-service.test.iml │ │ └── payment-service.main.iml │ └── jarRepositories.xml ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── src │ └── main │ │ ├── kotlin │ │ ├── com.gokhana.payment │ │ │ └── Application.kt │ │ └── com │ │ │ └── gokhana │ │ │ └── payment │ │ │ └── client │ │ │ └── PaymentClient.kt │ │ └── proto │ │ └── payment.proto ├── build.gradle ├── gradlew.bat └── gradlew ├── banking-service ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .idea │ ├── compiler.xml │ ├── modules │ │ └── banking-service.iml │ ├── .gitignore │ ├── misc.xml │ ├── csv-plugin.xml │ ├── gradle.xml │ ├── jarRepositories.xml │ └── uiDesigner.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── gokhana │ │ │ └── banking │ │ │ ├── grpc │ │ │ ├── GRPCService.java │ │ │ └── GRPCServiceImpl.java │ │ │ ├── service │ │ │ ├── BankingService.java │ │ │ └── BankingServiceImpl.java │ │ │ └── Application.java │ │ └── proto │ │ └── payment.proto ├── build.gradle ├── gradlew.bat └── gradlew ├── .gitignore └── README.md /payment-service/gradle.properties: -------------------------------------------------------------------------------- 1 | kotlin.code.style=official -------------------------------------------------------------------------------- /banking-service/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'banking-service' 2 | 3 | -------------------------------------------------------------------------------- /payment-service/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "payment-service" 2 | 3 | -------------------------------------------------------------------------------- /payment-service/.idea/sonarlint/issuestore/0/4/044c1f33c507bae0fe0d30cf4540e5efa7cc930a: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /payment-service/.idea/sonarlint/issuestore/0/5/05efc8b1657769a27696d478ded1e95f38737233: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /payment-service/.idea/sonarlint/issuestore/2/0/2091ac6ebc2eaca6ab3efce8a6c25d7dfd266ec1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /payment-service/.idea/sonarlint/issuestore/2/a/2afbb999f001938c88fa43fc2ef52abf0f8213e4: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /payment-service/.idea/sonarlint/issuestore/c/1/c1727ce6f52bcef37a0b4c77c07864556113a2a6: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /payment-service/.idea/sonarlint/issuestore/e/3/e399e773ad94312258a9e04ba2a0a1f3fc43e924: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /payment-service/.idea/sonarlint/issuestore/f/0/f07866736216be0ee2aba49e392191aeae700a35: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /banking-service/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G-khan/grpc-sample-java-server-kotlin-client/HEAD/banking-service/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /payment-service/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G-khan/grpc-sample-java-server-kotlin-client/HEAD/payment-service/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /payment-service/.idea/sonarlint/issuestore/index.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G-khan/grpc-sample-java-server-kotlin-client/HEAD/payment-service/.idea/sonarlint/issuestore/index.pb -------------------------------------------------------------------------------- /payment-service/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /banking-service/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /payment-service/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /payment-service/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /payment-service/.idea/sonarlint/issuestore/e/a/ea09be42a7bf557e89ff2fe44b99041661d49002: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G-khan/grpc-sample-java-server-kotlin-client/HEAD/payment-service/.idea/sonarlint/issuestore/e/a/ea09be42a7bf557e89ff2fe44b99041661d49002 -------------------------------------------------------------------------------- /banking-service/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /payment-service/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /banking-service/.idea/modules/banking-service.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /banking-service/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /../../../../../../../:\Users\g-kha\Documents\GitHub\banking-service\.idea/dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /banking-service/src/main/java/com/gokhana/banking/grpc/GRPCService.java: -------------------------------------------------------------------------------- 1 | package com.gokhana.banking.grpc; 2 | 3 | import java.io.IOException; 4 | 5 | public interface GRPCService { 6 | void start() throws IOException, InterruptedException; 7 | 8 | void blockUnitShutDown() throws InterruptedException; 9 | } 10 | -------------------------------------------------------------------------------- /banking-service/src/main/java/com/gokhana/banking/service/BankingService.java: -------------------------------------------------------------------------------- 1 | package com.gokhana.banking.service; 2 | 3 | import com.gokhana.banking.PaymentGRPCApp; 4 | import io.grpc.stub.StreamObserver; 5 | 6 | public interface BankingService { 7 | void pay(PaymentGRPCApp.paymentDTO request, StreamObserverresponse); 8 | } 9 | -------------------------------------------------------------------------------- /payment-service/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /build/ 3 | 4 | # Ignore Gradle GUI config 5 | gradle-app.setting 6 | 7 | # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) 8 | !gradle-wrapper.jar 9 | 10 | # Cache of project 11 | .gradletasknamecache 12 | 13 | # # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 14 | # gradle/wrapper/gradle-wrapper.properties 15 | -------------------------------------------------------------------------------- /payment-service/.idea/csv-plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | -------------------------------------------------------------------------------- /payment-service/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /banking-service/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /banking-service/.idea/csv-plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | -------------------------------------------------------------------------------- /banking-service/src/main/java/com/gokhana/banking/Application.java: -------------------------------------------------------------------------------- 1 | package com.gokhana.banking; 2 | 3 | import com.gokhana.banking.grpc.GRPCService; 4 | import com.gokhana.banking.grpc.GRPCServiceImpl; 5 | 6 | import java.io.IOException; 7 | 8 | public class Application { 9 | 10 | public static void main(String... args) throws InterruptedException, IOException { 11 | final GRPCService grpcService = new GRPCServiceImpl(); 12 | grpcService.start(); 13 | grpcService.blockUnitShutDown(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /payment-service/src/main/kotlin/com.gokhana.payment/Application.kt: -------------------------------------------------------------------------------- 1 | package com.gokhana.payment 2 | 3 | import com.gokhana.payment.client.PaymentClient 4 | import io.grpc.ManagedChannelBuilder 5 | 6 | class Application 7 | 8 | private const val serverURL = "localhost:8090" 9 | 10 | fun main(args: Array) { 11 | val channel = ManagedChannelBuilder.forTarget(serverURL) 12 | .usePlaintext() 13 | .build() 14 | val grpcClient = PaymentClient() 15 | grpcClient.invokeGrpcSampleService(channel) 16 | } 17 | 18 | -------------------------------------------------------------------------------- /payment-service/.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 9 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /banking-service/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | -------------------------------------------------------------------------------- /banking-service/src/main/proto/payment.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | option java_package = "com.gokhana.banking"; 4 | option java_outer_classname = "PaymentGRPCApp"; 5 | option objc_class_prefix = "HLW"; 6 | 7 | package banking; 8 | 9 | service BankingService{ 10 | rpc pay(paymentDTO) returns (bankDTO){} 11 | } 12 | 13 | message paymentDTO{ 14 | int32 id = 1; 15 | string paymentType = 2; 16 | int64 bankId = 3; 17 | int64 transactionId = 4; 18 | string payDetail = 5; 19 | } 20 | 21 | message bankDTO{ 22 | int32 id = 1; 23 | bool isSuccess = 2; 24 | int64 transactionId = 3; 25 | int64 referenceId = 4; 26 | string message = 5; 27 | } -------------------------------------------------------------------------------- /payment-service/src/main/proto/payment.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | option java_package = "com.gokhana.payment"; 4 | option java_outer_classname = "PaymentGRPCApp"; 5 | option objc_class_prefix = "HLW"; 6 | 7 | package banking; 8 | 9 | service BankingService{ 10 | rpc pay(paymentDTO) returns (bankDTO){} 11 | } 12 | 13 | message paymentDTO{ 14 | int32 id = 1; 15 | string paymentType = 2; 16 | int64 bankId = 3; 17 | int64 transactionId = 4; 18 | string payDetail = 5; 19 | } 20 | 21 | message bankDTO{ 22 | int32 id = 1; 23 | bool isSuccess = 2; 24 | int64 transactionId = 3; 25 | int64 referenceId = 4; 26 | string message = 5; 27 | } -------------------------------------------------------------------------------- /payment-service/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 16 | 17 | -------------------------------------------------------------------------------- /payment-service/.idea/modules/payment-service.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /payment-service/.idea/modules/payment-service.test.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /payment-service/src/main/kotlin/com/gokhana/payment/client/PaymentClient.kt: -------------------------------------------------------------------------------- 1 | package com.gokhana.payment.client 2 | 3 | import com.gokhana.payment.BankingServiceGrpc 4 | import com.gokhana.payment.PaymentGRPCApp 5 | import io.grpc.ManagedChannel 6 | import java.util.logging.Logger 7 | 8 | class PaymentClient { 9 | 10 | private val LOGGER = Logger.getLogger(BankingServiceGrpc::class.java.getName()) 11 | 12 | fun invokeGrpcSampleService(channel: ManagedChannel) { 13 | val blockingStub: BankingServiceGrpc.BankingServiceBlockingStub = BankingServiceGrpc.newBlockingStub(channel) 14 | val request: PaymentGRPCApp.paymentDTO = PaymentGRPCApp.paymentDTO.newBuilder() 15 | .setId(1) 16 | .setPayDetail("Hello from GRPC Client") 17 | .build() 18 | val rpcResponse: PaymentGRPCApp.bankDTO = blockingStub.pay(request) 19 | LOGGER.info(rpcResponse.toString()) 20 | } 21 | } -------------------------------------------------------------------------------- /banking-service/.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | -------------------------------------------------------------------------------- /payment-service/.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | -------------------------------------------------------------------------------- /payment-service/.idea/modules/payment-service.main.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /banking-service/src/main/java/com/gokhana/banking/grpc/GRPCServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.gokhana.banking.grpc; 2 | 3 | import com.gokhana.banking.Application; 4 | import com.gokhana.banking.service.BankingServiceImpl; 5 | import io.grpc.Server; 6 | import io.grpc.ServerBuilder; 7 | 8 | import java.io.IOException; 9 | import java.util.logging.Logger; 10 | 11 | public class GRPCServiceImpl implements GRPCService { 12 | 13 | private static final Logger LOGGER = Logger.getLogger(Application.class.getName()); 14 | int port = 8090; 15 | private Server server; 16 | 17 | @Override 18 | public void start() throws IOException, InterruptedException { 19 | server = ServerBuilder.forPort(port) 20 | .addService(new BankingServiceImpl()) 21 | .build() 22 | .start(); 23 | LOGGER.info("GRPC server start on " + port); 24 | } 25 | 26 | @Override 27 | public void blockUnitShutDown() throws InterruptedException { 28 | if (null != server) { 29 | server.awaitTermination(); 30 | } 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /banking-service/src/main/java/com/gokhana/banking/service/BankingServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.gokhana.banking.service; 2 | 3 | 4 | import com.gokhana.banking.BankingServiceGrpc; 5 | import com.gokhana.banking.PaymentGRPCApp; 6 | import io.grpc.stub.StreamObserver; 7 | 8 | import java.time.LocalDateTime; 9 | import java.util.logging.Logger; 10 | 11 | public class BankingServiceImpl extends BankingServiceGrpc.BankingServiceImplBase { 12 | private static final Logger LOGGER = Logger.getLogger(BankingServiceImpl.class.getName()); 13 | 14 | @Override 15 | public void pay(PaymentGRPCApp.paymentDTO request, StreamObserver response) { 16 | LOGGER.info("gRPC request " + request.toString()); 17 | PaymentGRPCApp.bankDTO gRPCResponse = PaymentGRPCApp. 18 | bankDTO.newBuilder() 19 | .setId(request.getId()) 20 | .setMessage("Transaction "+request.getTransactionId()+" successfully completed with type "+ request.getPaymentType()) 21 | .setIsSuccess(true) 22 | .setReferenceId(LocalDateTime.now().getNano()) 23 | .build(); 24 | response.onNext(gRPCResponse); 25 | response.onCompleted(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /banking-service/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'java' 3 | id 'com.google.protobuf' version '0.8.13' 4 | id 'idea' 5 | } 6 | 7 | group 'com.gokhana' 8 | version '1.0-SNAPSHOT' 9 | 10 | repositories { 11 | mavenCentral() 12 | } 13 | 14 | sourceCompatibility = 11 15 | targetCompatibility = 11 16 | 17 | dependencies { 18 | implementation 'io.grpc:grpc-protobuf:1.36.0' 19 | implementation 'io.grpc:grpc-stub:1.36.0' 20 | implementation 'io.grpc:grpc-netty:1.36.0' 21 | compileOnly 'org.apache.tomcat:annotations-api:6.0.53' 22 | } 23 | 24 | test { 25 | useJUnitPlatform() 26 | } 27 | 28 | 29 | protobuf{ 30 | protoc {artifact = "com.google.protobuf:protoc:3.13.0"} 31 | plugins{ 32 | grpc {artifact = "io.grpc:protoc-gen-grpc-java:1.31.1"} 33 | } 34 | generateProtoTasks{ 35 | all()*.plugins {grpc {}} 36 | } 37 | // default proto plugin generate stub in build folder 38 | // change the stub generate folder 39 | //generatedFilesBaseDir = "$projectDir/src/generated" 40 | } 41 | 42 | sourceSets{ 43 | main{ 44 | proto{ 45 | srcDirs 'src/main/proto' 46 | } 47 | java{ 48 | srcDirs 'build/generated/source/proto/main/grpc' 49 | srcDirs 'build/generated/source/proto/main/java' 50 | 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Simple Synchronous Communication Example with gRPC 3 | 4 | 5 | 6 | 7 | ![Java Server and Kotlin Client](https://cdn-images-1.medium.com/max/800/1*WmVzLWnExOp8lhw1uzMvow.png) 8 | **Java Server and Kotlin Client** 9 | 10 | 11 | ## Requirements 12 | 1. Java - 1.11.x 13 | 2. Gradle- 3.x.x 14 | 15 | 16 | **Step 1: Running the Banking service as gRPC Server** 17 | 18 | Open the banking Service path then, 19 | Type the following commands in your terminal to run the banking service 20 | 21 | ./gradlew clean build 22 | ./gradlew run 23 | 24 | **Step 2: Running the Payment service as gRPC Client** 25 | 26 | Open the payment Service path then, 27 | Type the following commands in your terminal to run the payment service 28 | 29 | ./gradlew clean build 30 | ./gradlew run 31 | 32 | 33 | Logs after run the applications: 34 | 35 | **Payment Service:** 36 | 37 | > Task :run 38 | Mar 08, 2021 8:59:48 PM com.gokhana.payment.client.PaymentClient invokeGrpcSampleService 39 | INFO: id: 1535502916 40 | isSuccess: true 41 | referenceId: 292592000 42 | message: "Transaction 2384327497216806399 successfully completed with type Credit Card" 43 | 44 | 45 | 46 | **Banking Service:** 47 | 48 | Mar 08, 2021 8:59:48 PM com.gokhana.banking.service.BankingServiceImpl pay 49 | INFO: gRPC request id: 1535502916 50 | paymentType: "Credit Card" 51 | bankId: 3233083119461668241 52 | transactionId: 2384327497216806399 53 | payDetail: "Hello from GRPC Client" 54 | -------------------------------------------------------------------------------- /payment-service/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "org.jetbrains.kotlin.jvm" version "1.4.31" 3 | id 'com.google.protobuf' version '0.8.13' 4 | id 'idea' 5 | } 6 | 7 | group 'com.gokhana' 8 | version '1.0-SNAPSHOT' 9 | 10 | repositories { 11 | mavenCentral() 12 | } 13 | 14 | sourceCompatibility = 1.8 15 | targetCompatibility = 1.8 16 | 17 | dependencies { 18 | implementation 'io.grpc:grpc-protobuf:1.32.1' 19 | implementation 'io.grpc:grpc-stub:1.32.1' 20 | implementation 'io.grpc:grpc-netty:1.32.1' 21 | implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: '1.4.31' 22 | compileOnly 'org.apache.tomcat:annotations-api:6.0.53' 23 | testCompile group: 'junit', name: 'junit', version: '4.12' 24 | testImplementation group: 'org.jetbrains.kotlin', name: 'kotlin-test-junit', version: '1.4.31' 25 | 26 | } 27 | 28 | protobuf{ 29 | protoc {artifact = "com.google.protobuf:protoc:3.13.0"} 30 | plugins{ 31 | grpc {artifact = "io.grpc:protoc-gen-grpc-java:1.31.1"} 32 | } 33 | generateProtoTasks{ 34 | all()*.plugins {grpc {}} 35 | } 36 | // default proto plugin generate stub in build folder 37 | // change the stub generate folder 38 | //generatedFilesBaseDir = "$projectDir/src/generated" 39 | } 40 | 41 | sourceSets{ 42 | main{ 43 | proto{ 44 | srcDirs 'src/main/proto' 45 | } 46 | java{ 47 | srcDirs 'build/generated/source/proto/main/grpc' 48 | srcDirs 'build/generated/source/proto/main/kotlin' 49 | 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /banking-service/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /payment-service/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /banking-service/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /payment-service/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /banking-service/.idea/uiDesigner.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | --------------------------------------------------------------------------------