You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice protobuf doesn't do anything special with java reserved keywords for message types, for example this generates invalid Java:
message native { // if this is capitalized it works
}
public final class native extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.channelz.native)
nativeOrBuilder {
And methods for fields have get or set prefix, so they're also fine. Messages virtually always start with an upper-case character and keywords are all lowercase. And enums are ALL_UPPER_CASE.
When defining an RPC like:
The method Import gets translated to a java keyword. When should adjust it by adding an underscore (prepended?) to allow it to compile.
The text was updated successfully, but these errors were encountered: