Skip to content

Commit

Permalink
fix: remove some protoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Santos committed Aug 21, 2024
1 parent 6947213 commit b377148
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package domain.actors;
import "domain/common.proto";

option java_package = "io.eigr.spawn.java.domain.actors";
option java_outer_classname = "PostalCodeProto";

service PostalCode {
rpc GetPostalCodeData(domain.GetRequest) returns (domain.GetResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import "domain/common.proto";
import "google/api/annotations.proto";

option java_package = "io.eigr.spawn.java.domain.actors";
option java_outer_classname = "RouterProto";

service Router {
rpc GetPostalCode(domain.GetRequest) returns (domain.GetResponse) {
option (google.api.http) = {
get: "/v1/postalcodes/{code}"
get : "/v1/postalcodes/{code}"
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package domain;

option java_package = "io.eigr.spawn.java.domain";
option java_outer_classname = "DomainProto";

enum PostalCodeStatus {
UNKNOWN = 0;
Expand All @@ -22,6 +23,4 @@ message PostalCodeState {

message GetRequest { string code = 1; }

message GetResponse {
PostalCodeState postal_code = 1;
}
message GetResponse { PostalCodeState postal_code = 1; }

0 comments on commit b377148

Please sign in to comment.