Change method signature so that it follows enhanced JavaBean convention for higher Java version

GCP-10148

Reviewer : Cyrus Venn Casada