public final ListJobsPagedResponse listJobs(String parent, String filter) {
    ListJobsRequest request =
        ListJobsRequest.newBuilder().setParent(parent).setFilter(filter).build();
    return listJobs(request);
  }
public final ListJobsPagedResponse listJobs ( String parent , String filter ) { ListJobsRequest request = ListJobsRequest . newBuilder ( ) . setParent ( parent ) . setFilter ( filter ) . build ( ) ; return listJobs ( request ) ; }
Lists jobs by filter.

<p>Sample code:

<pre><code>
try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
String filter = "";
for (Job element : jobServiceClient.listJobs(parent.toString(), filter).iterateAll()) {
// doThingsWith(element);
}
}
</code></pre>

@param parent Required.
<p>The resource name of the tenant under which the job is created.
<p>The format is "projects/{project_id}/tenants/{tenant_id}", for example,
"projects/api-test-project/tenant/foo".
<p>Tenant id is optional and the default tenant is used if unspecified, for example,
"projects/api-test-project".
@param filter Required.
<p>The filter string specifies the jobs to be enumerated.
<p>Supported operator: =, AND
<p>The fields eligible for filtering are:
<p>&#42; `companyName` (Required) &#42; `requisitionId` (Optional) &#42; `status`
(Optional) Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified.
<p>Sample Query:
<p>&#42; companyName = "projects/api-test-project/tenants/foo/companies/bar" &#42;
companyName = "projects/api-test-project/tenants/foo/companies/bar" AND requisitionId =
"req-1" &#42; companyName = "projects/api-test-project/tenants/foo/companies/bar" AND
status = "EXPIRED"
@throws com.google.api.gax.rpc.ApiException if the remote call fails