@java.lang.Override
  public boolean hasTtl() {
    return expirationCase_ == 10;
  }
<pre>
Input only. The TTL for this resource. The expiration time is computed:
now + TTL.
</pre>

<code>.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];</code>

@return Whether the ttl field is set.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CachedContent.java