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
There is no FieldBehaviorOption in google library to refer.
The text was updated successfully, but these errors were encountered:
karthi2007
changed the title
[Kotlin] google.api.field_behavior from proto file generates unavailable reference and results in compile error
[Kotlin] google.api.field_behavior from proto file generates unresolved reference and results in compile error
Dec 3, 2024
In the kotlin {} block, you can use those two options
// True to emit types for options declared on messages, fields, etc.
emitDeclaredOptions = true
// True to emit annotations for options applied on messages, fields, etc.
emitAppliedOptions = true
If you need the annotations, set them to true, or both to false if you don't.
Issue: Compile error on generated kotlin code
Proto file
I have a proto file with
field_behavior
attribute for a parameter.Generated code:
"Config":
Issue:
Unresolved reference 'FieldBehaviorOption'.
import com.google.api.FieldBehaviorOption
There is no
FieldBehaviorOption
in google library to refer.The text was updated successfully, but these errors were encountered: