@java.lang.Override
    public boolean hasTpu() {
      return resourceCase_ == 2;
    }
<pre>
Defines a TPU resource.
</pre>

<code>.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;</code>

@return Whether the tpu field is set.
java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java