├── README.md
├── grpc-java-hello-world
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ ├── org.eclipse.m2e.core.prefs
│ └── org.eclipse.wst.common.project.facet.core.xml
├── .springBeans
├── README.md
├── pom.xml
├── src
│ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── quinnox
│ │ │ │ └── example
│ │ │ │ └── grpc
│ │ │ │ ├── SpringGrpcApplication.java
│ │ │ │ └── client
│ │ │ │ ├── AddNumberServiceClient.java
│ │ │ │ └── AddNumberServiceImpl.java
│ │ └── proto
│ │ │ └── HelloWorld.proto
│ └── test
│ │ └── java
│ │ └── com
│ │ └── quinnox
│ │ └── example
│ │ └── grpc
│ │ └── SpringGrpcApplicationTests.java
└── target
│ ├── classes
│ ├── HelloWorld.proto
│ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── com.quinnox.example
│ │ │ └── grpc-java-hello-world
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ └── com
│ │ ├── codenotfound
│ │ └── grpc
│ │ │ └── helloworld
│ │ │ ├── AddNumberServiceGrpc$1.class
│ │ │ ├── AddNumberServiceGrpc$AddNumberServiceBaseDescriptorSupplier.class
│ │ │ ├── AddNumberServiceGrpc$AddNumberServiceBlockingStub.class
│ │ │ ├── AddNumberServiceGrpc$AddNumberServiceFileDescriptorSupplier.class
│ │ │ ├── AddNumberServiceGrpc$AddNumberServiceFutureStub.class
│ │ │ ├── AddNumberServiceGrpc$AddNumberServiceImplBase.class
│ │ │ ├── AddNumberServiceGrpc$AddNumberServiceMethodDescriptorSupplier.class
│ │ │ ├── AddNumberServiceGrpc$AddNumberServiceStub.class
│ │ │ ├── AddNumberServiceGrpc$MethodHandlers.class
│ │ │ ├── AddNumberServiceGrpc.class
│ │ │ ├── HelloWorld$1.class
│ │ │ ├── HelloWorld.class
│ │ │ ├── Request$1.class
│ │ │ ├── Request$Builder.class
│ │ │ ├── Request.class
│ │ │ ├── RequestOrBuilder.class
│ │ │ ├── Response$1.class
│ │ │ ├── Response$Builder.class
│ │ │ ├── Response.class
│ │ │ └── ResponseOrBuilder.class
│ │ └── quinnox
│ │ └── example
│ │ └── grpc
│ │ ├── SpringGrpcApplication.class
│ │ └── client
│ │ ├── AddNumberServiceClient.class
│ │ └── AddNumberServiceImpl.class
│ ├── generated-sources
│ └── protobuf
│ │ ├── grpc-java
│ │ └── com
│ │ │ └── codenotfound
│ │ │ └── grpc
│ │ │ └── helloworld
│ │ │ └── AddNumberServiceGrpc.java
│ │ └── java
│ │ └── com
│ │ └── codenotfound
│ │ └── grpc
│ │ └── helloworld
│ │ ├── HelloWorld.java
│ │ ├── Request.java
│ │ ├── RequestOrBuilder.java
│ │ ├── Response.java
│ │ └── ResponseOrBuilder.java
│ ├── grpc-java-hello-world-0.0.1-SNAPSHOT.jar
│ ├── grpc-java-hello-world-0.0.1-SNAPSHOT.jar.original
│ ├── maven-archiver
│ └── pom.properties
│ ├── maven-status
│ └── maven-compiler-plugin
│ │ ├── compile
│ │ └── default-compile
│ │ │ ├── createdFiles.lst
│ │ │ └── inputFiles.lst
│ │ └── testCompile
│ │ └── default-testCompile
│ │ ├── createdFiles.lst
│ │ └── inputFiles.lst
│ ├── protoc-dependencies
│ ├── 0568e8ce604e2570833a51415c74f8d2
│ │ ├── grpc
│ │ │ ├── binlog
│ │ │ │ └── v1alpha
│ │ │ │ │ └── binarylog.proto
│ │ │ ├── channelz
│ │ │ │ └── v1
│ │ │ │ │ └── channelz.proto
│ │ │ └── health
│ │ │ │ └── v1
│ │ │ │ └── health.proto
│ │ └── io
│ │ │ └── grpc
│ │ │ └── reflection
│ │ │ └── v1alpha
│ │ │ └── reflection.proto
│ └── c9c1668fb38ab1a3ec80c5df1c79d237
│ │ └── google
│ │ └── protobuf
│ │ ├── any.proto
│ │ ├── api.proto
│ │ ├── compiler
│ │ └── plugin.proto
│ │ ├── descriptor.proto
│ │ ├── duration.proto
│ │ ├── empty.proto
│ │ ├── field_mask.proto
│ │ ├── source_context.proto
│ │ ├── struct.proto
│ │ ├── timestamp.proto
│ │ ├── type.proto
│ │ └── wrappers.proto
│ ├── protoc-plugins
│ ├── protoc-3.5.1-1-windows-x86_64.exe
│ └── protoc-gen-grpc-java-1.16.1-windows-x86_64.exe
│ ├── surefire-reports
│ ├── TEST-com.quinnox.example.grpc.SpringGrpcApplicationTests.xml
│ └── com.quinnox.example.grpc.SpringGrpcApplicationTests.txt
│ └── test-classes
│ └── com
│ └── quinnox
│ └── example
│ └── grpc
│ └── SpringGrpcApplicationTests.class
├── hello-world.txt
└── hello.js
/README.md:
--------------------------------------------------------------------------------
1 | # gRPC
--------------------------------------------------------------------------------
/grpc-java-hello-world/.classpath:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | grpc-java-hello-world
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.wst.common.project.facet.core.builder
10 |
11 |
12 |
13 |
14 | org.eclipse.jdt.core.javabuilder
15 |
16 |
17 |
18 |
19 | org.springframework.ide.eclipse.core.springbuilder
20 |
21 |
22 |
23 |
24 | org.springframework.ide.eclipse.boot.validation.springbootbuilder
25 |
26 |
27 |
28 |
29 | org.eclipse.m2e.core.maven2Builder
30 |
31 |
32 |
33 |
34 |
35 | org.springframework.ide.eclipse.core.springnature
36 | org.eclipse.jdt.core.javanature
37 | org.eclipse.m2e.core.maven2Nature
38 | org.eclipse.wst.common.project.facet.core.nature
39 |
40 |
41 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/proto=UTF-8
4 | encoding//src/test/java=UTF-8
5 | encoding//target/generated-sources/protobuf/grpc-java=UTF-8
6 | encoding//target/generated-sources/protobuf/java=UTF-8
7 | encoding/=UTF-8
8 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
3 | org.eclipse.jdt.core.compiler.compliance=1.8
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.8
6 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/.springBeans:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 |
5 |
6 |
7 |
8 |
9 |
10 | java:com.quinnox.example.grpc.SpringGrpcApplication
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/README.md:
--------------------------------------------------------------------------------
1 | # grpc-java-example
2 |
3 | A detailed step-by-step tutorial on how to implement a Hello World gRPC Java example using Spring Boot and Maven.
4 |
5 | [https://codenotfound.com/grpc-java-example.html](https://codenotfound.com/grpc-java-example.html)
6 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 |
6 | com.quinnox.example
7 | grpc-java-hello-world
8 | 0.0.1-SNAPSHOT
9 | jar
10 |
11 | grpc-java-hello-world
12 | gRPC Java Example
13 |
14 |
15 | org.springframework.boot
16 | spring-boot-starter-parent
17 | 2.1.0.RELEASE
18 |
19 |
20 |
21 |
22 | UTF-8
23 | UTF-8
24 | 1.8
25 | 3.0.0
26 | 1.6.1
27 | 0.6.1
28 |
29 |
30 |
31 |
32 | org.springframework.boot
33 | spring-boot-starter-web
34 |
35 |
36 | io.github.lognet
37 | grpc-spring-boot-starter
38 | ${grpc-spring-boot-starter.version}
39 |
40 |
41 | org.springframework.boot
42 | spring-boot-starter-test
43 | test
44 |
45 |
46 |
47 |
48 |
49 |
50 | kr.motd.maven
51 | os-maven-plugin
52 | ${os-maven-plugin.version}
53 |
54 |
55 |
56 |
57 | org.springframework.boot
58 | spring-boot-maven-plugin
59 |
60 |
61 | org.xolstice.maven.plugins
62 | protobuf-maven-plugin
63 | ${protobuf-maven-plugin.version}
64 |
65 | com.google.protobuf:protoc:3.5.1-1:exe:${os.detected.classifier}
66 | grpc-java
67 | io.grpc:protoc-gen-grpc-java:1.16.1:exe:${os.detected.classifier}
68 |
69 |
70 |
71 |
72 | compile
73 | compile-custom
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/src/main/java/com/quinnox/example/grpc/SpringGrpcApplication.java:
--------------------------------------------------------------------------------
1 | package com.quinnox.example.grpc;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class SpringGrpcApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(SpringGrpcApplication.class, args);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/src/main/java/com/quinnox/example/grpc/client/AddNumberServiceClient.java:
--------------------------------------------------------------------------------
1 | package com.quinnox.example.grpc.client;
2 |
3 | import javax.annotation.PostConstruct;
4 | import org.slf4j.Logger;
5 | import org.slf4j.LoggerFactory;
6 | import org.springframework.stereotype.Component;
7 |
8 | import com.codenotfound.grpc.helloworld.AddNumberServiceGrpc;
9 | import com.codenotfound.grpc.helloworld.Request;
10 | import com.codenotfound.grpc.helloworld.Response;
11 |
12 | import io.grpc.ManagedChannel;
13 | import io.grpc.ManagedChannelBuilder;
14 |
15 | @Component
16 | public class AddNumberServiceClient {
17 |
18 | private static final Logger LOGGER = LoggerFactory.getLogger(AddNumberServiceClient.class);
19 |
20 | private AddNumberServiceGrpc.AddNumberServiceBlockingStub addNumberServiceBlockingStub;
21 |
22 | @PostConstruct
23 | private void init() {
24 | ManagedChannel managedChannel = ManagedChannelBuilder.forAddress("localhost", 6565).usePlaintext().build();
25 |
26 | addNumberServiceBlockingStub = AddNumberServiceGrpc.newBlockingStub(managedChannel);
27 | }
28 |
29 | public long addNumber(long a , long b) {
30 | Request request = Request.newBuilder().setA(a).setB(b).build();
31 | LOGGER.info("client sending a:b = "+a+" : "+b);
32 | Response resp = addNumberServiceBlockingStub.addNumber(request);
33 | LOGGER.info("client received : "+ resp);
34 |
35 | return resp.getResult();
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/src/main/java/com/quinnox/example/grpc/client/AddNumberServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.quinnox.example.grpc.client;
2 |
3 | import org.lognet.springboot.grpc.GRpcService;
4 |
5 | import com.codenotfound.grpc.helloworld.AddNumberServiceGrpc.AddNumberServiceImplBase;
6 | import com.codenotfound.grpc.helloworld.Request;
7 | import com.codenotfound.grpc.helloworld.Response;
8 |
9 | import io.grpc.stub.StreamObserver;
10 |
11 | @GRpcService
12 | public class AddNumberServiceImpl extends AddNumberServiceImplBase{
13 |
14 | @Override
15 | public void addNumber(Request request, StreamObserver responseObserver) {
16 | long a = request.getA();
17 | long b = request.getB();
18 | long answer = a+b;
19 | Response response = Response.newBuilder().setResult(answer).build();
20 | responseObserver.onNext(response);
21 | responseObserver.onCompleted();
22 | }
23 |
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/src/main/proto/HelloWorld.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | option java_multiple_files = true;
4 | package com.codenotfound.grpc.helloworld;
5 |
6 | message Request {
7 | int64 a = 1;
8 | int64 b = 2;
9 | }
10 |
11 | message Response {
12 | int64 result = 1;
13 | }
14 |
15 | service AddNumberService {
16 | rpc addNumber (Request) returns (Response);
17 | }
18 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/src/test/java/com/quinnox/example/grpc/SpringGrpcApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.quinnox.example.grpc;
2 |
3 | import static org.assertj.core.api.Assertions.assertThat;
4 | import org.junit.Test;
5 | import org.junit.runner.RunWith;
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.boot.test.context.SpringBootTest;
8 | import org.springframework.test.context.junit4.SpringRunner;
9 | //import com.codenotfound.grpc.HelloWorldClient;
10 |
11 | import com.quinnox.example.grpc.client.AddNumberServiceClient;
12 |
13 | @RunWith(SpringRunner.class)
14 | @SpringBootTest
15 | public class SpringGrpcApplicationTests {
16 |
17 | @Autowired
18 | private AddNumberServiceClient numberServiceClient;
19 | //private HelloWorldClient helloWorldClient;
20 |
21 | @Test
22 | public void testSayHello() {
23 | assertThat(numberServiceClient.addNumber(10, 10))
24 | .isEqualTo(20);
25 | }
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/HelloWorld.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | option java_multiple_files = true;
4 | package com.codenotfound.grpc.helloworld;
5 |
6 | message Request {
7 | int64 a = 1;
8 | int64 b = 2;
9 | }
10 |
11 | message Response {
12 | int64 result = 1;
13 | }
14 |
15 | service AddNumberService {
16 | rpc addNumber (Request) returns (Response);
17 | }
18 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Implementation-Title: grpc-java-hello-world
3 | Implementation-Version: 0.0.1-SNAPSHOT
4 | Built-By: mohitk
5 | Implementation-Vendor-Id: com.quinnox.example
6 | Build-Jdk: 1.8.0_201
7 | Implementation-URL: https://projects.spring.io/spring-boot/#/spring-bo
8 | ot-starter-parent/grpc-java-hello-world
9 | Created-By: Maven Integration for Eclipse
10 |
11 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/META-INF/maven/com.quinnox.example/grpc-java-hello-world/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Tue Jul 02 18:16:55 IST 2019
3 | version=0.0.1-SNAPSHOT
4 | groupId=com.quinnox.example
5 | m2e.projectName=grpc-java-hello-world
6 | m2e.projectLocation=D\:\\MIKE\\CYC\\poc\\grpc-java-master\\grpc-java-master\\grpc-java-hello-world
7 | artifactId=grpc-java-hello-world
8 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/META-INF/maven/com.quinnox.example/grpc-java-hello-world/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 |
6 | com.quinnox.example
7 | grpc-java-hello-world
8 | 0.0.1-SNAPSHOT
9 | jar
10 |
11 | grpc-java-hello-world
12 | gRPC Java Example
13 |
14 |
15 | org.springframework.boot
16 | spring-boot-starter-parent
17 | 2.1.0.RELEASE
18 |
19 |
20 |
21 |
22 | UTF-8
23 | UTF-8
24 | 1.8
25 | 3.0.0
26 | 1.6.1
27 | 0.6.1
28 |
29 |
30 |
31 |
32 | org.springframework.boot
33 | spring-boot-starter-web
34 |
35 |
36 | io.github.lognet
37 | grpc-spring-boot-starter
38 | ${grpc-spring-boot-starter.version}
39 |
40 |
41 | org.springframework.boot
42 | spring-boot-starter-test
43 | test
44 |
45 |
46 |
47 |
48 |
49 |
50 | kr.motd.maven
51 | os-maven-plugin
52 | ${os-maven-plugin.version}
53 |
54 |
55 |
56 |
57 | org.springframework.boot
58 | spring-boot-maven-plugin
59 |
60 |
61 | org.xolstice.maven.plugins
62 | protobuf-maven-plugin
63 | ${protobuf-maven-plugin.version}
64 |
65 | com.google.protobuf:protoc:3.5.1-1:exe:${os.detected.classifier}
66 | grpc-java
67 | io.grpc:protoc-gen-grpc-java:1.16.1:exe:${os.detected.classifier}
68 |
69 |
70 |
71 |
72 | compile
73 | compile-custom
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$1.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceBaseDescriptorSupplier.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceBaseDescriptorSupplier.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceBlockingStub.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceBlockingStub.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceFileDescriptorSupplier.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceFileDescriptorSupplier.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceFutureStub.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceFutureStub.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceImplBase.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceImplBase.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceMethodDescriptorSupplier.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceMethodDescriptorSupplier.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceStub.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$AddNumberServiceStub.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$MethodHandlers.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc$MethodHandlers.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/HelloWorld$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/HelloWorld$1.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/HelloWorld.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/HelloWorld.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Request$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Request$1.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Request$Builder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Request$Builder.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Request.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Request.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/RequestOrBuilder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/RequestOrBuilder.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Response$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Response$1.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Response$Builder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Response$Builder.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Response.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/Response.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/ResponseOrBuilder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/codenotfound/grpc/helloworld/ResponseOrBuilder.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/quinnox/example/grpc/SpringGrpcApplication.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/quinnox/example/grpc/SpringGrpcApplication.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/quinnox/example/grpc/client/AddNumberServiceClient.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/quinnox/example/grpc/client/AddNumberServiceClient.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/classes/com/quinnox/example/grpc/client/AddNumberServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/classes/com/quinnox/example/grpc/client/AddNumberServiceImpl.class
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/generated-sources/protobuf/grpc-java/com/codenotfound/grpc/helloworld/AddNumberServiceGrpc.java:
--------------------------------------------------------------------------------
1 | package com.codenotfound.grpc.helloworld;
2 |
3 | import static io.grpc.MethodDescriptor.generateFullMethodName;
4 | import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
5 | import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
6 | import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
7 | import static io.grpc.stub.ClientCalls.asyncUnaryCall;
8 | import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
9 | import static io.grpc.stub.ClientCalls.blockingUnaryCall;
10 | import static io.grpc.stub.ClientCalls.futureUnaryCall;
11 | import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
12 | import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
13 | import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
14 | import static io.grpc.stub.ServerCalls.asyncUnaryCall;
15 | import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
16 | import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
17 |
18 | /**
19 | */
20 | @javax.annotation.Generated(
21 | value = "by gRPC proto compiler (version 1.16.1)",
22 | comments = "Source: HelloWorld.proto")
23 | public final class AddNumberServiceGrpc {
24 |
25 | private AddNumberServiceGrpc() {}
26 |
27 | public static final String SERVICE_NAME = "com.codenotfound.grpc.helloworld.AddNumberService";
28 |
29 | // Static method descriptors that strictly reflect the proto.
30 | private static volatile io.grpc.MethodDescriptor getAddNumberMethod;
32 |
33 | @io.grpc.stub.annotations.RpcMethod(
34 | fullMethodName = SERVICE_NAME + '/' + "addNumber",
35 | requestType = com.codenotfound.grpc.helloworld.Request.class,
36 | responseType = com.codenotfound.grpc.helloworld.Response.class,
37 | methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
38 | public static io.grpc.MethodDescriptor getAddNumberMethod() {
40 | io.grpc.MethodDescriptor getAddNumberMethod;
41 | if ((getAddNumberMethod = AddNumberServiceGrpc.getAddNumberMethod) == null) {
42 | synchronized (AddNumberServiceGrpc.class) {
43 | if ((getAddNumberMethod = AddNumberServiceGrpc.getAddNumberMethod) == null) {
44 | AddNumberServiceGrpc.getAddNumberMethod = getAddNumberMethod =
45 | io.grpc.MethodDescriptor.newBuilder()
46 | .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
47 | .setFullMethodName(generateFullMethodName(
48 | "com.codenotfound.grpc.helloworld.AddNumberService", "addNumber"))
49 | .setSampledToLocalTracing(true)
50 | .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
51 | com.codenotfound.grpc.helloworld.Request.getDefaultInstance()))
52 | .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
53 | com.codenotfound.grpc.helloworld.Response.getDefaultInstance()))
54 | .setSchemaDescriptor(new AddNumberServiceMethodDescriptorSupplier("addNumber"))
55 | .build();
56 | }
57 | }
58 | }
59 | return getAddNumberMethod;
60 | }
61 |
62 | /**
63 | * Creates a new async stub that supports all call types for the service
64 | */
65 | public static AddNumberServiceStub newStub(io.grpc.Channel channel) {
66 | return new AddNumberServiceStub(channel);
67 | }
68 |
69 | /**
70 | * Creates a new blocking-style stub that supports unary and streaming output calls on the service
71 | */
72 | public static AddNumberServiceBlockingStub newBlockingStub(
73 | io.grpc.Channel channel) {
74 | return new AddNumberServiceBlockingStub(channel);
75 | }
76 |
77 | /**
78 | * Creates a new ListenableFuture-style stub that supports unary calls on the service
79 | */
80 | public static AddNumberServiceFutureStub newFutureStub(
81 | io.grpc.Channel channel) {
82 | return new AddNumberServiceFutureStub(channel);
83 | }
84 |
85 | /**
86 | */
87 | public static abstract class AddNumberServiceImplBase implements io.grpc.BindableService {
88 |
89 | /**
90 | */
91 | public void addNumber(com.codenotfound.grpc.helloworld.Request request,
92 | io.grpc.stub.StreamObserver responseObserver) {
93 | asyncUnimplementedUnaryCall(getAddNumberMethod(), responseObserver);
94 | }
95 |
96 | @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
97 | return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
98 | .addMethod(
99 | getAddNumberMethod(),
100 | asyncUnaryCall(
101 | new MethodHandlers<
102 | com.codenotfound.grpc.helloworld.Request,
103 | com.codenotfound.grpc.helloworld.Response>(
104 | this, METHODID_ADD_NUMBER)))
105 | .build();
106 | }
107 | }
108 |
109 | /**
110 | */
111 | public static final class AddNumberServiceStub extends io.grpc.stub.AbstractStub {
112 | private AddNumberServiceStub(io.grpc.Channel channel) {
113 | super(channel);
114 | }
115 |
116 | private AddNumberServiceStub(io.grpc.Channel channel,
117 | io.grpc.CallOptions callOptions) {
118 | super(channel, callOptions);
119 | }
120 |
121 | @java.lang.Override
122 | protected AddNumberServiceStub build(io.grpc.Channel channel,
123 | io.grpc.CallOptions callOptions) {
124 | return new AddNumberServiceStub(channel, callOptions);
125 | }
126 |
127 | /**
128 | */
129 | public void addNumber(com.codenotfound.grpc.helloworld.Request request,
130 | io.grpc.stub.StreamObserver responseObserver) {
131 | asyncUnaryCall(
132 | getChannel().newCall(getAddNumberMethod(), getCallOptions()), request, responseObserver);
133 | }
134 | }
135 |
136 | /**
137 | */
138 | public static final class AddNumberServiceBlockingStub extends io.grpc.stub.AbstractStub {
139 | private AddNumberServiceBlockingStub(io.grpc.Channel channel) {
140 | super(channel);
141 | }
142 |
143 | private AddNumberServiceBlockingStub(io.grpc.Channel channel,
144 | io.grpc.CallOptions callOptions) {
145 | super(channel, callOptions);
146 | }
147 |
148 | @java.lang.Override
149 | protected AddNumberServiceBlockingStub build(io.grpc.Channel channel,
150 | io.grpc.CallOptions callOptions) {
151 | return new AddNumberServiceBlockingStub(channel, callOptions);
152 | }
153 |
154 | /**
155 | */
156 | public com.codenotfound.grpc.helloworld.Response addNumber(com.codenotfound.grpc.helloworld.Request request) {
157 | return blockingUnaryCall(
158 | getChannel(), getAddNumberMethod(), getCallOptions(), request);
159 | }
160 | }
161 |
162 | /**
163 | */
164 | public static final class AddNumberServiceFutureStub extends io.grpc.stub.AbstractStub {
165 | private AddNumberServiceFutureStub(io.grpc.Channel channel) {
166 | super(channel);
167 | }
168 |
169 | private AddNumberServiceFutureStub(io.grpc.Channel channel,
170 | io.grpc.CallOptions callOptions) {
171 | super(channel, callOptions);
172 | }
173 |
174 | @java.lang.Override
175 | protected AddNumberServiceFutureStub build(io.grpc.Channel channel,
176 | io.grpc.CallOptions callOptions) {
177 | return new AddNumberServiceFutureStub(channel, callOptions);
178 | }
179 |
180 | /**
181 | */
182 | public com.google.common.util.concurrent.ListenableFuture addNumber(
183 | com.codenotfound.grpc.helloworld.Request request) {
184 | return futureUnaryCall(
185 | getChannel().newCall(getAddNumberMethod(), getCallOptions()), request);
186 | }
187 | }
188 |
189 | private static final int METHODID_ADD_NUMBER = 0;
190 |
191 | private static final class MethodHandlers implements
192 | io.grpc.stub.ServerCalls.UnaryMethod,
193 | io.grpc.stub.ServerCalls.ServerStreamingMethod,
194 | io.grpc.stub.ServerCalls.ClientStreamingMethod,
195 | io.grpc.stub.ServerCalls.BidiStreamingMethod {
196 | private final AddNumberServiceImplBase serviceImpl;
197 | private final int methodId;
198 |
199 | MethodHandlers(AddNumberServiceImplBase serviceImpl, int methodId) {
200 | this.serviceImpl = serviceImpl;
201 | this.methodId = methodId;
202 | }
203 |
204 | @java.lang.Override
205 | @java.lang.SuppressWarnings("unchecked")
206 | public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
207 | switch (methodId) {
208 | case METHODID_ADD_NUMBER:
209 | serviceImpl.addNumber((com.codenotfound.grpc.helloworld.Request) request,
210 | (io.grpc.stub.StreamObserver) responseObserver);
211 | break;
212 | default:
213 | throw new AssertionError();
214 | }
215 | }
216 |
217 | @java.lang.Override
218 | @java.lang.SuppressWarnings("unchecked")
219 | public io.grpc.stub.StreamObserver invoke(
220 | io.grpc.stub.StreamObserver responseObserver) {
221 | switch (methodId) {
222 | default:
223 | throw new AssertionError();
224 | }
225 | }
226 | }
227 |
228 | private static abstract class AddNumberServiceBaseDescriptorSupplier
229 | implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
230 | AddNumberServiceBaseDescriptorSupplier() {}
231 |
232 | @java.lang.Override
233 | public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
234 | return com.codenotfound.grpc.helloworld.HelloWorld.getDescriptor();
235 | }
236 |
237 | @java.lang.Override
238 | public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
239 | return getFileDescriptor().findServiceByName("AddNumberService");
240 | }
241 | }
242 |
243 | private static final class AddNumberServiceFileDescriptorSupplier
244 | extends AddNumberServiceBaseDescriptorSupplier {
245 | AddNumberServiceFileDescriptorSupplier() {}
246 | }
247 |
248 | private static final class AddNumberServiceMethodDescriptorSupplier
249 | extends AddNumberServiceBaseDescriptorSupplier
250 | implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
251 | private final String methodName;
252 |
253 | AddNumberServiceMethodDescriptorSupplier(String methodName) {
254 | this.methodName = methodName;
255 | }
256 |
257 | @java.lang.Override
258 | public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
259 | return getServiceDescriptor().findMethodByName(methodName);
260 | }
261 | }
262 |
263 | private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
264 |
265 | public static io.grpc.ServiceDescriptor getServiceDescriptor() {
266 | io.grpc.ServiceDescriptor result = serviceDescriptor;
267 | if (result == null) {
268 | synchronized (AddNumberServiceGrpc.class) {
269 | result = serviceDescriptor;
270 | if (result == null) {
271 | serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
272 | .setSchemaDescriptor(new AddNumberServiceFileDescriptorSupplier())
273 | .addMethod(getAddNumberMethod())
274 | .build();
275 | }
276 | }
277 | }
278 | return result;
279 | }
280 | }
281 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/generated-sources/protobuf/java/com/codenotfound/grpc/helloworld/HelloWorld.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: HelloWorld.proto
3 |
4 | package com.codenotfound.grpc.helloworld;
5 |
6 | public final class HelloWorld {
7 | private HelloWorld() {}
8 | public static void registerAllExtensions(
9 | com.google.protobuf.ExtensionRegistryLite registry) {
10 | }
11 |
12 | public static void registerAllExtensions(
13 | com.google.protobuf.ExtensionRegistry registry) {
14 | registerAllExtensions(
15 | (com.google.protobuf.ExtensionRegistryLite) registry);
16 | }
17 | static final com.google.protobuf.Descriptors.Descriptor
18 | internal_static_com_codenotfound_grpc_helloworld_Request_descriptor;
19 | static final
20 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
21 | internal_static_com_codenotfound_grpc_helloworld_Request_fieldAccessorTable;
22 | static final com.google.protobuf.Descriptors.Descriptor
23 | internal_static_com_codenotfound_grpc_helloworld_Response_descriptor;
24 | static final
25 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
26 | internal_static_com_codenotfound_grpc_helloworld_Response_fieldAccessorTable;
27 |
28 | public static com.google.protobuf.Descriptors.FileDescriptor
29 | getDescriptor() {
30 | return descriptor;
31 | }
32 | private static com.google.protobuf.Descriptors.FileDescriptor
33 | descriptor;
34 | static {
35 | java.lang.String[] descriptorData = {
36 | "\n\020HelloWorld.proto\022 com.codenotfound.grp" +
37 | "c.helloworld\"\037\n\007Request\022\t\n\001a\030\001 \001(\003\022\t\n\001b\030" +
38 | "\002 \001(\003\"\032\n\010Response\022\016\n\006result\030\001 \001(\0032v\n\020Add" +
39 | "NumberService\022b\n\taddNumber\022).com.codenot" +
40 | "found.grpc.helloworld.Request\032*.com.code" +
41 | "notfound.grpc.helloworld.ResponseB\002P\001b\006p" +
42 | "roto3"
43 | };
44 | com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
45 | new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
46 | public com.google.protobuf.ExtensionRegistry assignDescriptors(
47 | com.google.protobuf.Descriptors.FileDescriptor root) {
48 | descriptor = root;
49 | return null;
50 | }
51 | };
52 | com.google.protobuf.Descriptors.FileDescriptor
53 | .internalBuildGeneratedFileFrom(descriptorData,
54 | new com.google.protobuf.Descriptors.FileDescriptor[] {
55 | }, assigner);
56 | internal_static_com_codenotfound_grpc_helloworld_Request_descriptor =
57 | getDescriptor().getMessageTypes().get(0);
58 | internal_static_com_codenotfound_grpc_helloworld_Request_fieldAccessorTable = new
59 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
60 | internal_static_com_codenotfound_grpc_helloworld_Request_descriptor,
61 | new java.lang.String[] { "A", "B", });
62 | internal_static_com_codenotfound_grpc_helloworld_Response_descriptor =
63 | getDescriptor().getMessageTypes().get(1);
64 | internal_static_com_codenotfound_grpc_helloworld_Response_fieldAccessorTable = new
65 | com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
66 | internal_static_com_codenotfound_grpc_helloworld_Response_descriptor,
67 | new java.lang.String[] { "Result", });
68 | }
69 |
70 | // @@protoc_insertion_point(outer_class_scope)
71 | }
72 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/generated-sources/protobuf/java/com/codenotfound/grpc/helloworld/Request.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: HelloWorld.proto
3 |
4 | package com.codenotfound.grpc.helloworld;
5 |
6 | /**
7 | * Protobuf type {@code com.codenotfound.grpc.helloworld.Request}
8 | */
9 | public final class Request extends
10 | com.google.protobuf.GeneratedMessageV3 implements
11 | // @@protoc_insertion_point(message_implements:com.codenotfound.grpc.helloworld.Request)
12 | RequestOrBuilder {
13 | private static final long serialVersionUID = 0L;
14 | // Use Request.newBuilder() to construct.
15 | private Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
16 | super(builder);
17 | }
18 | private Request() {
19 | a_ = 0L;
20 | b_ = 0L;
21 | }
22 |
23 | @java.lang.Override
24 | public final com.google.protobuf.UnknownFieldSet
25 | getUnknownFields() {
26 | return this.unknownFields;
27 | }
28 | private Request(
29 | com.google.protobuf.CodedInputStream input,
30 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
31 | throws com.google.protobuf.InvalidProtocolBufferException {
32 | this();
33 | if (extensionRegistry == null) {
34 | throw new java.lang.NullPointerException();
35 | }
36 | int mutable_bitField0_ = 0;
37 | com.google.protobuf.UnknownFieldSet.Builder unknownFields =
38 | com.google.protobuf.UnknownFieldSet.newBuilder();
39 | try {
40 | boolean done = false;
41 | while (!done) {
42 | int tag = input.readTag();
43 | switch (tag) {
44 | case 0:
45 | done = true;
46 | break;
47 | default: {
48 | if (!parseUnknownFieldProto3(
49 | input, unknownFields, extensionRegistry, tag)) {
50 | done = true;
51 | }
52 | break;
53 | }
54 | case 8: {
55 |
56 | a_ = input.readInt64();
57 | break;
58 | }
59 | case 16: {
60 |
61 | b_ = input.readInt64();
62 | break;
63 | }
64 | }
65 | }
66 | } catch (com.google.protobuf.InvalidProtocolBufferException e) {
67 | throw e.setUnfinishedMessage(this);
68 | } catch (java.io.IOException e) {
69 | throw new com.google.protobuf.InvalidProtocolBufferException(
70 | e).setUnfinishedMessage(this);
71 | } finally {
72 | this.unknownFields = unknownFields.build();
73 | makeExtensionsImmutable();
74 | }
75 | }
76 | public static final com.google.protobuf.Descriptors.Descriptor
77 | getDescriptor() {
78 | return com.codenotfound.grpc.helloworld.HelloWorld.internal_static_com_codenotfound_grpc_helloworld_Request_descriptor;
79 | }
80 |
81 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
82 | internalGetFieldAccessorTable() {
83 | return com.codenotfound.grpc.helloworld.HelloWorld.internal_static_com_codenotfound_grpc_helloworld_Request_fieldAccessorTable
84 | .ensureFieldAccessorsInitialized(
85 | com.codenotfound.grpc.helloworld.Request.class, com.codenotfound.grpc.helloworld.Request.Builder.class);
86 | }
87 |
88 | public static final int A_FIELD_NUMBER = 1;
89 | private long a_;
90 | /**
91 | * int64 a = 1;
92 | */
93 | public long getA() {
94 | return a_;
95 | }
96 |
97 | public static final int B_FIELD_NUMBER = 2;
98 | private long b_;
99 | /**
100 | * int64 b = 2;
101 | */
102 | public long getB() {
103 | return b_;
104 | }
105 |
106 | private byte memoizedIsInitialized = -1;
107 | public final boolean isInitialized() {
108 | byte isInitialized = memoizedIsInitialized;
109 | if (isInitialized == 1) return true;
110 | if (isInitialized == 0) return false;
111 |
112 | memoizedIsInitialized = 1;
113 | return true;
114 | }
115 |
116 | public void writeTo(com.google.protobuf.CodedOutputStream output)
117 | throws java.io.IOException {
118 | if (a_ != 0L) {
119 | output.writeInt64(1, a_);
120 | }
121 | if (b_ != 0L) {
122 | output.writeInt64(2, b_);
123 | }
124 | unknownFields.writeTo(output);
125 | }
126 |
127 | public int getSerializedSize() {
128 | int size = memoizedSize;
129 | if (size != -1) return size;
130 |
131 | size = 0;
132 | if (a_ != 0L) {
133 | size += com.google.protobuf.CodedOutputStream
134 | .computeInt64Size(1, a_);
135 | }
136 | if (b_ != 0L) {
137 | size += com.google.protobuf.CodedOutputStream
138 | .computeInt64Size(2, b_);
139 | }
140 | size += unknownFields.getSerializedSize();
141 | memoizedSize = size;
142 | return size;
143 | }
144 |
145 | @java.lang.Override
146 | public boolean equals(final java.lang.Object obj) {
147 | if (obj == this) {
148 | return true;
149 | }
150 | if (!(obj instanceof com.codenotfound.grpc.helloworld.Request)) {
151 | return super.equals(obj);
152 | }
153 | com.codenotfound.grpc.helloworld.Request other = (com.codenotfound.grpc.helloworld.Request) obj;
154 |
155 | boolean result = true;
156 | result = result && (getA()
157 | == other.getA());
158 | result = result && (getB()
159 | == other.getB());
160 | result = result && unknownFields.equals(other.unknownFields);
161 | return result;
162 | }
163 |
164 | @java.lang.Override
165 | public int hashCode() {
166 | if (memoizedHashCode != 0) {
167 | return memoizedHashCode;
168 | }
169 | int hash = 41;
170 | hash = (19 * hash) + getDescriptor().hashCode();
171 | hash = (37 * hash) + A_FIELD_NUMBER;
172 | hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
173 | getA());
174 | hash = (37 * hash) + B_FIELD_NUMBER;
175 | hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
176 | getB());
177 | hash = (29 * hash) + unknownFields.hashCode();
178 | memoizedHashCode = hash;
179 | return hash;
180 | }
181 |
182 | public static com.codenotfound.grpc.helloworld.Request parseFrom(
183 | java.nio.ByteBuffer data)
184 | throws com.google.protobuf.InvalidProtocolBufferException {
185 | return PARSER.parseFrom(data);
186 | }
187 | public static com.codenotfound.grpc.helloworld.Request parseFrom(
188 | java.nio.ByteBuffer data,
189 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
190 | throws com.google.protobuf.InvalidProtocolBufferException {
191 | return PARSER.parseFrom(data, extensionRegistry);
192 | }
193 | public static com.codenotfound.grpc.helloworld.Request parseFrom(
194 | com.google.protobuf.ByteString data)
195 | throws com.google.protobuf.InvalidProtocolBufferException {
196 | return PARSER.parseFrom(data);
197 | }
198 | public static com.codenotfound.grpc.helloworld.Request parseFrom(
199 | com.google.protobuf.ByteString data,
200 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
201 | throws com.google.protobuf.InvalidProtocolBufferException {
202 | return PARSER.parseFrom(data, extensionRegistry);
203 | }
204 | public static com.codenotfound.grpc.helloworld.Request parseFrom(byte[] data)
205 | throws com.google.protobuf.InvalidProtocolBufferException {
206 | return PARSER.parseFrom(data);
207 | }
208 | public static com.codenotfound.grpc.helloworld.Request parseFrom(
209 | byte[] data,
210 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
211 | throws com.google.protobuf.InvalidProtocolBufferException {
212 | return PARSER.parseFrom(data, extensionRegistry);
213 | }
214 | public static com.codenotfound.grpc.helloworld.Request parseFrom(java.io.InputStream input)
215 | throws java.io.IOException {
216 | return com.google.protobuf.GeneratedMessageV3
217 | .parseWithIOException(PARSER, input);
218 | }
219 | public static com.codenotfound.grpc.helloworld.Request parseFrom(
220 | java.io.InputStream input,
221 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
222 | throws java.io.IOException {
223 | return com.google.protobuf.GeneratedMessageV3
224 | .parseWithIOException(PARSER, input, extensionRegistry);
225 | }
226 | public static com.codenotfound.grpc.helloworld.Request parseDelimitedFrom(java.io.InputStream input)
227 | throws java.io.IOException {
228 | return com.google.protobuf.GeneratedMessageV3
229 | .parseDelimitedWithIOException(PARSER, input);
230 | }
231 | public static com.codenotfound.grpc.helloworld.Request parseDelimitedFrom(
232 | java.io.InputStream input,
233 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
234 | throws java.io.IOException {
235 | return com.google.protobuf.GeneratedMessageV3
236 | .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
237 | }
238 | public static com.codenotfound.grpc.helloworld.Request parseFrom(
239 | com.google.protobuf.CodedInputStream input)
240 | throws java.io.IOException {
241 | return com.google.protobuf.GeneratedMessageV3
242 | .parseWithIOException(PARSER, input);
243 | }
244 | public static com.codenotfound.grpc.helloworld.Request parseFrom(
245 | com.google.protobuf.CodedInputStream input,
246 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
247 | throws java.io.IOException {
248 | return com.google.protobuf.GeneratedMessageV3
249 | .parseWithIOException(PARSER, input, extensionRegistry);
250 | }
251 |
252 | public Builder newBuilderForType() { return newBuilder(); }
253 | public static Builder newBuilder() {
254 | return DEFAULT_INSTANCE.toBuilder();
255 | }
256 | public static Builder newBuilder(com.codenotfound.grpc.helloworld.Request prototype) {
257 | return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
258 | }
259 | public Builder toBuilder() {
260 | return this == DEFAULT_INSTANCE
261 | ? new Builder() : new Builder().mergeFrom(this);
262 | }
263 |
264 | @java.lang.Override
265 | protected Builder newBuilderForType(
266 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
267 | Builder builder = new Builder(parent);
268 | return builder;
269 | }
270 | /**
271 | * Protobuf type {@code com.codenotfound.grpc.helloworld.Request}
272 | */
273 | public static final class Builder extends
274 | com.google.protobuf.GeneratedMessageV3.Builder implements
275 | // @@protoc_insertion_point(builder_implements:com.codenotfound.grpc.helloworld.Request)
276 | com.codenotfound.grpc.helloworld.RequestOrBuilder {
277 | public static final com.google.protobuf.Descriptors.Descriptor
278 | getDescriptor() {
279 | return com.codenotfound.grpc.helloworld.HelloWorld.internal_static_com_codenotfound_grpc_helloworld_Request_descriptor;
280 | }
281 |
282 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
283 | internalGetFieldAccessorTable() {
284 | return com.codenotfound.grpc.helloworld.HelloWorld.internal_static_com_codenotfound_grpc_helloworld_Request_fieldAccessorTable
285 | .ensureFieldAccessorsInitialized(
286 | com.codenotfound.grpc.helloworld.Request.class, com.codenotfound.grpc.helloworld.Request.Builder.class);
287 | }
288 |
289 | // Construct using com.codenotfound.grpc.helloworld.Request.newBuilder()
290 | private Builder() {
291 | maybeForceBuilderInitialization();
292 | }
293 |
294 | private Builder(
295 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
296 | super(parent);
297 | maybeForceBuilderInitialization();
298 | }
299 | private void maybeForceBuilderInitialization() {
300 | if (com.google.protobuf.GeneratedMessageV3
301 | .alwaysUseFieldBuilders) {
302 | }
303 | }
304 | public Builder clear() {
305 | super.clear();
306 | a_ = 0L;
307 |
308 | b_ = 0L;
309 |
310 | return this;
311 | }
312 |
313 | public com.google.protobuf.Descriptors.Descriptor
314 | getDescriptorForType() {
315 | return com.codenotfound.grpc.helloworld.HelloWorld.internal_static_com_codenotfound_grpc_helloworld_Request_descriptor;
316 | }
317 |
318 | public com.codenotfound.grpc.helloworld.Request getDefaultInstanceForType() {
319 | return com.codenotfound.grpc.helloworld.Request.getDefaultInstance();
320 | }
321 |
322 | public com.codenotfound.grpc.helloworld.Request build() {
323 | com.codenotfound.grpc.helloworld.Request result = buildPartial();
324 | if (!result.isInitialized()) {
325 | throw newUninitializedMessageException(result);
326 | }
327 | return result;
328 | }
329 |
330 | public com.codenotfound.grpc.helloworld.Request buildPartial() {
331 | com.codenotfound.grpc.helloworld.Request result = new com.codenotfound.grpc.helloworld.Request(this);
332 | result.a_ = a_;
333 | result.b_ = b_;
334 | onBuilt();
335 | return result;
336 | }
337 |
338 | public Builder clone() {
339 | return (Builder) super.clone();
340 | }
341 | public Builder setField(
342 | com.google.protobuf.Descriptors.FieldDescriptor field,
343 | java.lang.Object value) {
344 | return (Builder) super.setField(field, value);
345 | }
346 | public Builder clearField(
347 | com.google.protobuf.Descriptors.FieldDescriptor field) {
348 | return (Builder) super.clearField(field);
349 | }
350 | public Builder clearOneof(
351 | com.google.protobuf.Descriptors.OneofDescriptor oneof) {
352 | return (Builder) super.clearOneof(oneof);
353 | }
354 | public Builder setRepeatedField(
355 | com.google.protobuf.Descriptors.FieldDescriptor field,
356 | int index, java.lang.Object value) {
357 | return (Builder) super.setRepeatedField(field, index, value);
358 | }
359 | public Builder addRepeatedField(
360 | com.google.protobuf.Descriptors.FieldDescriptor field,
361 | java.lang.Object value) {
362 | return (Builder) super.addRepeatedField(field, value);
363 | }
364 | public Builder mergeFrom(com.google.protobuf.Message other) {
365 | if (other instanceof com.codenotfound.grpc.helloworld.Request) {
366 | return mergeFrom((com.codenotfound.grpc.helloworld.Request)other);
367 | } else {
368 | super.mergeFrom(other);
369 | return this;
370 | }
371 | }
372 |
373 | public Builder mergeFrom(com.codenotfound.grpc.helloworld.Request other) {
374 | if (other == com.codenotfound.grpc.helloworld.Request.getDefaultInstance()) return this;
375 | if (other.getA() != 0L) {
376 | setA(other.getA());
377 | }
378 | if (other.getB() != 0L) {
379 | setB(other.getB());
380 | }
381 | this.mergeUnknownFields(other.unknownFields);
382 | onChanged();
383 | return this;
384 | }
385 |
386 | public final boolean isInitialized() {
387 | return true;
388 | }
389 |
390 | public Builder mergeFrom(
391 | com.google.protobuf.CodedInputStream input,
392 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
393 | throws java.io.IOException {
394 | com.codenotfound.grpc.helloworld.Request parsedMessage = null;
395 | try {
396 | parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
397 | } catch (com.google.protobuf.InvalidProtocolBufferException e) {
398 | parsedMessage = (com.codenotfound.grpc.helloworld.Request) e.getUnfinishedMessage();
399 | throw e.unwrapIOException();
400 | } finally {
401 | if (parsedMessage != null) {
402 | mergeFrom(parsedMessage);
403 | }
404 | }
405 | return this;
406 | }
407 |
408 | private long a_ ;
409 | /**
410 | * int64 a = 1;
411 | */
412 | public long getA() {
413 | return a_;
414 | }
415 | /**
416 | * int64 a = 1;
417 | */
418 | public Builder setA(long value) {
419 |
420 | a_ = value;
421 | onChanged();
422 | return this;
423 | }
424 | /**
425 | * int64 a = 1;
426 | */
427 | public Builder clearA() {
428 |
429 | a_ = 0L;
430 | onChanged();
431 | return this;
432 | }
433 |
434 | private long b_ ;
435 | /**
436 | * int64 b = 2;
437 | */
438 | public long getB() {
439 | return b_;
440 | }
441 | /**
442 | * int64 b = 2;
443 | */
444 | public Builder setB(long value) {
445 |
446 | b_ = value;
447 | onChanged();
448 | return this;
449 | }
450 | /**
451 | * int64 b = 2;
452 | */
453 | public Builder clearB() {
454 |
455 | b_ = 0L;
456 | onChanged();
457 | return this;
458 | }
459 | public final Builder setUnknownFields(
460 | final com.google.protobuf.UnknownFieldSet unknownFields) {
461 | return super.setUnknownFieldsProto3(unknownFields);
462 | }
463 |
464 | public final Builder mergeUnknownFields(
465 | final com.google.protobuf.UnknownFieldSet unknownFields) {
466 | return super.mergeUnknownFields(unknownFields);
467 | }
468 |
469 |
470 | // @@protoc_insertion_point(builder_scope:com.codenotfound.grpc.helloworld.Request)
471 | }
472 |
473 | // @@protoc_insertion_point(class_scope:com.codenotfound.grpc.helloworld.Request)
474 | private static final com.codenotfound.grpc.helloworld.Request DEFAULT_INSTANCE;
475 | static {
476 | DEFAULT_INSTANCE = new com.codenotfound.grpc.helloworld.Request();
477 | }
478 |
479 | public static com.codenotfound.grpc.helloworld.Request getDefaultInstance() {
480 | return DEFAULT_INSTANCE;
481 | }
482 |
483 | private static final com.google.protobuf.Parser
484 | PARSER = new com.google.protobuf.AbstractParser() {
485 | public Request parsePartialFrom(
486 | com.google.protobuf.CodedInputStream input,
487 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
488 | throws com.google.protobuf.InvalidProtocolBufferException {
489 | return new Request(input, extensionRegistry);
490 | }
491 | };
492 |
493 | public static com.google.protobuf.Parser parser() {
494 | return PARSER;
495 | }
496 |
497 | @java.lang.Override
498 | public com.google.protobuf.Parser getParserForType() {
499 | return PARSER;
500 | }
501 |
502 | public com.codenotfound.grpc.helloworld.Request getDefaultInstanceForType() {
503 | return DEFAULT_INSTANCE;
504 | }
505 |
506 | }
507 |
508 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/generated-sources/protobuf/java/com/codenotfound/grpc/helloworld/RequestOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: HelloWorld.proto
3 |
4 | package com.codenotfound.grpc.helloworld;
5 |
6 | public interface RequestOrBuilder extends
7 | // @@protoc_insertion_point(interface_extends:com.codenotfound.grpc.helloworld.Request)
8 | com.google.protobuf.MessageOrBuilder {
9 |
10 | /**
11 | * int64 a = 1;
12 | */
13 | long getA();
14 |
15 | /**
16 | * int64 b = 2;
17 | */
18 | long getB();
19 | }
20 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/generated-sources/protobuf/java/com/codenotfound/grpc/helloworld/Response.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: HelloWorld.proto
3 |
4 | package com.codenotfound.grpc.helloworld;
5 |
6 | /**
7 | * Protobuf type {@code com.codenotfound.grpc.helloworld.Response}
8 | */
9 | public final class Response extends
10 | com.google.protobuf.GeneratedMessageV3 implements
11 | // @@protoc_insertion_point(message_implements:com.codenotfound.grpc.helloworld.Response)
12 | ResponseOrBuilder {
13 | private static final long serialVersionUID = 0L;
14 | // Use Response.newBuilder() to construct.
15 | private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
16 | super(builder);
17 | }
18 | private Response() {
19 | result_ = 0L;
20 | }
21 |
22 | @java.lang.Override
23 | public final com.google.protobuf.UnknownFieldSet
24 | getUnknownFields() {
25 | return this.unknownFields;
26 | }
27 | private Response(
28 | com.google.protobuf.CodedInputStream input,
29 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
30 | throws com.google.protobuf.InvalidProtocolBufferException {
31 | this();
32 | if (extensionRegistry == null) {
33 | throw new java.lang.NullPointerException();
34 | }
35 | int mutable_bitField0_ = 0;
36 | com.google.protobuf.UnknownFieldSet.Builder unknownFields =
37 | com.google.protobuf.UnknownFieldSet.newBuilder();
38 | try {
39 | boolean done = false;
40 | while (!done) {
41 | int tag = input.readTag();
42 | switch (tag) {
43 | case 0:
44 | done = true;
45 | break;
46 | default: {
47 | if (!parseUnknownFieldProto3(
48 | input, unknownFields, extensionRegistry, tag)) {
49 | done = true;
50 | }
51 | break;
52 | }
53 | case 8: {
54 |
55 | result_ = input.readInt64();
56 | break;
57 | }
58 | }
59 | }
60 | } catch (com.google.protobuf.InvalidProtocolBufferException e) {
61 | throw e.setUnfinishedMessage(this);
62 | } catch (java.io.IOException e) {
63 | throw new com.google.protobuf.InvalidProtocolBufferException(
64 | e).setUnfinishedMessage(this);
65 | } finally {
66 | this.unknownFields = unknownFields.build();
67 | makeExtensionsImmutable();
68 | }
69 | }
70 | public static final com.google.protobuf.Descriptors.Descriptor
71 | getDescriptor() {
72 | return com.codenotfound.grpc.helloworld.HelloWorld.internal_static_com_codenotfound_grpc_helloworld_Response_descriptor;
73 | }
74 |
75 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
76 | internalGetFieldAccessorTable() {
77 | return com.codenotfound.grpc.helloworld.HelloWorld.internal_static_com_codenotfound_grpc_helloworld_Response_fieldAccessorTable
78 | .ensureFieldAccessorsInitialized(
79 | com.codenotfound.grpc.helloworld.Response.class, com.codenotfound.grpc.helloworld.Response.Builder.class);
80 | }
81 |
82 | public static final int RESULT_FIELD_NUMBER = 1;
83 | private long result_;
84 | /**
85 | * int64 result = 1;
86 | */
87 | public long getResult() {
88 | return result_;
89 | }
90 |
91 | private byte memoizedIsInitialized = -1;
92 | public final boolean isInitialized() {
93 | byte isInitialized = memoizedIsInitialized;
94 | if (isInitialized == 1) return true;
95 | if (isInitialized == 0) return false;
96 |
97 | memoizedIsInitialized = 1;
98 | return true;
99 | }
100 |
101 | public void writeTo(com.google.protobuf.CodedOutputStream output)
102 | throws java.io.IOException {
103 | if (result_ != 0L) {
104 | output.writeInt64(1, result_);
105 | }
106 | unknownFields.writeTo(output);
107 | }
108 |
109 | public int getSerializedSize() {
110 | int size = memoizedSize;
111 | if (size != -1) return size;
112 |
113 | size = 0;
114 | if (result_ != 0L) {
115 | size += com.google.protobuf.CodedOutputStream
116 | .computeInt64Size(1, result_);
117 | }
118 | size += unknownFields.getSerializedSize();
119 | memoizedSize = size;
120 | return size;
121 | }
122 |
123 | @java.lang.Override
124 | public boolean equals(final java.lang.Object obj) {
125 | if (obj == this) {
126 | return true;
127 | }
128 | if (!(obj instanceof com.codenotfound.grpc.helloworld.Response)) {
129 | return super.equals(obj);
130 | }
131 | com.codenotfound.grpc.helloworld.Response other = (com.codenotfound.grpc.helloworld.Response) obj;
132 |
133 | boolean result = true;
134 | result = result && (getResult()
135 | == other.getResult());
136 | result = result && unknownFields.equals(other.unknownFields);
137 | return result;
138 | }
139 |
140 | @java.lang.Override
141 | public int hashCode() {
142 | if (memoizedHashCode != 0) {
143 | return memoizedHashCode;
144 | }
145 | int hash = 41;
146 | hash = (19 * hash) + getDescriptor().hashCode();
147 | hash = (37 * hash) + RESULT_FIELD_NUMBER;
148 | hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
149 | getResult());
150 | hash = (29 * hash) + unknownFields.hashCode();
151 | memoizedHashCode = hash;
152 | return hash;
153 | }
154 |
155 | public static com.codenotfound.grpc.helloworld.Response parseFrom(
156 | java.nio.ByteBuffer data)
157 | throws com.google.protobuf.InvalidProtocolBufferException {
158 | return PARSER.parseFrom(data);
159 | }
160 | public static com.codenotfound.grpc.helloworld.Response parseFrom(
161 | java.nio.ByteBuffer data,
162 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
163 | throws com.google.protobuf.InvalidProtocolBufferException {
164 | return PARSER.parseFrom(data, extensionRegistry);
165 | }
166 | public static com.codenotfound.grpc.helloworld.Response parseFrom(
167 | com.google.protobuf.ByteString data)
168 | throws com.google.protobuf.InvalidProtocolBufferException {
169 | return PARSER.parseFrom(data);
170 | }
171 | public static com.codenotfound.grpc.helloworld.Response parseFrom(
172 | com.google.protobuf.ByteString data,
173 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
174 | throws com.google.protobuf.InvalidProtocolBufferException {
175 | return PARSER.parseFrom(data, extensionRegistry);
176 | }
177 | public static com.codenotfound.grpc.helloworld.Response parseFrom(byte[] data)
178 | throws com.google.protobuf.InvalidProtocolBufferException {
179 | return PARSER.parseFrom(data);
180 | }
181 | public static com.codenotfound.grpc.helloworld.Response parseFrom(
182 | byte[] data,
183 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
184 | throws com.google.protobuf.InvalidProtocolBufferException {
185 | return PARSER.parseFrom(data, extensionRegistry);
186 | }
187 | public static com.codenotfound.grpc.helloworld.Response parseFrom(java.io.InputStream input)
188 | throws java.io.IOException {
189 | return com.google.protobuf.GeneratedMessageV3
190 | .parseWithIOException(PARSER, input);
191 | }
192 | public static com.codenotfound.grpc.helloworld.Response parseFrom(
193 | java.io.InputStream input,
194 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
195 | throws java.io.IOException {
196 | return com.google.protobuf.GeneratedMessageV3
197 | .parseWithIOException(PARSER, input, extensionRegistry);
198 | }
199 | public static com.codenotfound.grpc.helloworld.Response parseDelimitedFrom(java.io.InputStream input)
200 | throws java.io.IOException {
201 | return com.google.protobuf.GeneratedMessageV3
202 | .parseDelimitedWithIOException(PARSER, input);
203 | }
204 | public static com.codenotfound.grpc.helloworld.Response parseDelimitedFrom(
205 | java.io.InputStream input,
206 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
207 | throws java.io.IOException {
208 | return com.google.protobuf.GeneratedMessageV3
209 | .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
210 | }
211 | public static com.codenotfound.grpc.helloworld.Response parseFrom(
212 | com.google.protobuf.CodedInputStream input)
213 | throws java.io.IOException {
214 | return com.google.protobuf.GeneratedMessageV3
215 | .parseWithIOException(PARSER, input);
216 | }
217 | public static com.codenotfound.grpc.helloworld.Response parseFrom(
218 | com.google.protobuf.CodedInputStream input,
219 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
220 | throws java.io.IOException {
221 | return com.google.protobuf.GeneratedMessageV3
222 | .parseWithIOException(PARSER, input, extensionRegistry);
223 | }
224 |
225 | public Builder newBuilderForType() { return newBuilder(); }
226 | public static Builder newBuilder() {
227 | return DEFAULT_INSTANCE.toBuilder();
228 | }
229 | public static Builder newBuilder(com.codenotfound.grpc.helloworld.Response prototype) {
230 | return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
231 | }
232 | public Builder toBuilder() {
233 | return this == DEFAULT_INSTANCE
234 | ? new Builder() : new Builder().mergeFrom(this);
235 | }
236 |
237 | @java.lang.Override
238 | protected Builder newBuilderForType(
239 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
240 | Builder builder = new Builder(parent);
241 | return builder;
242 | }
243 | /**
244 | * Protobuf type {@code com.codenotfound.grpc.helloworld.Response}
245 | */
246 | public static final class Builder extends
247 | com.google.protobuf.GeneratedMessageV3.Builder implements
248 | // @@protoc_insertion_point(builder_implements:com.codenotfound.grpc.helloworld.Response)
249 | com.codenotfound.grpc.helloworld.ResponseOrBuilder {
250 | public static final com.google.protobuf.Descriptors.Descriptor
251 | getDescriptor() {
252 | return com.codenotfound.grpc.helloworld.HelloWorld.internal_static_com_codenotfound_grpc_helloworld_Response_descriptor;
253 | }
254 |
255 | protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
256 | internalGetFieldAccessorTable() {
257 | return com.codenotfound.grpc.helloworld.HelloWorld.internal_static_com_codenotfound_grpc_helloworld_Response_fieldAccessorTable
258 | .ensureFieldAccessorsInitialized(
259 | com.codenotfound.grpc.helloworld.Response.class, com.codenotfound.grpc.helloworld.Response.Builder.class);
260 | }
261 |
262 | // Construct using com.codenotfound.grpc.helloworld.Response.newBuilder()
263 | private Builder() {
264 | maybeForceBuilderInitialization();
265 | }
266 |
267 | private Builder(
268 | com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
269 | super(parent);
270 | maybeForceBuilderInitialization();
271 | }
272 | private void maybeForceBuilderInitialization() {
273 | if (com.google.protobuf.GeneratedMessageV3
274 | .alwaysUseFieldBuilders) {
275 | }
276 | }
277 | public Builder clear() {
278 | super.clear();
279 | result_ = 0L;
280 |
281 | return this;
282 | }
283 |
284 | public com.google.protobuf.Descriptors.Descriptor
285 | getDescriptorForType() {
286 | return com.codenotfound.grpc.helloworld.HelloWorld.internal_static_com_codenotfound_grpc_helloworld_Response_descriptor;
287 | }
288 |
289 | public com.codenotfound.grpc.helloworld.Response getDefaultInstanceForType() {
290 | return com.codenotfound.grpc.helloworld.Response.getDefaultInstance();
291 | }
292 |
293 | public com.codenotfound.grpc.helloworld.Response build() {
294 | com.codenotfound.grpc.helloworld.Response result = buildPartial();
295 | if (!result.isInitialized()) {
296 | throw newUninitializedMessageException(result);
297 | }
298 | return result;
299 | }
300 |
301 | public com.codenotfound.grpc.helloworld.Response buildPartial() {
302 | com.codenotfound.grpc.helloworld.Response result = new com.codenotfound.grpc.helloworld.Response(this);
303 | result.result_ = result_;
304 | onBuilt();
305 | return result;
306 | }
307 |
308 | public Builder clone() {
309 | return (Builder) super.clone();
310 | }
311 | public Builder setField(
312 | com.google.protobuf.Descriptors.FieldDescriptor field,
313 | java.lang.Object value) {
314 | return (Builder) super.setField(field, value);
315 | }
316 | public Builder clearField(
317 | com.google.protobuf.Descriptors.FieldDescriptor field) {
318 | return (Builder) super.clearField(field);
319 | }
320 | public Builder clearOneof(
321 | com.google.protobuf.Descriptors.OneofDescriptor oneof) {
322 | return (Builder) super.clearOneof(oneof);
323 | }
324 | public Builder setRepeatedField(
325 | com.google.protobuf.Descriptors.FieldDescriptor field,
326 | int index, java.lang.Object value) {
327 | return (Builder) super.setRepeatedField(field, index, value);
328 | }
329 | public Builder addRepeatedField(
330 | com.google.protobuf.Descriptors.FieldDescriptor field,
331 | java.lang.Object value) {
332 | return (Builder) super.addRepeatedField(field, value);
333 | }
334 | public Builder mergeFrom(com.google.protobuf.Message other) {
335 | if (other instanceof com.codenotfound.grpc.helloworld.Response) {
336 | return mergeFrom((com.codenotfound.grpc.helloworld.Response)other);
337 | } else {
338 | super.mergeFrom(other);
339 | return this;
340 | }
341 | }
342 |
343 | public Builder mergeFrom(com.codenotfound.grpc.helloworld.Response other) {
344 | if (other == com.codenotfound.grpc.helloworld.Response.getDefaultInstance()) return this;
345 | if (other.getResult() != 0L) {
346 | setResult(other.getResult());
347 | }
348 | this.mergeUnknownFields(other.unknownFields);
349 | onChanged();
350 | return this;
351 | }
352 |
353 | public final boolean isInitialized() {
354 | return true;
355 | }
356 |
357 | public Builder mergeFrom(
358 | com.google.protobuf.CodedInputStream input,
359 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
360 | throws java.io.IOException {
361 | com.codenotfound.grpc.helloworld.Response parsedMessage = null;
362 | try {
363 | parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
364 | } catch (com.google.protobuf.InvalidProtocolBufferException e) {
365 | parsedMessage = (com.codenotfound.grpc.helloworld.Response) e.getUnfinishedMessage();
366 | throw e.unwrapIOException();
367 | } finally {
368 | if (parsedMessage != null) {
369 | mergeFrom(parsedMessage);
370 | }
371 | }
372 | return this;
373 | }
374 |
375 | private long result_ ;
376 | /**
377 | * int64 result = 1;
378 | */
379 | public long getResult() {
380 | return result_;
381 | }
382 | /**
383 | * int64 result = 1;
384 | */
385 | public Builder setResult(long value) {
386 |
387 | result_ = value;
388 | onChanged();
389 | return this;
390 | }
391 | /**
392 | * int64 result = 1;
393 | */
394 | public Builder clearResult() {
395 |
396 | result_ = 0L;
397 | onChanged();
398 | return this;
399 | }
400 | public final Builder setUnknownFields(
401 | final com.google.protobuf.UnknownFieldSet unknownFields) {
402 | return super.setUnknownFieldsProto3(unknownFields);
403 | }
404 |
405 | public final Builder mergeUnknownFields(
406 | final com.google.protobuf.UnknownFieldSet unknownFields) {
407 | return super.mergeUnknownFields(unknownFields);
408 | }
409 |
410 |
411 | // @@protoc_insertion_point(builder_scope:com.codenotfound.grpc.helloworld.Response)
412 | }
413 |
414 | // @@protoc_insertion_point(class_scope:com.codenotfound.grpc.helloworld.Response)
415 | private static final com.codenotfound.grpc.helloworld.Response DEFAULT_INSTANCE;
416 | static {
417 | DEFAULT_INSTANCE = new com.codenotfound.grpc.helloworld.Response();
418 | }
419 |
420 | public static com.codenotfound.grpc.helloworld.Response getDefaultInstance() {
421 | return DEFAULT_INSTANCE;
422 | }
423 |
424 | private static final com.google.protobuf.Parser
425 | PARSER = new com.google.protobuf.AbstractParser() {
426 | public Response parsePartialFrom(
427 | com.google.protobuf.CodedInputStream input,
428 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
429 | throws com.google.protobuf.InvalidProtocolBufferException {
430 | return new Response(input, extensionRegistry);
431 | }
432 | };
433 |
434 | public static com.google.protobuf.Parser parser() {
435 | return PARSER;
436 | }
437 |
438 | @java.lang.Override
439 | public com.google.protobuf.Parser getParserForType() {
440 | return PARSER;
441 | }
442 |
443 | public com.codenotfound.grpc.helloworld.Response getDefaultInstanceForType() {
444 | return DEFAULT_INSTANCE;
445 | }
446 |
447 | }
448 |
449 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/generated-sources/protobuf/java/com/codenotfound/grpc/helloworld/ResponseOrBuilder.java:
--------------------------------------------------------------------------------
1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
2 | // source: HelloWorld.proto
3 |
4 | package com.codenotfound.grpc.helloworld;
5 |
6 | public interface ResponseOrBuilder extends
7 | // @@protoc_insertion_point(interface_extends:com.codenotfound.grpc.helloworld.Response)
8 | com.google.protobuf.MessageOrBuilder {
9 |
10 | /**
11 | * int64 result = 1;
12 | */
13 | long getResult();
14 | }
15 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/grpc-java-hello-world-0.0.1-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/grpc-java-hello-world-0.0.1-SNAPSHOT.jar
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/grpc-java-hello-world-0.0.1-SNAPSHOT.jar.original:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/grpc-java-hello-world-0.0.1-SNAPSHOT.jar.original
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/maven-archiver/pom.properties:
--------------------------------------------------------------------------------
1 | #Created by Apache Maven 3.3.9
2 | version=0.0.1-SNAPSHOT
3 | groupId=com.quinnox.example
4 | artifactId=grpc-java-hello-world
5 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | com\codenotfound\grpc\helloworld\AddNumberServiceGrpc$1.class
2 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | D:\MIKE\CYC\poc\grpc-java-master\grpc-java-master\grpc-java-hello-world\target\generated-sources\protobuf\java\com\codenotfound\grpc\helloworld\Request.java
2 | D:\MIKE\CYC\poc\grpc-java-master\grpc-java-master\grpc-java-hello-world\target\generated-sources\protobuf\java\com\codenotfound\grpc\helloworld\Response.java
3 | D:\MIKE\CYC\poc\grpc-java-master\grpc-java-master\grpc-java-hello-world\src\main\java\com\quinnox\example\grpc\client\AddNumberServiceClient.java
4 | D:\MIKE\CYC\poc\grpc-java-master\grpc-java-master\grpc-java-hello-world\src\main\java\com\quinnox\example\grpc\SpringGrpcApplication.java
5 | D:\MIKE\CYC\poc\grpc-java-master\grpc-java-master\grpc-java-hello-world\target\generated-sources\protobuf\java\com\codenotfound\grpc\helloworld\ResponseOrBuilder.java
6 | D:\MIKE\CYC\poc\grpc-java-master\grpc-java-master\grpc-java-hello-world\target\generated-sources\protobuf\java\com\codenotfound\grpc\helloworld\HelloWorld.java
7 | D:\MIKE\CYC\poc\grpc-java-master\grpc-java-master\grpc-java-hello-world\src\main\java\com\quinnox\example\grpc\client\AddNumberServiceImpl.java
8 | D:\MIKE\CYC\poc\grpc-java-master\grpc-java-master\grpc-java-hello-world\target\generated-sources\protobuf\java\com\codenotfound\grpc\helloworld\RequestOrBuilder.java
9 | D:\MIKE\CYC\poc\grpc-java-master\grpc-java-master\grpc-java-hello-world\target\generated-sources\protobuf\grpc-java\com\codenotfound\grpc\helloworld\AddNumberServiceGrpc.java
10 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | com\quinnox\example\grpc\SpringGrpcApplicationTests.class
2 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | D:\MIKE\CYC\poc\grpc-java-master\grpc-java-master\grpc-java-hello-world\src\test\java\com\quinnox\example\grpc\SpringGrpcApplicationTests.java
2 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/0568e8ce604e2570833a51415c74f8d2/grpc/binlog/v1alpha/binarylog.proto:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The gRPC Authors
2 | // All rights reserved.
3 | //
4 | // Licensed under the Apache License, Version 2.0 (the "License");
5 | // you may not use this file except in compliance with the License.
6 | // You may obtain a copy of the License at
7 | //
8 | // http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | // Unless required by applicable law or agreed to in writing, software
11 | // distributed under the License is distributed on an "AS IS" BASIS,
12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | // See the License for the specific language governing permissions and
14 | // limitations under the License.
15 | // Service exported by server reflection
16 |
17 | syntax = "proto3";
18 |
19 | package grpc.binarylog.v1alpha;
20 |
21 | import "google/protobuf/duration.proto";
22 |
23 | option java_multiple_files = true;
24 | option java_package = "io.grpc.binarylog.v1alpha";
25 | option java_outer_classname = "BinaryLogProto";
26 |
27 | // Log entry we store in binary logs
28 | message GrpcLogEntry {
29 | // Enumerates the type of logs
30 | enum Type {
31 | UNKNOWN_TYPE = 0;
32 | SEND_INITIAL_METADATA = 1;
33 | SEND_TRAILING_METADATA = 2;
34 | SEND_MESSAGE = 3;
35 | RECV_INITIAL_METADATA = 4;
36 | RECV_TRAILING_METADATA = 5;
37 | RECV_MESSAGE = 6;
38 | };
39 |
40 | // Enumerates the entity that generates the log entry
41 | enum Logger {
42 | UNKNOWN_LOGGER = 0;
43 | CLIENT = 1;
44 | SERVER = 2;
45 | }
46 |
47 | Type type = 1; // One of the above Type enum
48 | Logger logger = 2; // One of the above Logger enum
49 |
50 | // Uniquely identifies a call. Each call may have several log entries, they
51 | // will share the same call_id. 128 bits split into 2 64-bit parts.
52 | Uint128 call_id = 3;
53 |
54 | // The logger uses one of the following fields to record the payload,
55 | // according to the type of the log entry.
56 | oneof payload {
57 | // Used by {SEND,RECV}_INITIAL_METADATA and
58 | // {SEND,RECV}_TRAILING_METADATA. This contains only the metadata
59 | // from the application.
60 | Metadata metadata = 4;
61 | // Used by {SEND,RECV}_MESSAGE
62 | Message message = 5;
63 | }
64 |
65 | // Peer address information, will only be recorded in SEND_INITIAL_METADATA
66 | // and RECV_INITIAL_METADATA entries.
67 | Peer peer = 6;
68 |
69 | // true if payload does not represent the full message or metadata.
70 | bool truncated = 7;
71 |
72 | // The method name. Logged for the first entry:
73 | // RECV_INITIAL_METADATA for server side or
74 | // SEND_INITIAL_METADATA for client side.
75 | string method_name = 8;
76 |
77 | // status_code and status_message:
78 | // Only present for SEND_TRAILING_METADATA on server side or
79 | // RECV_TRAILING_METADATA on client side.
80 | uint32 status_code = 9;
81 |
82 | // An original status message before any transport specific
83 | // encoding.
84 | string status_message = 10;
85 |
86 | // The value of the 'grpc-status-details-bin' metadata key. If
87 | // present, this is always an encoded 'google.rpc.Status' message.
88 | bytes status_details = 11;
89 |
90 | // the RPC timeout
91 | google.protobuf.Duration timeout = 12;
92 |
93 | // The entry sequence id for this call. The first GrpcLogEntry has a
94 | // value of 1, to disambiguate from an unset value. The purpose of
95 | // this field is to detect missing entries in environments where
96 | // durability or ordering is not guaranteed.
97 | uint32 sequence_id_within_call = 13;
98 | };
99 |
100 | // Message payload, used by REQUEST and RESPONSE
101 | message Message {
102 | // This flag is currently used to indicate whether the payload is compressed,
103 | // it may contain other semantics in the future. Value of 1 indicates that the
104 | // binary octet sequence of Message is compressed using the mechanism declared
105 | // by the Message-Encoding header. A value of 0 indicates that no encoding of
106 | // Message bytes has occurred.
107 | uint32 flags = 1; // TODO(zpencer): this is changed because there is no uint8
108 | // Length of the message. It may not be the same as the length of the
109 | // data field, as the logging payload can be truncated or omitted.
110 | uint32 length = 2;
111 | // May be truncated or omitted.
112 | bytes data = 3;
113 | }
114 |
115 | // A list of metadata pairs, used in the payload of CLIENT_INIT_METADATA,
116 | // SERVER_INIT_METADATA and TRAILING_METADATA
117 | // Implementations may omit some entries to honor the header limits
118 | // of GRPC_BINARY_LOG_CONFIG.
119 | //
120 | // Implementations will not log the following entries, and this is
121 | // not to be treated as a truncation:
122 | // - entries handled by grpc that are not user visible, such as those
123 | // that begin with 'grpc-' or keys like 'lb-token'
124 | // - transport specific entries, including but not limited to:
125 | // ':path', ':authority', 'content-encoding', 'user-agent', 'te', etc
126 | // - entries added for call credentials
127 | message Metadata {
128 | repeated MetadataEntry entry = 1;
129 | }
130 |
131 | // A metadata key value pair
132 | message MetadataEntry {
133 | bytes key = 1;
134 | bytes value = 2;
135 | }
136 |
137 | // Peer information
138 | message Peer {
139 | enum PeerType {
140 | UNKNOWN_PEERTYPE = 0;
141 | // address is the address in 1.2.3.4 form
142 | PEER_IPV4 = 1;
143 | // address the address in canonical form (RFC5952 section 4)
144 | // The scope is NOT included in the peer string.
145 | PEER_IPV6 = 2;
146 | // address is UDS string
147 | PEER_UNIX = 3;
148 | };
149 | PeerType peer_type = 1;
150 | bytes peer = 2; // will be removed: do not use
151 | string address = 3;
152 | // only for PEER_IPV4 and PEER_IPV6
153 | uint32 ip_port = 4;
154 | }
155 |
156 | // Used to record call_id.
157 | message Uint128 {
158 | fixed64 high = 1;
159 | fixed64 low = 2;
160 | };
161 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/0568e8ce604e2570833a51415c74f8d2/grpc/channelz/v1/channelz.proto:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The gRPC Authors
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | // This file defines an interface for exporting monitoring information
16 | // out of gRPC servers. See the full design at
17 | // https://github.com/grpc/proposal/blob/master/A14-channelz.md
18 | //
19 | // The canonical version of this proto can be found at
20 | // https://github.com/grpc/grpc-proto/blob/master/grpc/channelz/v1/channelz.proto
21 |
22 | syntax = "proto3";
23 |
24 | package grpc.channelz.v1;
25 |
26 | import "google/protobuf/any.proto";
27 | import "google/protobuf/duration.proto";
28 | import "google/protobuf/timestamp.proto";
29 | import "google/protobuf/wrappers.proto";
30 |
31 | option go_package = "google.golang.org/grpc/channelz/grpc_channelz_v1";
32 | option java_multiple_files = true;
33 | option java_package = "io.grpc.channelz.v1";
34 | option java_outer_classname = "ChannelzProto";
35 |
36 | // Channel is a logical grouping of channels, subchannels, and sockets.
37 | message Channel {
38 | // The identifier for this channel. This should bet set.
39 | ChannelRef ref = 1;
40 | // Data specific to this channel.
41 | ChannelData data = 2;
42 | // At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
43 |
44 | // There are no ordering guarantees on the order of channel refs.
45 | // There may not be cycles in the ref graph.
46 | // A channel ref may be present in more than one channel or subchannel.
47 | repeated ChannelRef channel_ref = 3;
48 |
49 | // At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
50 | // There are no ordering guarantees on the order of subchannel refs.
51 | // There may not be cycles in the ref graph.
52 | // A sub channel ref may be present in more than one channel or subchannel.
53 | repeated SubchannelRef subchannel_ref = 4;
54 |
55 | // There are no ordering guarantees on the order of sockets.
56 | repeated SocketRef socket_ref = 5;
57 | }
58 |
59 | // Subchannel is a logical grouping of channels, subchannels, and sockets.
60 | // A subchannel is load balanced over by it's ancestor
61 | message Subchannel {
62 | // The identifier for this channel.
63 | SubchannelRef ref = 1;
64 | // Data specific to this channel.
65 | ChannelData data = 2;
66 | // At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
67 |
68 | // There are no ordering guarantees on the order of channel refs.
69 | // There may not be cycles in the ref graph.
70 | // A channel ref may be present in more than one channel or subchannel.
71 | repeated ChannelRef channel_ref = 3;
72 |
73 | // At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
74 | // There are no ordering guarantees on the order of subchannel refs.
75 | // There may not be cycles in the ref graph.
76 | // A sub channel ref may be present in more than one channel or subchannel.
77 | repeated SubchannelRef subchannel_ref = 4;
78 |
79 | // There are no ordering guarantees on the order of sockets.
80 | repeated SocketRef socket_ref = 5;
81 | }
82 |
83 | // These come from the specified states in this document:
84 | // https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md
85 | message ChannelConnectivityState {
86 | enum State {
87 | UNKNOWN = 0;
88 | IDLE = 1;
89 | CONNECTING = 2;
90 | READY = 3;
91 | TRANSIENT_FAILURE = 4;
92 | SHUTDOWN = 5;
93 | }
94 | State state = 1;
95 | }
96 |
97 | // Channel data is data related to a specific Channel or Subchannel.
98 | message ChannelData {
99 | // The connectivity state of the channel or subchannel. Implementations
100 | // should always set this.
101 | ChannelConnectivityState state = 1;
102 |
103 | // The target this channel originally tried to connect to. May be absent
104 | string target = 2;
105 |
106 | // A trace of recent events on the channel. May be absent.
107 | ChannelTrace trace = 3;
108 |
109 | // The number of calls started on the channel
110 | int64 calls_started = 4;
111 | // The number of calls that have completed with an OK status
112 | int64 calls_succeeded = 5;
113 | // The number of calls that have completed with a non-OK status
114 | int64 calls_failed = 6;
115 |
116 | // The last time a call was started on the channel.
117 | google.protobuf.Timestamp last_call_started_timestamp = 7;
118 | }
119 |
120 | // A trace event is an interesting thing that happened to a channel or
121 | // subchannel, such as creation, address resolution, subchannel creation, etc.
122 | message ChannelTraceEvent {
123 | // High level description of the event.
124 | string description = 1;
125 | // The supported severity levels of trace events.
126 | enum Severity {
127 | CT_UNKNOWN = 0;
128 | CT_INFO = 1;
129 | CT_WARNING = 2;
130 | CT_ERROR = 3;
131 | }
132 | // the severity of the trace event
133 | Severity severity = 2;
134 | // When this event occurred.
135 | google.protobuf.Timestamp timestamp = 3;
136 | // ref of referenced channel or subchannel.
137 | // Optional, only present if this event refers to a child object. For example,
138 | // this field would be filled if this trace event was for a subchannel being
139 | // created.
140 | oneof child_ref {
141 | ChannelRef channel_ref = 4;
142 | SubchannelRef subchannel_ref = 5;
143 | }
144 | }
145 |
146 | // ChannelTrace represents the recent events that have occurred on the channel.
147 | message ChannelTrace {
148 | // Number of events ever logged in this tracing object. This can differ from
149 | // events.size() because events can be overwritten or garbage collected by
150 | // implementations.
151 | int64 num_events_logged = 1;
152 | // Time that this channel was created.
153 | google.protobuf.Timestamp creation_timestamp = 2;
154 | // List of events that have occurred on this channel.
155 | repeated ChannelTraceEvent events = 3;
156 | }
157 |
158 | // ChannelRef is a reference to a Channel.
159 | message ChannelRef {
160 | // The globally unique id for this channel. Must be a positive number.
161 | int64 channel_id = 1;
162 | // An optional name associated with the channel.
163 | string name = 2;
164 | // Intentionally don't use field numbers from other refs.
165 | reserved 3, 4, 5, 6, 7, 8;
166 | }
167 |
168 | // ChannelRef is a reference to a Subchannel.
169 | message SubchannelRef {
170 | // The globally unique id for this subchannel. Must be a positive number.
171 | int64 subchannel_id = 7;
172 | // An optional name associated with the subchannel.
173 | string name = 8;
174 | // Intentionally don't use field numbers from other refs.
175 | reserved 1, 2, 3, 4, 5, 6;
176 | }
177 |
178 | // SocketRef is a reference to a Socket.
179 | message SocketRef {
180 | int64 socket_id = 3;
181 | // An optional name associated with the socket.
182 | string name = 4;
183 | // Intentionally don't use field numbers from other refs.
184 | reserved 1, 2, 5, 6, 7, 8;
185 | }
186 |
187 | // ServerRef is a reference to a Server.
188 | message ServerRef {
189 | // A globally unique identifier for this server. Must be a positive number.
190 | int64 server_id = 5;
191 | // An optional name associated with the server.
192 | string name = 6;
193 | // Intentionally don't use field numbers from other refs.
194 | reserved 1, 2, 3, 4, 7, 8;
195 | }
196 |
197 | // Server represents a single server. There may be multiple servers in a single
198 | // program.
199 | message Server {
200 | // The identifier for a Server. This should be set.
201 | ServerRef ref = 1;
202 | // The associated data of the Server.
203 | ServerData data = 2;
204 |
205 | // The sockets that the server is listening on. There are no ordering
206 | // guarantees. This may be absent.
207 | repeated SocketRef listen_socket = 3;
208 | }
209 |
210 | // ServerData is data for a specific Server.
211 | message ServerData {
212 | // A trace of recent events on the server. May be absent.
213 | ChannelTrace trace = 1;
214 |
215 | // The number of incoming calls started on the server
216 | int64 calls_started = 2;
217 | // The number of incoming calls that have completed with an OK status
218 | int64 calls_succeeded = 3;
219 | // The number of incoming calls that have a completed with a non-OK status
220 | int64 calls_failed = 4;
221 |
222 | // The last time a call was started on the server.
223 | google.protobuf.Timestamp last_call_started_timestamp = 5;
224 | }
225 |
226 | // Information about an actual connection. Pronounced "sock-ay".
227 | message Socket {
228 | // The identifier for the Socket.
229 | SocketRef ref = 1;
230 |
231 | // Data specific to this Socket.
232 | SocketData data = 2;
233 | // The locally bound address.
234 | Address local = 3;
235 | // The remote bound address. May be absent.
236 | Address remote = 4;
237 | // Security details for this socket. May be absent if not available, or
238 | // there is no security on the socket.
239 | Security security = 5;
240 |
241 | // Optional, represents the name of the remote endpoint, if different than
242 | // the original target name.
243 | string remote_name = 6;
244 | }
245 |
246 | // SocketData is data associated for a specific Socket. The fields present
247 | // are specific to the implementation, so there may be minor differences in
248 | // the semantics. (e.g. flow control windows)
249 | message SocketData {
250 | // The number of streams that have been started.
251 | int64 streams_started = 1;
252 | // The number of streams that have ended successfully:
253 | // On client side, received frame with eos bit set;
254 | // On server side, sent frame with eos bit set.
255 | int64 streams_succeeded = 2;
256 | // The number of streams that have ended unsuccessfully:
257 | // On client side, ended without receiving frame with eos bit set;
258 | // On server side, ended without sending frame with eos bit set.
259 | int64 streams_failed = 3;
260 | // The number of grpc messages successfully sent on this socket.
261 | int64 messages_sent = 4;
262 | // The number of grpc messages received on this socket.
263 | int64 messages_received = 5;
264 |
265 | // The number of keep alives sent. This is typically implemented with HTTP/2
266 | // ping messages.
267 | int64 keep_alives_sent = 6;
268 |
269 | // The last time a stream was created by this endpoint. Usually unset for
270 | // servers.
271 | google.protobuf.Timestamp last_local_stream_created_timestamp = 7;
272 | // The last time a stream was created by the remote endpoint. Usually unset
273 | // for clients.
274 | google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;
275 |
276 | // The last time a message was sent by this endpoint.
277 | google.protobuf.Timestamp last_message_sent_timestamp = 9;
278 | // The last time a message was received by this endpoint.
279 | google.protobuf.Timestamp last_message_received_timestamp = 10;
280 |
281 | // The amount of window, granted to the local endpoint by the remote endpoint.
282 | // This may be slightly out of date due to network latency. This does NOT
283 | // include stream level or TCP level flow control info.
284 | google.protobuf.Int64Value local_flow_control_window = 11;
285 |
286 | // The amount of window, granted to the remote endpoint by the local endpoint.
287 | // This may be slightly out of date due to network latency. This does NOT
288 | // include stream level or TCP level flow control info.
289 | google.protobuf.Int64Value remote_flow_control_window = 12;
290 |
291 | // Socket options set on this socket. May be absent.
292 | repeated SocketOption option = 13;
293 | }
294 |
295 | // Address represents the address used to create the socket.
296 | message Address {
297 | message TcpIpAddress {
298 | // Either the IPv4 or IPv6 address in bytes. Will be either 4 bytes or 16
299 | // bytes in length.
300 | bytes ip_address = 1;
301 | // 0-64k, or -1 if not appropriate.
302 | int32 port = 2;
303 | }
304 | // A Unix Domain Socket address.
305 | message UdsAddress {
306 | string filename = 1;
307 | }
308 | // An address type not included above.
309 | message OtherAddress {
310 | // The human readable version of the value. This value should be set.
311 | string name = 1;
312 | // The actual address message.
313 | google.protobuf.Any value = 2;
314 | }
315 |
316 | oneof address {
317 | TcpIpAddress tcpip_address = 1;
318 | UdsAddress uds_address = 2;
319 | OtherAddress other_address = 3;
320 | }
321 | }
322 |
323 | // Security represents details about how secure the socket is.
324 | message Security {
325 | message Tls {
326 | oneof cipher_suite {
327 | // The cipher suite name in the RFC 4346 format:
328 | // https://tools.ietf.org/html/rfc4346#appendix-C
329 | string standard_name = 1;
330 | // Some other way to describe the cipher suite if
331 | // the RFC 4346 name is not available.
332 | string other_name = 2;
333 | }
334 | // the certificate used by this endpoint.
335 | bytes local_certificate = 3;
336 | // the certificate used by the remote endpoint.
337 | bytes remote_certificate = 4;
338 | }
339 | message OtherSecurity {
340 | // The human readable version of the value.
341 | string name = 1;
342 | // The actual security details message.
343 | google.protobuf.Any value = 2;
344 | }
345 | oneof model {
346 | Tls tls = 1;
347 | OtherSecurity other = 2;
348 | }
349 | }
350 |
351 | // SocketOption represents socket options for a socket. Specifically, these
352 | // are the options returned by getsockopt().
353 | message SocketOption {
354 | // The full name of the socket option. Typically this will be the upper case
355 | // name, such as "SO_REUSEPORT".
356 | string name = 1;
357 | // The human readable value of this socket option. At least one of value or
358 | // additional will be set.
359 | string value = 2;
360 | // Additional data associated with the socket option. At least one of value
361 | // or additional will be set.
362 | google.protobuf.Any additional = 3;
363 | }
364 |
365 | // For use with SocketOption's additional field. This is primarily used for
366 | // SO_RCVTIMEO and SO_SNDTIMEO
367 | message SocketOptionTimeout {
368 | google.protobuf.Duration duration = 1;
369 | }
370 |
371 | // For use with SocketOption's additional field. This is primarily used for
372 | // SO_LINGER.
373 | message SocketOptionLinger {
374 | // active maps to `struct linger.l_onoff`
375 | bool active = 1;
376 | // duration maps to `struct linger.l_linger`
377 | google.protobuf.Duration duration = 2;
378 | }
379 |
380 | // For use with SocketOption's additional field. Tcp info for
381 | // SOL_TCP and TCP_INFO.
382 | message SocketOptionTcpInfo {
383 | uint32 tcpi_state = 1;
384 |
385 | uint32 tcpi_ca_state = 2;
386 | uint32 tcpi_retransmits = 3;
387 | uint32 tcpi_probes = 4;
388 | uint32 tcpi_backoff = 5;
389 | uint32 tcpi_options = 6;
390 | uint32 tcpi_snd_wscale = 7;
391 | uint32 tcpi_rcv_wscale = 8;
392 |
393 | uint32 tcpi_rto = 9;
394 | uint32 tcpi_ato = 10;
395 | uint32 tcpi_snd_mss = 11;
396 | uint32 tcpi_rcv_mss = 12;
397 |
398 | uint32 tcpi_unacked = 13;
399 | uint32 tcpi_sacked = 14;
400 | uint32 tcpi_lost = 15;
401 | uint32 tcpi_retrans = 16;
402 | uint32 tcpi_fackets = 17;
403 |
404 | uint32 tcpi_last_data_sent = 18;
405 | uint32 tcpi_last_ack_sent = 19;
406 | uint32 tcpi_last_data_recv = 20;
407 | uint32 tcpi_last_ack_recv = 21;
408 |
409 | uint32 tcpi_pmtu = 22;
410 | uint32 tcpi_rcv_ssthresh = 23;
411 | uint32 tcpi_rtt = 24;
412 | uint32 tcpi_rttvar = 25;
413 | uint32 tcpi_snd_ssthresh = 26;
414 | uint32 tcpi_snd_cwnd = 27;
415 | uint32 tcpi_advmss = 28;
416 | uint32 tcpi_reordering = 29;
417 | }
418 |
419 | // Channelz is a service exposed by gRPC servers that provides detailed debug
420 | // information.
421 | service Channelz {
422 | // Gets all root channels (i.e. channels the application has directly
423 | // created). This does not include subchannels nor non-top level channels.
424 | rpc GetTopChannels(GetTopChannelsRequest) returns (GetTopChannelsResponse);
425 | // Gets all servers that exist in the process.
426 | rpc GetServers(GetServersRequest) returns (GetServersResponse);
427 | // Gets all server sockets that exist in the process.
428 | rpc GetServerSockets(GetServerSocketsRequest) returns (GetServerSocketsResponse);
429 | // Returns a single Channel, or else a NOT_FOUND code.
430 | rpc GetChannel(GetChannelRequest) returns (GetChannelResponse);
431 | // Returns a single Subchannel, or else a NOT_FOUND code.
432 | rpc GetSubchannel(GetSubchannelRequest) returns (GetSubchannelResponse);
433 | // Returns a single Socket or else a NOT_FOUND code.
434 | rpc GetSocket(GetSocketRequest) returns (GetSocketResponse);
435 | }
436 |
437 | message GetTopChannelsRequest {
438 | // start_channel_id indicates that only channels at or above this id should be
439 | // included in the results.
440 | int64 start_channel_id = 1;
441 | }
442 |
443 | message GetTopChannelsResponse {
444 | // list of channels that the connection detail service knows about. Sorted in
445 | // ascending channel_id order.
446 | repeated Channel channel = 1;
447 | // If set, indicates that the list of channels is the final list. Requesting
448 | // more channels can only return more if they are created after this RPC
449 | // completes.
450 | bool end = 2;
451 | }
452 |
453 | message GetServersRequest {
454 | // start_server_id indicates that only servers at or above this id should be
455 | // included in the results.
456 | int64 start_server_id = 1;
457 | }
458 |
459 | message GetServersResponse {
460 | // list of servers that the connection detail service knows about. Sorted in
461 | // ascending server_id order.
462 | repeated Server server = 1;
463 | // If set, indicates that the list of servers is the final list. Requesting
464 | // more servers will only return more if they are created after this RPC
465 | // completes.
466 | bool end = 2;
467 | }
468 |
469 | message GetServerSocketsRequest {
470 | int64 server_id = 1;
471 | // start_socket_id indicates that only sockets at or above this id should be
472 | // included in the results.
473 | int64 start_socket_id = 2;
474 | }
475 |
476 | message GetServerSocketsResponse {
477 | // list of socket refs that the connection detail service knows about. Sorted in
478 | // ascending socket_id order.
479 | repeated SocketRef socket_ref = 1;
480 | // If set, indicates that the list of sockets is the final list. Requesting
481 | // more sockets will only return more if they are created after this RPC
482 | // completes.
483 | bool end = 2;
484 | }
485 |
486 | message GetChannelRequest {
487 | // channel_id is the the identifier of the specific channel to get.
488 | int64 channel_id = 1;
489 | }
490 |
491 | message GetChannelResponse {
492 | // The Channel that corresponds to the requested channel_id. This field
493 | // should be set.
494 | Channel channel = 1;
495 | }
496 |
497 | message GetSubchannelRequest {
498 | // subchannel_id is the the identifier of the specific subchannel to get.
499 | int64 subchannel_id = 1;
500 | }
501 |
502 | message GetSubchannelResponse {
503 | // The Subchannel that corresponds to the requested subchannel_id. This
504 | // field should be set.
505 | Subchannel subchannel = 1;
506 | }
507 |
508 | message GetSocketRequest {
509 | // socket_id is the the identifier of the specific socket to get.
510 | int64 socket_id = 1;
511 | }
512 |
513 | message GetSocketResponse {
514 | // The Socket that corresponds to the requested socket_id. This field
515 | // should be set.
516 | Socket socket = 1;
517 | }
518 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/0568e8ce604e2570833a51415c74f8d2/grpc/health/v1/health.proto:
--------------------------------------------------------------------------------
1 | // Copyright 2015 The gRPC Authors
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | syntax = "proto3";
16 |
17 | package grpc.health.v1;
18 |
19 | option csharp_namespace = "Grpc.Health.V1";
20 | option java_multiple_files = true;
21 | option java_outer_classname = "HealthProto";
22 | option java_package = "io.grpc.health.v1";
23 |
24 | message HealthCheckRequest {
25 | string service = 1;
26 | }
27 |
28 | message HealthCheckResponse {
29 | enum ServingStatus {
30 | UNKNOWN = 0;
31 | SERVING = 1;
32 | NOT_SERVING = 2;
33 | }
34 | ServingStatus status = 1;
35 | }
36 |
37 | service Health {
38 | rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
39 | }
40 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/0568e8ce604e2570833a51415c74f8d2/io/grpc/reflection/v1alpha/reflection.proto:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The gRPC Authors
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | // Service exported by server reflection
15 |
16 | syntax = "proto3";
17 |
18 | package grpc.reflection.v1alpha;
19 |
20 | option java_multiple_files = true;
21 | option java_package = "io.grpc.reflection.v1alpha";
22 | option java_outer_classname = "ServerReflectionProto";
23 |
24 | service ServerReflection {
25 | // The reflection service is structured as a bidirectional stream, ensuring
26 | // all related requests go to a single server.
27 | rpc ServerReflectionInfo(stream ServerReflectionRequest)
28 | returns (stream ServerReflectionResponse);
29 | }
30 |
31 | // The message sent by the client when calling ServerReflectionInfo method.
32 | message ServerReflectionRequest {
33 | string host = 1;
34 | // To use reflection service, the client should set one of the following
35 | // fields in message_request. The server distinguishes requests by their
36 | // defined field and then handles them using corresponding methods.
37 | oneof message_request {
38 | // Find a proto file by the file name.
39 | string file_by_filename = 3;
40 |
41 | // Find the proto file that declares the given fully-qualified symbol name.
42 | // This field should be a fully-qualified symbol name
43 | // (e.g. .[.] or .).
44 | string file_containing_symbol = 4;
45 |
46 | // Find the proto file which defines an extension extending the given
47 | // message type with the given field number.
48 | ExtensionRequest file_containing_extension = 5;
49 |
50 | // Finds the tag numbers used by all known extensions of extendee_type, and
51 | // appends them to ExtensionNumberResponse in an undefined order.
52 | // Its corresponding method is best-effort: it's not guaranteed that the
53 | // reflection service will implement this method, and it's not guaranteed
54 | // that this method will provide all extensions. Returns
55 | // StatusCode::UNIMPLEMENTED if it's not implemented.
56 | // This field should be a fully-qualified type name. The format is
57 | // .
58 | string all_extension_numbers_of_type = 6;
59 |
60 | // List the full names of registered services. The content will not be
61 | // checked.
62 | string list_services = 7;
63 | }
64 | }
65 |
66 | // The type name and extension number sent by the client when requesting
67 | // file_containing_extension.
68 | message ExtensionRequest {
69 | // Fully-qualified type name. The format should be .
70 | string containing_type = 1;
71 | int32 extension_number = 2;
72 | }
73 |
74 | // The message sent by the server to answer ServerReflectionInfo method.
75 | message ServerReflectionResponse {
76 | string valid_host = 1;
77 | ServerReflectionRequest original_request = 2;
78 | // The server set one of the following fields accroding to the message_request
79 | // in the request.
80 | oneof message_response {
81 | // This message is used to answer file_by_filename, file_containing_symbol,
82 | // file_containing_extension requests with transitive dependencies. As
83 | // the repeated label is not allowed in oneof fields, we use a
84 | // FileDescriptorResponse message to encapsulate the repeated fields.
85 | // The reflection service is allowed to avoid sending FileDescriptorProtos
86 | // that were previously sent in response to earlier requests in the stream.
87 | FileDescriptorResponse file_descriptor_response = 4;
88 |
89 | // This message is used to answer all_extension_numbers_of_type requst.
90 | ExtensionNumberResponse all_extension_numbers_response = 5;
91 |
92 | // This message is used to answer list_services request.
93 | ListServiceResponse list_services_response = 6;
94 |
95 | // This message is used when an error occurs.
96 | ErrorResponse error_response = 7;
97 | }
98 | }
99 |
100 | // Serialized FileDescriptorProto messages sent by the server answering
101 | // a file_by_filename, file_containing_symbol, or file_containing_extension
102 | // request.
103 | message FileDescriptorResponse {
104 | // Serialized FileDescriptorProto messages. We avoid taking a dependency on
105 | // descriptor.proto, which uses proto2 only features, by making them opaque
106 | // bytes instead.
107 | repeated bytes file_descriptor_proto = 1;
108 | }
109 |
110 | // A list of extension numbers sent by the server answering
111 | // all_extension_numbers_of_type request.
112 | message ExtensionNumberResponse {
113 | // Full name of the base type, including the package name. The format
114 | // is .
115 | string base_type_name = 1;
116 | repeated int32 extension_number = 2;
117 | }
118 |
119 | // A list of ServiceResponse sent by the server answering list_services request.
120 | message ListServiceResponse {
121 | // The information of each service may be expanded in the future, so we use
122 | // ServiceResponse message to encapsulate it.
123 | repeated ServiceResponse service = 1;
124 | }
125 |
126 | // The information of a single service used by ListServiceResponse to answer
127 | // list_services request.
128 | message ServiceResponse {
129 | // Full name of a registered service, including its package name. The format
130 | // is .
131 | string name = 1;
132 | }
133 |
134 | // The error code and error message sent by the server when an error occurs.
135 | message ErrorResponse {
136 | // This field uses the error codes defined in grpc::StatusCode.
137 | int32 error_code = 1;
138 | string error_message = 2;
139 | }
140 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/c9c1668fb38ab1a3ec80c5df1c79d237/google/protobuf/any.proto:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | syntax = "proto3";
32 |
33 | package google.protobuf;
34 |
35 | option csharp_namespace = "Google.Protobuf.WellKnownTypes";
36 | option go_package = "github.com/golang/protobuf/ptypes/any";
37 | option java_package = "com.google.protobuf";
38 | option java_outer_classname = "AnyProto";
39 | option java_multiple_files = true;
40 | option objc_class_prefix = "GPB";
41 |
42 | // `Any` contains an arbitrary serialized protocol buffer message along with a
43 | // URL that describes the type of the serialized message.
44 | //
45 | // Protobuf library provides support to pack/unpack Any values in the form
46 | // of utility functions or additional generated methods of the Any type.
47 | //
48 | // Example 1: Pack and unpack a message in C++.
49 | //
50 | // Foo foo = ...;
51 | // Any any;
52 | // any.PackFrom(foo);
53 | // ...
54 | // if (any.UnpackTo(&foo)) {
55 | // ...
56 | // }
57 | //
58 | // Example 2: Pack and unpack a message in Java.
59 | //
60 | // Foo foo = ...;
61 | // Any any = Any.pack(foo);
62 | // ...
63 | // if (any.is(Foo.class)) {
64 | // foo = any.unpack(Foo.class);
65 | // }
66 | //
67 | // Example 3: Pack and unpack a message in Python.
68 | //
69 | // foo = Foo(...)
70 | // any = Any()
71 | // any.Pack(foo)
72 | // ...
73 | // if any.Is(Foo.DESCRIPTOR):
74 | // any.Unpack(foo)
75 | // ...
76 | //
77 | // Example 4: Pack and unpack a message in Go
78 | //
79 | // foo := &pb.Foo{...}
80 | // any, err := ptypes.MarshalAny(foo)
81 | // ...
82 | // foo := &pb.Foo{}
83 | // if err := ptypes.UnmarshalAny(any, foo); err != nil {
84 | // ...
85 | // }
86 | //
87 | // The pack methods provided by protobuf library will by default use
88 | // 'type.googleapis.com/full.type.name' as the type URL and the unpack
89 | // methods only use the fully qualified type name after the last '/'
90 | // in the type URL, for example "foo.bar.com/x/y.z" will yield type
91 | // name "y.z".
92 | //
93 | //
94 | // JSON
95 | // ====
96 | // The JSON representation of an `Any` value uses the regular
97 | // representation of the deserialized, embedded message, with an
98 | // additional field `@type` which contains the type URL. Example:
99 | //
100 | // package google.profile;
101 | // message Person {
102 | // string first_name = 1;
103 | // string last_name = 2;
104 | // }
105 | //
106 | // {
107 | // "@type": "type.googleapis.com/google.profile.Person",
108 | // "firstName": ,
109 | // "lastName":
110 | // }
111 | //
112 | // If the embedded message type is well-known and has a custom JSON
113 | // representation, that representation will be embedded adding a field
114 | // `value` which holds the custom JSON in addition to the `@type`
115 | // field. Example (for message [google.protobuf.Duration][]):
116 | //
117 | // {
118 | // "@type": "type.googleapis.com/google.protobuf.Duration",
119 | // "value": "1.212s"
120 | // }
121 | //
122 | message Any {
123 | // A URL/resource name whose content describes the type of the
124 | // serialized protocol buffer message.
125 | //
126 | // For URLs which use the scheme `http`, `https`, or no scheme, the
127 | // following restrictions and interpretations apply:
128 | //
129 | // * If no scheme is provided, `https` is assumed.
130 | // * The last segment of the URL's path must represent the fully
131 | // qualified name of the type (as in `path/google.protobuf.Duration`).
132 | // The name should be in a canonical form (e.g., leading "." is
133 | // not accepted).
134 | // * An HTTP GET on the URL must yield a [google.protobuf.Type][]
135 | // value in binary format, or produce an error.
136 | // * Applications are allowed to cache lookup results based on the
137 | // URL, or have them precompiled into a binary to avoid any
138 | // lookup. Therefore, binary compatibility needs to be preserved
139 | // on changes to types. (Use versioned type names to manage
140 | // breaking changes.)
141 | //
142 | // Schemes other than `http`, `https` (or the empty scheme) might be
143 | // used with implementation specific semantics.
144 | //
145 | string type_url = 1;
146 |
147 | // Must be a valid serialized protocol buffer of the above specified type.
148 | bytes value = 2;
149 | }
150 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/c9c1668fb38ab1a3ec80c5df1c79d237/google/protobuf/api.proto:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | syntax = "proto3";
32 |
33 | package google.protobuf;
34 |
35 | import "google/protobuf/source_context.proto";
36 | import "google/protobuf/type.proto";
37 |
38 | option csharp_namespace = "Google.Protobuf.WellKnownTypes";
39 | option java_package = "com.google.protobuf";
40 | option java_outer_classname = "ApiProto";
41 | option java_multiple_files = true;
42 | option objc_class_prefix = "GPB";
43 | option go_package = "google.golang.org/genproto/protobuf/api;api";
44 |
45 | // Api is a light-weight descriptor for an API Interface.
46 | //
47 | // Interfaces are also described as "protocol buffer services" in some contexts,
48 | // such as by the "service" keyword in a .proto file, but they are different
49 | // from API Services, which represent a concrete implementation of an interface
50 | // as opposed to simply a description of methods and bindings. They are also
51 | // sometimes simply referred to as "APIs" in other contexts, such as the name of
52 | // this message itself. See https://cloud.google.com/apis/design/glossary for
53 | // detailed terminology.
54 | message Api {
55 |
56 | // The fully qualified name of this interface, including package name
57 | // followed by the interface's simple name.
58 | string name = 1;
59 |
60 | // The methods of this interface, in unspecified order.
61 | repeated Method methods = 2;
62 |
63 | // Any metadata attached to the interface.
64 | repeated Option options = 3;
65 |
66 | // A version string for this interface. If specified, must have the form
67 | // `major-version.minor-version`, as in `1.10`. If the minor version is
68 | // omitted, it defaults to zero. If the entire version field is empty, the
69 | // major version is derived from the package name, as outlined below. If the
70 | // field is not empty, the version in the package name will be verified to be
71 | // consistent with what is provided here.
72 | //
73 | // The versioning schema uses [semantic
74 | // versioning](http://semver.org) where the major version number
75 | // indicates a breaking change and the minor version an additive,
76 | // non-breaking change. Both version numbers are signals to users
77 | // what to expect from different versions, and should be carefully
78 | // chosen based on the product plan.
79 | //
80 | // The major version is also reflected in the package name of the
81 | // interface, which must end in `v`, as in
82 | // `google.feature.v1`. For major versions 0 and 1, the suffix can
83 | // be omitted. Zero major versions must only be used for
84 | // experimental, non-GA interfaces.
85 | //
86 | //
87 | string version = 4;
88 |
89 | // Source context for the protocol buffer service represented by this
90 | // message.
91 | SourceContext source_context = 5;
92 |
93 | // Included interfaces. See [Mixin][].
94 | repeated Mixin mixins = 6;
95 |
96 | // The source syntax of the service.
97 | Syntax syntax = 7;
98 | }
99 |
100 | // Method represents a method of an API interface.
101 | message Method {
102 |
103 | // The simple name of this method.
104 | string name = 1;
105 |
106 | // A URL of the input message type.
107 | string request_type_url = 2;
108 |
109 | // If true, the request is streamed.
110 | bool request_streaming = 3;
111 |
112 | // The URL of the output message type.
113 | string response_type_url = 4;
114 |
115 | // If true, the response is streamed.
116 | bool response_streaming = 5;
117 |
118 | // Any metadata attached to the method.
119 | repeated Option options = 6;
120 |
121 | // The source syntax of this method.
122 | Syntax syntax = 7;
123 | }
124 |
125 | // Declares an API Interface to be included in this interface. The including
126 | // interface must redeclare all the methods from the included interface, but
127 | // documentation and options are inherited as follows:
128 | //
129 | // - If after comment and whitespace stripping, the documentation
130 | // string of the redeclared method is empty, it will be inherited
131 | // from the original method.
132 | //
133 | // - Each annotation belonging to the service config (http,
134 | // visibility) which is not set in the redeclared method will be
135 | // inherited.
136 | //
137 | // - If an http annotation is inherited, the path pattern will be
138 | // modified as follows. Any version prefix will be replaced by the
139 | // version of the including interface plus the [root][] path if
140 | // specified.
141 | //
142 | // Example of a simple mixin:
143 | //
144 | // package google.acl.v1;
145 | // service AccessControl {
146 | // // Get the underlying ACL object.
147 | // rpc GetAcl(GetAclRequest) returns (Acl) {
148 | // option (google.api.http).get = "/v1/{resource=**}:getAcl";
149 | // }
150 | // }
151 | //
152 | // package google.storage.v2;
153 | // service Storage {
154 | // rpc GetAcl(GetAclRequest) returns (Acl);
155 | //
156 | // // Get a data record.
157 | // rpc GetData(GetDataRequest) returns (Data) {
158 | // option (google.api.http).get = "/v2/{resource=**}";
159 | // }
160 | // }
161 | //
162 | // Example of a mixin configuration:
163 | //
164 | // apis:
165 | // - name: google.storage.v2.Storage
166 | // mixins:
167 | // - name: google.acl.v1.AccessControl
168 | //
169 | // The mixin construct implies that all methods in `AccessControl` are
170 | // also declared with same name and request/response types in
171 | // `Storage`. A documentation generator or annotation processor will
172 | // see the effective `Storage.GetAcl` method after inherting
173 | // documentation and annotations as follows:
174 | //
175 | // service Storage {
176 | // // Get the underlying ACL object.
177 | // rpc GetAcl(GetAclRequest) returns (Acl) {
178 | // option (google.api.http).get = "/v2/{resource=**}:getAcl";
179 | // }
180 | // ...
181 | // }
182 | //
183 | // Note how the version in the path pattern changed from `v1` to `v2`.
184 | //
185 | // If the `root` field in the mixin is specified, it should be a
186 | // relative path under which inherited HTTP paths are placed. Example:
187 | //
188 | // apis:
189 | // - name: google.storage.v2.Storage
190 | // mixins:
191 | // - name: google.acl.v1.AccessControl
192 | // root: acls
193 | //
194 | // This implies the following inherited HTTP annotation:
195 | //
196 | // service Storage {
197 | // // Get the underlying ACL object.
198 | // rpc GetAcl(GetAclRequest) returns (Acl) {
199 | // option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
200 | // }
201 | // ...
202 | // }
203 | message Mixin {
204 | // The fully qualified name of the interface which is included.
205 | string name = 1;
206 |
207 | // If non-empty specifies a path under which inherited HTTP paths
208 | // are rooted.
209 | string root = 2;
210 | }
211 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/c9c1668fb38ab1a3ec80c5df1c79d237/google/protobuf/compiler/plugin.proto:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | // Author: kenton@google.com (Kenton Varda)
32 | //
33 | // WARNING: The plugin interface is currently EXPERIMENTAL and is subject to
34 | // change.
35 | //
36 | // protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
37 | // just a program that reads a CodeGeneratorRequest from stdin and writes a
38 | // CodeGeneratorResponse to stdout.
39 | //
40 | // Plugins written using C++ can use google/protobuf/compiler/plugin.h instead
41 | // of dealing with the raw protocol defined here.
42 | //
43 | // A plugin executable needs only to be placed somewhere in the path. The
44 | // plugin should be named "protoc-gen-$NAME", and will then be used when the
45 | // flag "--${NAME}_out" is passed to protoc.
46 |
47 | syntax = "proto2";
48 | package google.protobuf.compiler;
49 | option java_package = "com.google.protobuf.compiler";
50 | option java_outer_classname = "PluginProtos";
51 |
52 | option go_package = "github.com/golang/protobuf/protoc-gen-go/plugin;plugin_go";
53 |
54 | import "google/protobuf/descriptor.proto";
55 |
56 | // The version number of protocol compiler.
57 | message Version {
58 | optional int32 major = 1;
59 | optional int32 minor = 2;
60 | optional int32 patch = 3;
61 | // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
62 | // be empty for mainline stable releases.
63 | optional string suffix = 4;
64 | }
65 |
66 | // An encoded CodeGeneratorRequest is written to the plugin's stdin.
67 | message CodeGeneratorRequest {
68 | // The .proto files that were explicitly listed on the command-line. The
69 | // code generator should generate code only for these files. Each file's
70 | // descriptor will be included in proto_file, below.
71 | repeated string file_to_generate = 1;
72 |
73 | // The generator parameter passed on the command-line.
74 | optional string parameter = 2;
75 |
76 | // FileDescriptorProtos for all files in files_to_generate and everything
77 | // they import. The files will appear in topological order, so each file
78 | // appears before any file that imports it.
79 | //
80 | // protoc guarantees that all proto_files will be written after
81 | // the fields above, even though this is not technically guaranteed by the
82 | // protobuf wire format. This theoretically could allow a plugin to stream
83 | // in the FileDescriptorProtos and handle them one by one rather than read
84 | // the entire set into memory at once. However, as of this writing, this
85 | // is not similarly optimized on protoc's end -- it will store all fields in
86 | // memory at once before sending them to the plugin.
87 | //
88 | // Type names of fields and extensions in the FileDescriptorProto are always
89 | // fully qualified.
90 | repeated FileDescriptorProto proto_file = 15;
91 |
92 | // The version number of protocol compiler.
93 | optional Version compiler_version = 3;
94 |
95 | }
96 |
97 | // The plugin writes an encoded CodeGeneratorResponse to stdout.
98 | message CodeGeneratorResponse {
99 | // Error message. If non-empty, code generation failed. The plugin process
100 | // should exit with status code zero even if it reports an error in this way.
101 | //
102 | // This should be used to indicate errors in .proto files which prevent the
103 | // code generator from generating correct code. Errors which indicate a
104 | // problem in protoc itself -- such as the input CodeGeneratorRequest being
105 | // unparseable -- should be reported by writing a message to stderr and
106 | // exiting with a non-zero status code.
107 | optional string error = 1;
108 |
109 | // Represents a single generated file.
110 | message File {
111 | // The file name, relative to the output directory. The name must not
112 | // contain "." or ".." components and must be relative, not be absolute (so,
113 | // the file cannot lie outside the output directory). "/" must be used as
114 | // the path separator, not "\".
115 | //
116 | // If the name is omitted, the content will be appended to the previous
117 | // file. This allows the generator to break large files into small chunks,
118 | // and allows the generated text to be streamed back to protoc so that large
119 | // files need not reside completely in memory at one time. Note that as of
120 | // this writing protoc does not optimize for this -- it will read the entire
121 | // CodeGeneratorResponse before writing files to disk.
122 | optional string name = 1;
123 |
124 | // If non-empty, indicates that the named file should already exist, and the
125 | // content here is to be inserted into that file at a defined insertion
126 | // point. This feature allows a code generator to extend the output
127 | // produced by another code generator. The original generator may provide
128 | // insertion points by placing special annotations in the file that look
129 | // like:
130 | // @@protoc_insertion_point(NAME)
131 | // The annotation can have arbitrary text before and after it on the line,
132 | // which allows it to be placed in a comment. NAME should be replaced with
133 | // an identifier naming the point -- this is what other generators will use
134 | // as the insertion_point. Code inserted at this point will be placed
135 | // immediately above the line containing the insertion point (thus multiple
136 | // insertions to the same point will come out in the order they were added).
137 | // The double-@ is intended to make it unlikely that the generated code
138 | // could contain things that look like insertion points by accident.
139 | //
140 | // For example, the C++ code generator places the following line in the
141 | // .pb.h files that it generates:
142 | // // @@protoc_insertion_point(namespace_scope)
143 | // This line appears within the scope of the file's package namespace, but
144 | // outside of any particular class. Another plugin can then specify the
145 | // insertion_point "namespace_scope" to generate additional classes or
146 | // other declarations that should be placed in this scope.
147 | //
148 | // Note that if the line containing the insertion point begins with
149 | // whitespace, the same whitespace will be added to every line of the
150 | // inserted text. This is useful for languages like Python, where
151 | // indentation matters. In these languages, the insertion point comment
152 | // should be indented the same amount as any inserted code will need to be
153 | // in order to work correctly in that context.
154 | //
155 | // The code generator that generates the initial file and the one which
156 | // inserts into it must both run as part of a single invocation of protoc.
157 | // Code generators are executed in the order in which they appear on the
158 | // command line.
159 | //
160 | // If |insertion_point| is present, |name| must also be present.
161 | optional string insertion_point = 2;
162 |
163 | // The file contents.
164 | optional string content = 15;
165 | }
166 | repeated File file = 15;
167 | }
168 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/c9c1668fb38ab1a3ec80c5df1c79d237/google/protobuf/duration.proto:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | syntax = "proto3";
32 |
33 | package google.protobuf;
34 |
35 | option csharp_namespace = "Google.Protobuf.WellKnownTypes";
36 | option cc_enable_arenas = true;
37 | option go_package = "github.com/golang/protobuf/ptypes/duration";
38 | option java_package = "com.google.protobuf";
39 | option java_outer_classname = "DurationProto";
40 | option java_multiple_files = true;
41 | option objc_class_prefix = "GPB";
42 |
43 | // A Duration represents a signed, fixed-length span of time represented
44 | // as a count of seconds and fractions of seconds at nanosecond
45 | // resolution. It is independent of any calendar and concepts like "day"
46 | // or "month". It is related to Timestamp in that the difference between
47 | // two Timestamp values is a Duration and it can be added or subtracted
48 | // from a Timestamp. Range is approximately +-10,000 years.
49 | //
50 | // # Examples
51 | //
52 | // Example 1: Compute Duration from two Timestamps in pseudo code.
53 | //
54 | // Timestamp start = ...;
55 | // Timestamp end = ...;
56 | // Duration duration = ...;
57 | //
58 | // duration.seconds = end.seconds - start.seconds;
59 | // duration.nanos = end.nanos - start.nanos;
60 | //
61 | // if (duration.seconds < 0 && duration.nanos > 0) {
62 | // duration.seconds += 1;
63 | // duration.nanos -= 1000000000;
64 | // } else if (durations.seconds > 0 && duration.nanos < 0) {
65 | // duration.seconds -= 1;
66 | // duration.nanos += 1000000000;
67 | // }
68 | //
69 | // Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
70 | //
71 | // Timestamp start = ...;
72 | // Duration duration = ...;
73 | // Timestamp end = ...;
74 | //
75 | // end.seconds = start.seconds + duration.seconds;
76 | // end.nanos = start.nanos + duration.nanos;
77 | //
78 | // if (end.nanos < 0) {
79 | // end.seconds -= 1;
80 | // end.nanos += 1000000000;
81 | // } else if (end.nanos >= 1000000000) {
82 | // end.seconds += 1;
83 | // end.nanos -= 1000000000;
84 | // }
85 | //
86 | // Example 3: Compute Duration from datetime.timedelta in Python.
87 | //
88 | // td = datetime.timedelta(days=3, minutes=10)
89 | // duration = Duration()
90 | // duration.FromTimedelta(td)
91 | //
92 | // # JSON Mapping
93 | //
94 | // In JSON format, the Duration type is encoded as a string rather than an
95 | // object, where the string ends in the suffix "s" (indicating seconds) and
96 | // is preceded by the number of seconds, with nanoseconds expressed as
97 | // fractional seconds. For example, 3 seconds with 0 nanoseconds should be
98 | // encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
99 | // be expressed in JSON format as "3.000000001s", and 3 seconds and 1
100 | // microsecond should be expressed in JSON format as "3.000001s".
101 | //
102 | //
103 | message Duration {
104 |
105 | // Signed seconds of the span of time. Must be from -315,576,000,000
106 | // to +315,576,000,000 inclusive. Note: these bounds are computed from:
107 | // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
108 | int64 seconds = 1;
109 |
110 | // Signed fractions of a second at nanosecond resolution of the span
111 | // of time. Durations less than one second are represented with a 0
112 | // `seconds` field and a positive or negative `nanos` field. For durations
113 | // of one second or more, a non-zero value for the `nanos` field must be
114 | // of the same sign as the `seconds` field. Must be from -999,999,999
115 | // to +999,999,999 inclusive.
116 | int32 nanos = 2;
117 | }
118 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/c9c1668fb38ab1a3ec80c5df1c79d237/google/protobuf/empty.proto:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | syntax = "proto3";
32 |
33 | package google.protobuf;
34 |
35 | option csharp_namespace = "Google.Protobuf.WellKnownTypes";
36 | option go_package = "github.com/golang/protobuf/ptypes/empty";
37 | option java_package = "com.google.protobuf";
38 | option java_outer_classname = "EmptyProto";
39 | option java_multiple_files = true;
40 | option objc_class_prefix = "GPB";
41 | option cc_enable_arenas = true;
42 |
43 | // A generic empty message that you can re-use to avoid defining duplicated
44 | // empty messages in your APIs. A typical example is to use it as the request
45 | // or the response type of an API method. For instance:
46 | //
47 | // service Foo {
48 | // rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
49 | // }
50 | //
51 | // The JSON representation for `Empty` is empty JSON object `{}`.
52 | message Empty {}
53 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/c9c1668fb38ab1a3ec80c5df1c79d237/google/protobuf/field_mask.proto:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | syntax = "proto3";
32 |
33 | package google.protobuf;
34 |
35 | option csharp_namespace = "Google.Protobuf.WellKnownTypes";
36 | option java_package = "com.google.protobuf";
37 | option java_outer_classname = "FieldMaskProto";
38 | option java_multiple_files = true;
39 | option objc_class_prefix = "GPB";
40 | option go_package = "google.golang.org/genproto/protobuf/field_mask;field_mask";
41 |
42 | // `FieldMask` represents a set of symbolic field paths, for example:
43 | //
44 | // paths: "f.a"
45 | // paths: "f.b.d"
46 | //
47 | // Here `f` represents a field in some root message, `a` and `b`
48 | // fields in the message found in `f`, and `d` a field found in the
49 | // message in `f.b`.
50 | //
51 | // Field masks are used to specify a subset of fields that should be
52 | // returned by a get operation or modified by an update operation.
53 | // Field masks also have a custom JSON encoding (see below).
54 | //
55 | // # Field Masks in Projections
56 | //
57 | // When used in the context of a projection, a response message or
58 | // sub-message is filtered by the API to only contain those fields as
59 | // specified in the mask. For example, if the mask in the previous
60 | // example is applied to a response message as follows:
61 | //
62 | // f {
63 | // a : 22
64 | // b {
65 | // d : 1
66 | // x : 2
67 | // }
68 | // y : 13
69 | // }
70 | // z: 8
71 | //
72 | // The result will not contain specific values for fields x,y and z
73 | // (their value will be set to the default, and omitted in proto text
74 | // output):
75 | //
76 | //
77 | // f {
78 | // a : 22
79 | // b {
80 | // d : 1
81 | // }
82 | // }
83 | //
84 | // A repeated field is not allowed except at the last position of a
85 | // paths string.
86 | //
87 | // If a FieldMask object is not present in a get operation, the
88 | // operation applies to all fields (as if a FieldMask of all fields
89 | // had been specified).
90 | //
91 | // Note that a field mask does not necessarily apply to the
92 | // top-level response message. In case of a REST get operation, the
93 | // field mask applies directly to the response, but in case of a REST
94 | // list operation, the mask instead applies to each individual message
95 | // in the returned resource list. In case of a REST custom method,
96 | // other definitions may be used. Where the mask applies will be
97 | // clearly documented together with its declaration in the API. In
98 | // any case, the effect on the returned resource/resources is required
99 | // behavior for APIs.
100 | //
101 | // # Field Masks in Update Operations
102 | //
103 | // A field mask in update operations specifies which fields of the
104 | // targeted resource are going to be updated. The API is required
105 | // to only change the values of the fields as specified in the mask
106 | // and leave the others untouched. If a resource is passed in to
107 | // describe the updated values, the API ignores the values of all
108 | // fields not covered by the mask.
109 | //
110 | // If a repeated field is specified for an update operation, the existing
111 | // repeated values in the target resource will be overwritten by the new values.
112 | // Note that a repeated field is only allowed in the last position of a `paths`
113 | // string.
114 | //
115 | // If a sub-message is specified in the last position of the field mask for an
116 | // update operation, then the existing sub-message in the target resource is
117 | // overwritten. Given the target message:
118 | //
119 | // f {
120 | // b {
121 | // d : 1
122 | // x : 2
123 | // }
124 | // c : 1
125 | // }
126 | //
127 | // And an update message:
128 | //
129 | // f {
130 | // b {
131 | // d : 10
132 | // }
133 | // }
134 | //
135 | // then if the field mask is:
136 | //
137 | // paths: "f.b"
138 | //
139 | // then the result will be:
140 | //
141 | // f {
142 | // b {
143 | // d : 10
144 | // }
145 | // c : 1
146 | // }
147 | //
148 | // However, if the update mask was:
149 | //
150 | // paths: "f.b.d"
151 | //
152 | // then the result would be:
153 | //
154 | // f {
155 | // b {
156 | // d : 10
157 | // x : 2
158 | // }
159 | // c : 1
160 | // }
161 | //
162 | // In order to reset a field's value to the default, the field must
163 | // be in the mask and set to the default value in the provided resource.
164 | // Hence, in order to reset all fields of a resource, provide a default
165 | // instance of the resource and set all fields in the mask, or do
166 | // not provide a mask as described below.
167 | //
168 | // If a field mask is not present on update, the operation applies to
169 | // all fields (as if a field mask of all fields has been specified).
170 | // Note that in the presence of schema evolution, this may mean that
171 | // fields the client does not know and has therefore not filled into
172 | // the request will be reset to their default. If this is unwanted
173 | // behavior, a specific service may require a client to always specify
174 | // a field mask, producing an error if not.
175 | //
176 | // As with get operations, the location of the resource which
177 | // describes the updated values in the request message depends on the
178 | // operation kind. In any case, the effect of the field mask is
179 | // required to be honored by the API.
180 | //
181 | // ## Considerations for HTTP REST
182 | //
183 | // The HTTP kind of an update operation which uses a field mask must
184 | // be set to PATCH instead of PUT in order to satisfy HTTP semantics
185 | // (PUT must only be used for full updates).
186 | //
187 | // # JSON Encoding of Field Masks
188 | //
189 | // In JSON, a field mask is encoded as a single string where paths are
190 | // separated by a comma. Fields name in each path are converted
191 | // to/from lower-camel naming conventions.
192 | //
193 | // As an example, consider the following message declarations:
194 | //
195 | // message Profile {
196 | // User user = 1;
197 | // Photo photo = 2;
198 | // }
199 | // message User {
200 | // string display_name = 1;
201 | // string address = 2;
202 | // }
203 | //
204 | // In proto a field mask for `Profile` may look as such:
205 | //
206 | // mask {
207 | // paths: "user.display_name"
208 | // paths: "photo"
209 | // }
210 | //
211 | // In JSON, the same mask is represented as below:
212 | //
213 | // {
214 | // mask: "user.displayName,photo"
215 | // }
216 | //
217 | // # Field Masks and Oneof Fields
218 | //
219 | // Field masks treat fields in oneofs just as regular fields. Consider the
220 | // following message:
221 | //
222 | // message SampleMessage {
223 | // oneof test_oneof {
224 | // string name = 4;
225 | // SubMessage sub_message = 9;
226 | // }
227 | // }
228 | //
229 | // The field mask can be:
230 | //
231 | // mask {
232 | // paths: "name"
233 | // }
234 | //
235 | // Or:
236 | //
237 | // mask {
238 | // paths: "sub_message"
239 | // }
240 | //
241 | // Note that oneof type names ("test_oneof" in this case) cannot be used in
242 | // paths.
243 | //
244 | // ## Field Mask Verification
245 | //
246 | // The implementation of the all the API methods, which have any FieldMask type
247 | // field in the request, should verify the included field paths, and return
248 | // `INVALID_ARGUMENT` error if any path is duplicated or unmappable.
249 | message FieldMask {
250 | // The set of field mask paths.
251 | repeated string paths = 1;
252 | }
253 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/c9c1668fb38ab1a3ec80c5df1c79d237/google/protobuf/source_context.proto:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | syntax = "proto3";
32 |
33 | package google.protobuf;
34 |
35 | option csharp_namespace = "Google.Protobuf.WellKnownTypes";
36 | option java_package = "com.google.protobuf";
37 | option java_outer_classname = "SourceContextProto";
38 | option java_multiple_files = true;
39 | option objc_class_prefix = "GPB";
40 | option go_package = "google.golang.org/genproto/protobuf/source_context;source_context";
41 |
42 | // `SourceContext` represents information about the source of a
43 | // protobuf element, like the file in which it is defined.
44 | message SourceContext {
45 | // The path-qualified name of the .proto file that contained the associated
46 | // protobuf element. For example: `"google/protobuf/source_context.proto"`.
47 | string file_name = 1;
48 | }
49 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/c9c1668fb38ab1a3ec80c5df1c79d237/google/protobuf/struct.proto:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | syntax = "proto3";
32 |
33 | package google.protobuf;
34 |
35 | option csharp_namespace = "Google.Protobuf.WellKnownTypes";
36 | option cc_enable_arenas = true;
37 | option go_package = "github.com/golang/protobuf/ptypes/struct;structpb";
38 | option java_package = "com.google.protobuf";
39 | option java_outer_classname = "StructProto";
40 | option java_multiple_files = true;
41 | option objc_class_prefix = "GPB";
42 |
43 |
44 | // `Struct` represents a structured data value, consisting of fields
45 | // which map to dynamically typed values. In some languages, `Struct`
46 | // might be supported by a native representation. For example, in
47 | // scripting languages like JS a struct is represented as an
48 | // object. The details of that representation are described together
49 | // with the proto support for the language.
50 | //
51 | // The JSON representation for `Struct` is JSON object.
52 | message Struct {
53 | // Unordered map of dynamically typed values.
54 | map fields = 1;
55 | }
56 |
57 | // `Value` represents a dynamically typed value which can be either
58 | // null, a number, a string, a boolean, a recursive struct value, or a
59 | // list of values. A producer of value is expected to set one of that
60 | // variants, absence of any variant indicates an error.
61 | //
62 | // The JSON representation for `Value` is JSON value.
63 | message Value {
64 | // The kind of value.
65 | oneof kind {
66 | // Represents a null value.
67 | NullValue null_value = 1;
68 | // Represents a double value.
69 | double number_value = 2;
70 | // Represents a string value.
71 | string string_value = 3;
72 | // Represents a boolean value.
73 | bool bool_value = 4;
74 | // Represents a structured value.
75 | Struct struct_value = 5;
76 | // Represents a repeated `Value`.
77 | ListValue list_value = 6;
78 | }
79 | }
80 |
81 | // `NullValue` is a singleton enumeration to represent the null value for the
82 | // `Value` type union.
83 | //
84 | // The JSON representation for `NullValue` is JSON `null`.
85 | enum NullValue {
86 | // Null value.
87 | NULL_VALUE = 0;
88 | }
89 |
90 | // `ListValue` is a wrapper around a repeated field of values.
91 | //
92 | // The JSON representation for `ListValue` is JSON array.
93 | message ListValue {
94 | // Repeated field of dynamically typed values.
95 | repeated Value values = 1;
96 | }
97 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/c9c1668fb38ab1a3ec80c5df1c79d237/google/protobuf/timestamp.proto:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | syntax = "proto3";
32 |
33 | package google.protobuf;
34 |
35 | option csharp_namespace = "Google.Protobuf.WellKnownTypes";
36 | option cc_enable_arenas = true;
37 | option go_package = "github.com/golang/protobuf/ptypes/timestamp";
38 | option java_package = "com.google.protobuf";
39 | option java_outer_classname = "TimestampProto";
40 | option java_multiple_files = true;
41 | option objc_class_prefix = "GPB";
42 |
43 | // A Timestamp represents a point in time independent of any time zone
44 | // or calendar, represented as seconds and fractions of seconds at
45 | // nanosecond resolution in UTC Epoch time. It is encoded using the
46 | // Proleptic Gregorian Calendar which extends the Gregorian calendar
47 | // backwards to year one. It is encoded assuming all minutes are 60
48 | // seconds long, i.e. leap seconds are "smeared" so that no leap second
49 | // table is needed for interpretation. Range is from
50 | // 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
51 | // By restricting to that range, we ensure that we can convert to
52 | // and from RFC 3339 date strings.
53 | // See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
54 | //
55 | // # Examples
56 | //
57 | // Example 1: Compute Timestamp from POSIX `time()`.
58 | //
59 | // Timestamp timestamp;
60 | // timestamp.set_seconds(time(NULL));
61 | // timestamp.set_nanos(0);
62 | //
63 | // Example 2: Compute Timestamp from POSIX `gettimeofday()`.
64 | //
65 | // struct timeval tv;
66 | // gettimeofday(&tv, NULL);
67 | //
68 | // Timestamp timestamp;
69 | // timestamp.set_seconds(tv.tv_sec);
70 | // timestamp.set_nanos(tv.tv_usec * 1000);
71 | //
72 | // Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
73 | //
74 | // FILETIME ft;
75 | // GetSystemTimeAsFileTime(&ft);
76 | // UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
77 | //
78 | // // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
79 | // // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
80 | // Timestamp timestamp;
81 | // timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
82 | // timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
83 | //
84 | // Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
85 | //
86 | // long millis = System.currentTimeMillis();
87 | //
88 | // Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
89 | // .setNanos((int) ((millis % 1000) * 1000000)).build();
90 | //
91 | //
92 | // Example 5: Compute Timestamp from current time in Python.
93 | //
94 | // timestamp = Timestamp()
95 | // timestamp.GetCurrentTime()
96 | //
97 | // # JSON Mapping
98 | //
99 | // In JSON format, the Timestamp type is encoded as a string in the
100 | // [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
101 | // format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
102 | // where {year} is always expressed using four digits while {month}, {day},
103 | // {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
104 | // seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
105 | // are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
106 | // is required, though only UTC (as indicated by "Z") is presently supported.
107 | //
108 | // For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
109 | // 01:30 UTC on January 15, 2017.
110 | //
111 | // In JavaScript, one can convert a Date object to this format using the
112 | // standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString]
113 | // method. In Python, a standard `datetime.datetime` object can be converted
114 | // to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
115 | // with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
116 | // can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
117 | // http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--)
118 | // to obtain a formatter capable of generating timestamps in this format.
119 | //
120 | //
121 | message Timestamp {
122 |
123 | // Represents seconds of UTC time since Unix epoch
124 | // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
125 | // 9999-12-31T23:59:59Z inclusive.
126 | int64 seconds = 1;
127 |
128 | // Non-negative fractions of a second at nanosecond resolution. Negative
129 | // second values with fractions must still have non-negative nanos values
130 | // that count forward in time. Must be from 0 to 999,999,999
131 | // inclusive.
132 | int32 nanos = 2;
133 | }
134 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/c9c1668fb38ab1a3ec80c5df1c79d237/google/protobuf/type.proto:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | syntax = "proto3";
32 |
33 | package google.protobuf;
34 |
35 | import "google/protobuf/any.proto";
36 | import "google/protobuf/source_context.proto";
37 |
38 | option csharp_namespace = "Google.Protobuf.WellKnownTypes";
39 | option cc_enable_arenas = true;
40 | option java_package = "com.google.protobuf";
41 | option java_outer_classname = "TypeProto";
42 | option java_multiple_files = true;
43 | option objc_class_prefix = "GPB";
44 | option go_package = "google.golang.org/genproto/protobuf/ptype;ptype";
45 |
46 | // A protocol buffer message type.
47 | message Type {
48 | // The fully qualified message name.
49 | string name = 1;
50 | // The list of fields.
51 | repeated Field fields = 2;
52 | // The list of types appearing in `oneof` definitions in this type.
53 | repeated string oneofs = 3;
54 | // The protocol buffer options.
55 | repeated Option options = 4;
56 | // The source context.
57 | SourceContext source_context = 5;
58 | // The source syntax.
59 | Syntax syntax = 6;
60 | }
61 |
62 | // A single field of a message type.
63 | message Field {
64 | // Basic field types.
65 | enum Kind {
66 | // Field type unknown.
67 | TYPE_UNKNOWN = 0;
68 | // Field type double.
69 | TYPE_DOUBLE = 1;
70 | // Field type float.
71 | TYPE_FLOAT = 2;
72 | // Field type int64.
73 | TYPE_INT64 = 3;
74 | // Field type uint64.
75 | TYPE_UINT64 = 4;
76 | // Field type int32.
77 | TYPE_INT32 = 5;
78 | // Field type fixed64.
79 | TYPE_FIXED64 = 6;
80 | // Field type fixed32.
81 | TYPE_FIXED32 = 7;
82 | // Field type bool.
83 | TYPE_BOOL = 8;
84 | // Field type string.
85 | TYPE_STRING = 9;
86 | // Field type group. Proto2 syntax only, and deprecated.
87 | TYPE_GROUP = 10;
88 | // Field type message.
89 | TYPE_MESSAGE = 11;
90 | // Field type bytes.
91 | TYPE_BYTES = 12;
92 | // Field type uint32.
93 | TYPE_UINT32 = 13;
94 | // Field type enum.
95 | TYPE_ENUM = 14;
96 | // Field type sfixed32.
97 | TYPE_SFIXED32 = 15;
98 | // Field type sfixed64.
99 | TYPE_SFIXED64 = 16;
100 | // Field type sint32.
101 | TYPE_SINT32 = 17;
102 | // Field type sint64.
103 | TYPE_SINT64 = 18;
104 | };
105 |
106 | // Whether a field is optional, required, or repeated.
107 | enum Cardinality {
108 | // For fields with unknown cardinality.
109 | CARDINALITY_UNKNOWN = 0;
110 | // For optional fields.
111 | CARDINALITY_OPTIONAL = 1;
112 | // For required fields. Proto2 syntax only.
113 | CARDINALITY_REQUIRED = 2;
114 | // For repeated fields.
115 | CARDINALITY_REPEATED = 3;
116 | };
117 |
118 | // The field type.
119 | Kind kind = 1;
120 | // The field cardinality.
121 | Cardinality cardinality = 2;
122 | // The field number.
123 | int32 number = 3;
124 | // The field name.
125 | string name = 4;
126 | // The field type URL, without the scheme, for message or enumeration
127 | // types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
128 | string type_url = 6;
129 | // The index of the field type in `Type.oneofs`, for message or enumeration
130 | // types. The first type has index 1; zero means the type is not in the list.
131 | int32 oneof_index = 7;
132 | // Whether to use alternative packed wire representation.
133 | bool packed = 8;
134 | // The protocol buffer options.
135 | repeated Option options = 9;
136 | // The field JSON name.
137 | string json_name = 10;
138 | // The string value of the default value of this field. Proto2 syntax only.
139 | string default_value = 11;
140 | }
141 |
142 | // Enum type definition.
143 | message Enum {
144 | // Enum type name.
145 | string name = 1;
146 | // Enum value definitions.
147 | repeated EnumValue enumvalue = 2;
148 | // Protocol buffer options.
149 | repeated Option options = 3;
150 | // The source context.
151 | SourceContext source_context = 4;
152 | // The source syntax.
153 | Syntax syntax = 5;
154 | }
155 |
156 | // Enum value definition.
157 | message EnumValue {
158 | // Enum value name.
159 | string name = 1;
160 | // Enum value number.
161 | int32 number = 2;
162 | // Protocol buffer options.
163 | repeated Option options = 3;
164 | }
165 |
166 | // A protocol buffer option, which can be attached to a message, field,
167 | // enumeration, etc.
168 | message Option {
169 | // The option's name. For protobuf built-in options (options defined in
170 | // descriptor.proto), this is the short name. For example, `"map_entry"`.
171 | // For custom options, it should be the fully-qualified name. For example,
172 | // `"google.api.http"`.
173 | string name = 1;
174 | // The option's value packed in an Any message. If the value is a primitive,
175 | // the corresponding wrapper type defined in google/protobuf/wrappers.proto
176 | // should be used. If the value is an enum, it should be stored as an int32
177 | // value using the google.protobuf.Int32Value type.
178 | Any value = 2;
179 | }
180 |
181 | // The syntax in which a protocol buffer element is defined.
182 | enum Syntax {
183 | // Syntax `proto2`.
184 | SYNTAX_PROTO2 = 0;
185 | // Syntax `proto3`.
186 | SYNTAX_PROTO3 = 1;
187 | }
188 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-dependencies/c9c1668fb38ab1a3ec80c5df1c79d237/google/protobuf/wrappers.proto:
--------------------------------------------------------------------------------
1 | // Protocol Buffers - Google's data interchange format
2 | // Copyright 2008 Google Inc. All rights reserved.
3 | // https://developers.google.com/protocol-buffers/
4 | //
5 | // Redistribution and use in source and binary forms, with or without
6 | // modification, are permitted provided that the following conditions are
7 | // met:
8 | //
9 | // * Redistributions of source code must retain the above copyright
10 | // notice, this list of conditions and the following disclaimer.
11 | // * Redistributions in binary form must reproduce the above
12 | // copyright notice, this list of conditions and the following disclaimer
13 | // in the documentation and/or other materials provided with the
14 | // distribution.
15 | // * Neither the name of Google Inc. nor the names of its
16 | // contributors may be used to endorse or promote products derived from
17 | // this software without specific prior written permission.
18 | //
19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 | // Wrappers for primitive (non-message) types. These types are useful
32 | // for embedding primitives in the `google.protobuf.Any` type and for places
33 | // where we need to distinguish between the absence of a primitive
34 | // typed field and its default value.
35 |
36 | syntax = "proto3";
37 |
38 | package google.protobuf;
39 |
40 | option csharp_namespace = "Google.Protobuf.WellKnownTypes";
41 | option cc_enable_arenas = true;
42 | option go_package = "github.com/golang/protobuf/ptypes/wrappers";
43 | option java_package = "com.google.protobuf";
44 | option java_outer_classname = "WrappersProto";
45 | option java_multiple_files = true;
46 | option objc_class_prefix = "GPB";
47 |
48 | // Wrapper message for `double`.
49 | //
50 | // The JSON representation for `DoubleValue` is JSON number.
51 | message DoubleValue {
52 | // The double value.
53 | double value = 1;
54 | }
55 |
56 | // Wrapper message for `float`.
57 | //
58 | // The JSON representation for `FloatValue` is JSON number.
59 | message FloatValue {
60 | // The float value.
61 | float value = 1;
62 | }
63 |
64 | // Wrapper message for `int64`.
65 | //
66 | // The JSON representation for `Int64Value` is JSON string.
67 | message Int64Value {
68 | // The int64 value.
69 | int64 value = 1;
70 | }
71 |
72 | // Wrapper message for `uint64`.
73 | //
74 | // The JSON representation for `UInt64Value` is JSON string.
75 | message UInt64Value {
76 | // The uint64 value.
77 | uint64 value = 1;
78 | }
79 |
80 | // Wrapper message for `int32`.
81 | //
82 | // The JSON representation for `Int32Value` is JSON number.
83 | message Int32Value {
84 | // The int32 value.
85 | int32 value = 1;
86 | }
87 |
88 | // Wrapper message for `uint32`.
89 | //
90 | // The JSON representation for `UInt32Value` is JSON number.
91 | message UInt32Value {
92 | // The uint32 value.
93 | uint32 value = 1;
94 | }
95 |
96 | // Wrapper message for `bool`.
97 | //
98 | // The JSON representation for `BoolValue` is JSON `true` and `false`.
99 | message BoolValue {
100 | // The bool value.
101 | bool value = 1;
102 | }
103 |
104 | // Wrapper message for `string`.
105 | //
106 | // The JSON representation for `StringValue` is JSON string.
107 | message StringValue {
108 | // The string value.
109 | string value = 1;
110 | }
111 |
112 | // Wrapper message for `bytes`.
113 | //
114 | // The JSON representation for `BytesValue` is JSON string.
115 | message BytesValue {
116 | // The bytes value.
117 | bytes value = 1;
118 | }
119 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-plugins/protoc-3.5.1-1-windows-x86_64.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/protoc-plugins/protoc-3.5.1-1-windows-x86_64.exe
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/protoc-plugins/protoc-gen-grpc-java-1.16.1-windows-x86_64.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/protoc-plugins/protoc-gen-grpc-java-1.16.1-windows-x86_64.exe
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/surefire-reports/TEST-com.quinnox.example.grpc.SpringGrpcApplicationTests.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 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/surefire-reports/com.quinnox.example.grpc.SpringGrpcApplicationTests.txt:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | Test set: com.quinnox.example.grpc.SpringGrpcApplicationTests
3 | -------------------------------------------------------------------------------
4 | Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.949 s - in com.quinnox.example.grpc.SpringGrpcApplicationTests
5 |
--------------------------------------------------------------------------------
/grpc-java-hello-world/target/test-classes/com/quinnox/example/grpc/SpringGrpcApplicationTests.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohit6350/gRPC/ec88bb2504a781b16acbef5857dd98ecfc1d57cc/grpc-java-hello-world/target/test-classes/com/quinnox/example/grpc/SpringGrpcApplicationTests.class
--------------------------------------------------------------------------------
/hello-world.txt:
--------------------------------------------------------------------------------
1 | Hello World
2 |
--------------------------------------------------------------------------------
/hello.js:
--------------------------------------------------------------------------------
1 | console.log("Hello world")
2 |
--------------------------------------------------------------------------------