diff --git a/api/api.proto b/api/api.proto index d01979ee993..03419d235d5 100644 --- a/api/api.proto +++ b/api/api.proto @@ -6,6 +6,7 @@ import "core/Contract.proto"; option java_package = "org.tron.api"; //Specify the name of the package that generated the Java file option java_outer_classname = "GrpcAPI"; //Specify the class name of the generated Java file +option go_package = "github.com/tronprotocol/go-client-api/api"; service Wallet { diff --git a/core/Contract.proto b/core/Contract.proto index b334f7709b0..a00c82eec58 100644 --- a/core/Contract.proto +++ b/core/Contract.proto @@ -19,6 +19,7 @@ package protocol; option java_package = "org.tron.protos"; //Specify the name of the package that generated the Java file option java_outer_classname = "Contract"; //Specify the class name of the generated Java file +option go_package = "github.com/tronprotocol/go-client-api/core"; import "core/Tron.proto"; diff --git a/core/Discover.proto b/core/Discover.proto index 2a9668ba75c..ac45a30364a 100644 --- a/core/Discover.proto +++ b/core/Discover.proto @@ -5,6 +5,7 @@ package protocol; option java_package = "org.tron.protos"; //Specify the name of the package that generated the Java file option java_outer_classname = "Discover"; //Specify the class name of the generated Java file +option go_package = "github.com/tronprotocol/go-client-api/core"; message Endpoint { bytes address = 1; diff --git a/core/Tron.proto b/core/Tron.proto index 8aa587249eb..7339733487a 100644 --- a/core/Tron.proto +++ b/core/Tron.proto @@ -8,6 +8,7 @@ package protocol; option java_package = "org.tron.protos"; //Specify the name of the package that generated the Java file option java_outer_classname = "Protocol"; //Specify the class name of the generated Java file +option go_package = "github.com/tronprotocol/go-client-api/core"; enum AccountType { diff --git a/core/TronInventoryItems.proto b/core/TronInventoryItems.proto index fb16f1d5431..f630ffad598 100644 --- a/core/TronInventoryItems.proto +++ b/core/TronInventoryItems.proto @@ -4,6 +4,7 @@ package protocol; option java_package = "org.tron.protos"; //Specify the name of the package that generated the Java file option java_outer_classname = "TronInventoryItems"; //Specify the class name of the generated Java file +option go_package = "github.com/tronprotocol/go-client-api/core"; message InventoryItems { int32 type = 1;