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
{{ message }}
This repository was archived by the owner on May 14, 2026. It is now read-only.
message UpdateCaseRequest {
Case case = 1 [(google.api.field_behavior) = REQUIRED];
google.protobuf.FieldMask update_mask = 2;
}
The generated unit tests would fail because UpdateCaseRequest contains a field with name case which is a Java keyword.
Root cause: We append a _ to the field name in generated client code, so the field name is now case_, then when we try to match it with case.name in the resource definition in generated unit tests, it would fail because we are unable to find a field with name case. Potential fix: Unescape the field name when generating unit tests.
Given the RPC definition
resource definition
and request definition
The generated unit tests would fail because
UpdateCaseRequestcontains a field with namecasewhich is a Java keyword.Root cause: We append a
_to the field name in generated client code, so the field name is nowcase_, then when we try to match it withcase.namein the resource definition in generated unit tests, it would fail because we are unable to find a field with namecase.Potential fix: Unescape the field name when generating unit tests.