public boolean hasTtl() {
      return ((bitField0_ & 0x00000002) != 0);
    }
<pre>
The duration for which all media assets, associated metadata, and search
documents can exist. If not set, then it will using the default ttl in the
parent corpus resource.
</pre>

<code>.google.protobuf.Duration ttl = 2;</code>

@return Whether the ttl field is set.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/Asset.java