public com.google.protobuf.Duration getTtl() {
      if (ttlBuilder_ == null) {
        return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_;
      } else {
        return ttlBuilder_.getMessage();
      }
    }
<pre>
The duration for which all media assets, associated metadata, and search
documents can exist.
</pre>

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

@return The ttl.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/MediaWarehouseConfig.java