public boolean hasDuration() {
      return ((bitField0_ & 0x00000008) != 0);
    }
<pre>
Output only. Measures the duration of the execution.
</pre>

<code>.google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>

@return Whether the duration field is set.
java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java