We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The concept is like Custom named struct.
Syntax: just after struct type name, use parentheses () to specify struct variable name: VariableType(VariableName).
()
VariableType(VariableName)
message ActivityTarget { option (tableau.union) = true; Type type = 9999 [(tableau.field) = { name: "Type" }]; oneof value { option (tableau.oneof) = {field: "Field"}; Battle pvp_battle = 1; // Bound to enum value: TYPE_PVP_BATTLE. Battle pve_battle = 2; // Bound to enum value: TYPE_PVE_BATTLE. } enum Type { TYPE_INVALID = 0; TYPE_PVP_BATTLE = 1 [(tableau.evalue).name = "PVP"]; TYPE_PVE_BATTLE = 2 [(tableau.evalue).name = "PVE"]; } message Battle { // ... } }
The text was updated successfully, but these errors were encountered:
wenchy
No branches or pull requests
The concept is like Custom named struct.
Syntax: just after struct type name, use parentheses
()
to specify struct variable name:VariableType(VariableName)
.Example
int32
uint32
int64
int32
uint32
int64
The text was updated successfully, but these errors were encountered: