public boolean hasServiceAccount() {
    return principalCase_ == 2;
  }
<pre>
The service account which needs to be granted the permission.
</pre>

<code>string service_account = 2;</code>

@return Whether the serviceAccount field is set.
java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/Principal.java