Skip to content

Commit c0c8037

Browse files
author
chenll
committed
add annotation.proto
1 parent cd31702 commit c0c8037

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dependencies {
3737
compile "io.grpc:grpc-netty:${grpcVersion}"
3838
compile "io.grpc:grpc-protobuf:${grpcVersion}"
3939
compile "io.grpc:grpc-stub:${grpcVersion}"
40+
compile 'com.google.api:api-annotations:1.0-SNAPSHOT'
4041

4142
// Used for TLS in HelloWorldServerTls
4243
compile "io.netty:netty-tcnative-boringssl-static:${nettyTcNativeVersion}"

examples.iml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module external.linked.project.id="examples" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="true">
4+
<content url="file://$MODULE_DIR$">
5+
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
6+
<excludeFolder url="file://$MODULE_DIR$/build" />
7+
<excludeFolder url="file://$MODULE_DIR$/out" />
8+
<excludeFolder url="file://$MODULE_DIR$/target" />
9+
</content>
10+
<orderEntry type="inheritedJdk" />
11+
<orderEntry type="sourceFolder" forTests="false" />
12+
</component>
13+
</module>

src/main/proto/hello_kitty.proto

+5
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,18 @@ option java_multiple_files = true;
1818
option java_package = "io.grpc.examples.hellokitty";
1919
option java_outer_classname = "HelloKittyProto";
2020
option objc_class_prefix = "HLK";
21+
import "google/api/annotations.proto";
22+
import "google/protobuf/wrappers.proto";
2123

2224
package hellokitty;
2325

2426
// The greeting service definition.
2527
service HelloKitty {
2628
// Sends a greeting
2729
rpc SayHello (HelloKittyRequest) returns (HelloKittyReply) {
30+
option (google.api.http) = {
31+
get: "/crm/projectAssignPage"
32+
};
2833
}
2934
}
3035

0 commit comments

Comments
 (0)