Skip to content

Commit 2dd1c7e

Browse files
committed
update proto package to grpc.gcp.s2a.
1 parent 44fe552 commit 2dd1c7e

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

s2a/BUILD.bazel

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,28 +133,28 @@ java_library(
133133
# bazel only accepts proto import with absolute path.
134134
genrule(
135135
name = "protobuf_imports",
136-
srcs = glob(["src/main/proto/grpc/gcp/*.proto"]),
136+
srcs = glob(["src/main/proto/grpc/gcp/s2a/*.proto"]),
137137
outs = [
138-
"protobuf_out/grpc/gcp/s2a.proto",
139-
"protobuf_out/grpc/gcp/s2a_context.proto",
140-
"protobuf_out/grpc/gcp/common.proto",
138+
"protobuf_out/grpc/gcp/s2a/s2a.proto",
139+
"protobuf_out/grpc/gcp/s2a/s2a_context.proto",
140+
"protobuf_out/grpc/gcp/s2a/common.proto",
141141
],
142142
cmd = "for fname in $(SRCS); do " +
143143
"sed 's,import \",import \"s2a/protobuf_out/,g' $$fname > " +
144-
"$(@D)/protobuf_out/grpc/gcp/$$(basename $$fname); done",
144+
"$(@D)/protobuf_out/grpc/gcp/s2a/$$(basename $$fname); done",
145145
)
146146

147147
proto_library(
148148
name = "common_proto",
149149
srcs = [
150-
"protobuf_out/grpc/gcp/common.proto",
150+
"protobuf_out/grpc/gcp/s2a/common.proto",
151151
],
152152
)
153153

154154
proto_library(
155155
name = "s2a_context_proto",
156156
srcs = [
157-
"protobuf_out/grpc/gcp/s2a_context.proto",
157+
"protobuf_out/grpc/gcp/s2a/s2a_context.proto",
158158
],
159159
deps = [
160160
":common_proto",
@@ -164,7 +164,7 @@ proto_library(
164164
proto_library(
165165
name = "s2a_proto",
166166
srcs = [
167-
"protobuf_out/grpc/gcp/s2a.proto",
167+
"protobuf_out/grpc/gcp/s2a/s2a.proto",
168168
],
169169
deps = [
170170
":common_proto",

s2a/src/generated/main/grpc/io/grpc/s2a/handshaker/S2AServiceGrpc.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
*/
77
@javax.annotation.Generated(
88
value = "by gRPC proto compiler",
9-
comments = "Source: grpc/gcp/s2a.proto")
9+
comments = "Source: grpc/gcp/s2a/s2a.proto")
1010
@io.grpc.stub.annotations.GrpcGenerated
1111
public final class S2AServiceGrpc {
1212

1313
private S2AServiceGrpc() {}
1414

15-
public static final java.lang.String SERVICE_NAME = "grpc.gcp.S2AService";
15+
public static final java.lang.String SERVICE_NAME = "grpc.gcp.s2a.S2AService";
1616

1717
// Static method descriptors that strictly reflect the proto.
1818
private static volatile io.grpc.MethodDescriptor<io.grpc.s2a.handshaker.SessionReq,

s2a/src/main/proto/grpc/gcp/common.proto renamed to s2a/src/main/proto/grpc/gcp/s2a/common.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
syntax = "proto3";
1919

20-
package grpc.gcp;
20+
package grpc.gcp.s2a;
2121

2222
option java_multiple_files = true;
2323
option java_outer_classname = "CommonProto";
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
syntax = "proto3";
1919

20-
package grpc.gcp;
20+
package grpc.gcp.s2a;
2121

22-
import "grpc/gcp/common.proto";
23-
import "grpc/gcp/s2a_context.proto";
22+
import "grpc/gcp/s2a/common.proto";
23+
import "grpc/gcp/s2a/s2a_context.proto";
2424

2525
option java_multiple_files = true;
2626
option java_outer_classname = "S2AProto";

s2a/src/main/proto/grpc/gcp/s2a_context.proto renamed to s2a/src/main/proto/grpc/gcp/s2a/s2a_context.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
syntax = "proto3";
1919

20-
package grpc.gcp;
20+
package grpc.gcp.s2a;
2121

22-
import "grpc/gcp/common.proto";
22+
import "grpc/gcp/s2a/common.proto";
2323

2424
option java_multiple_files = true;
2525
option java_outer_classname = "S2AContextProto";

0 commit comments

Comments
 (0)