Skip to content

Commit

Permalink
chore: add config for java
Browse files Browse the repository at this point in the history
Signed-off-by: LingKa <cnfty786@gmail.com>
  • Loading branch information
LingKa28 committed Oct 23, 2023
1 parent 207e02e commit 408aa29
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/curp-command.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ package commandpb;
import "curp-error.proto";

option go_package = ".;curpapi";
option java_package = "com.curp.protobuf";
option java_outer_classname = "CommandProto";
option java_multiple_files = true;

message ProposeRequest {
// The serialized command
Expand Down
3 changes: 3 additions & 0 deletions src/curp-error.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ syntax = "proto3";
import "google/protobuf/empty.proto";

option go_package = ".;curpapi";
option java_package = "com.curp.protobuf";
option java_outer_classname = "ErrorProto";
option java_multiple_files = true;

package errorpb;

Expand Down
3 changes: 3 additions & 0 deletions src/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ syntax = "proto3";
package messagepb;

option go_package = ".;curpapi";
option java_package = "com.curp.protobuf";
option java_outer_classname = "MessageProto";
option java_multiple_files = true;

import "curp-command.proto";
import "curp-error.proto";
Expand Down

0 comments on commit 408aa29

Please sign in to comment.