Skip to content

Commit

Permalink
Merge pull request meshtastic#21 from lmatte7/master
Browse files Browse the repository at this point in the history
Add Options For Go Protobuf Generation
  • Loading branch information
sachaw authored May 24, 2021
2 parents dfcfba8 + a057fff commit f604be5
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";

option java_package = "com.geeksville.mesh";
option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";

import "mesh.proto";
import "radioconfig.proto";
Expand Down
1 change: 1 addition & 0 deletions apponly.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";

option java_package = "com.geeksville.mesh";
option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";

import "channel.proto";

Expand Down
2 changes: 2 additions & 0 deletions channel.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ syntax = "proto3";
*/

option java_package = "com.geeksville.mesh";

option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";

option java_outer_classname = "ChannelProtos";

Expand Down
1 change: 1 addition & 0 deletions deviceonly.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";

option java_package = "com.geeksville.mesh";
option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";

import "mesh.proto";
import "channel.proto";
Expand Down
1 change: 1 addition & 0 deletions environmental_measurement.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
syntax = "proto3";
option go_package = "github.com/meshtastic/gomeshproto";

message EnvironmentalMeasurement {

Expand Down
1 change: 1 addition & 0 deletions mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ syntax = "proto3";

option java_package = "com.geeksville.mesh";
option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";

import "portnums.proto";

Expand Down
1 change: 1 addition & 0 deletions mqtt.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";

option java_package = "com.geeksville.mesh";
option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";

import "mesh.proto";

Expand Down
1 change: 1 addition & 0 deletions portnums.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
option java_package = "com.geeksville.mesh";
option java_outer_classname = "Portnums";
option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";

/*
* For any new 'apps' that run on the device or via sister apps on phones/PCs they should pick and use a
Expand Down
1 change: 1 addition & 0 deletions radioconfig.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ syntax = "proto3";
option java_package = "com.geeksville.mesh";
option java_outer_classname = "RadioConfigProtos";
option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";

/*
* The frequency/regulatory region the user has selected.
Expand Down
1 change: 1 addition & 0 deletions remote_hardware.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
option java_package = "com.geeksville.mesh";
option java_outer_classname = "RemoteHardware";
option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";

/*
* An example app to show off the plugin system. This message is used for
Expand Down

0 comments on commit f604be5

Please sign in to comment.