diff --git a/api/api.proto b/api/api.proto index fd08b73019f..8e179a20e65 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 = "go-client-api/api"; service Wallet { diff --git a/core/Discover.proto b/core/Discover.proto index 2a9668ba75c..e85174bbb1a 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 = "go-client-api/core"; message Endpoint { bytes address = 1; diff --git a/core/Tron.proto b/core/Tron.proto index 8aa587249eb..c5427b812c7 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 = "go-client-api/core"; enum AccountType { diff --git a/core/TronInventoryItems.proto b/core/TronInventoryItems.proto index fb16f1d5431..c13676921bc 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 = "go-client-api/core"; message InventoryItems { int32 type = 1;