public com.google.cloud.vertexai.api.Tool.CodeExecution getCodeExecution() {
      if (codeExecutionBuilder_ == null) {
        return codeExecution_ == null
            ? com.google.cloud.vertexai.api.Tool.CodeExecution.getDefaultInstance()
            : codeExecution_;
      } else {
        return codeExecutionBuilder_.getMessage();
      }
    }
<pre>
Optional. CodeExecution tool type.
Enables the model to execute code as part of generation.
</pre>

<code>
.google.cloud.vertexai.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL];
</code>

@return The codeExecution.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Tool.java