Interface JobStatusOrBuilder (0.42.0)

public interface JobStatusOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsTaskGroups(String key)

public abstract boolean containsTaskGroups(String key)

Aggregated task status for each TaskGroup in the Job. The map key is TaskGroup ID.

map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getResourceUsage()

public abstract ResourceUsage getResourceUsage()

The resource usage of the job.

.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;

Returns
Type Description
ResourceUsage

The resourceUsage.

getResourceUsageOrBuilder()

public abstract ResourceUsageOrBuilder getResourceUsageOrBuilder()

The resource usage of the job.

.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;

Returns
Type Description
ResourceUsageOrBuilder

getRunDuration()

public abstract Duration getRunDuration()

The duration of time that the Job spent in status RUNNING.

.google.protobuf.Duration run_duration = 5;

Returns
Type Description
Duration

The runDuration.

getRunDurationOrBuilder()

public abstract DurationOrBuilder getRunDurationOrBuilder()

The duration of time that the Job spent in status RUNNING.

.google.protobuf.Duration run_duration = 5;

Returns
Type Description
DurationOrBuilder

getState()

public abstract JobStatus.State getState()

Job state

.google.cloud.batch.v1alpha.JobStatus.State state = 1;

Returns
Type Description
JobStatus.State

The state.

getStateValue()

public abstract int getStateValue()

Job state

.google.cloud.batch.v1alpha.JobStatus.State state = 1;

Returns
Type Description
int

The enum numeric value on the wire for state.

getStatusEvents(int index)

public abstract StatusEvent getStatusEvents(int index)

Job status events

repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;

Parameter
Name Description
index int
Returns
Type Description
StatusEvent

getStatusEventsCount()

public abstract int getStatusEventsCount()

Job status events

repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;

Returns
Type Description
int

getStatusEventsList()

public abstract List<StatusEvent> getStatusEventsList()

Job status events

repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;

Returns
Type Description
List<StatusEvent>

getStatusEventsOrBuilder(int index)

public abstract StatusEventOrBuilder getStatusEventsOrBuilder(int index)

Job status events

repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;

Parameter
Name Description
index int
Returns
Type Description
StatusEventOrBuilder

getStatusEventsOrBuilderList()

public abstract List<? extends StatusEventOrBuilder> getStatusEventsOrBuilderList()

Job status events

repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;

Returns
Type Description
List<? extends com.google.cloud.batch.v1alpha.StatusEventOrBuilder>

getTaskGroups() (deprecated)

public abstract Map<String,JobStatus.TaskGroupStatus> getTaskGroups()

Use #getTaskGroupsMap() instead.

Returns
Type Description
Map<String,TaskGroupStatus>

getTaskGroupsCount()

public abstract int getTaskGroupsCount()

Aggregated task status for each TaskGroup in the Job. The map key is TaskGroup ID.

map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;

Returns
Type Description
int

getTaskGroupsMap()

public abstract Map<String,JobStatus.TaskGroupStatus> getTaskGroupsMap()

Aggregated task status for each TaskGroup in the Job. The map key is TaskGroup ID.

map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;

Returns
Type Description
Map<String,TaskGroupStatus>

getTaskGroupsOrDefault(String key, JobStatus.TaskGroupStatus defaultValue)

public abstract JobStatus.TaskGroupStatus getTaskGroupsOrDefault(String key, JobStatus.TaskGroupStatus defaultValue)

Aggregated task status for each TaskGroup in the Job. The map key is TaskGroup ID.

map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;

Parameters
Name Description
key String
defaultValue JobStatus.TaskGroupStatus
Returns
Type Description
JobStatus.TaskGroupStatus

getTaskGroupsOrThrow(String key)

public abstract JobStatus.TaskGroupStatus getTaskGroupsOrThrow(String key)

Aggregated task status for each TaskGroup in the Job. The map key is TaskGroup ID.

map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;

Parameter
Name Description
key String
Returns
Type Description
JobStatus.TaskGroupStatus

hasResourceUsage()

public abstract boolean hasResourceUsage()

The resource usage of the job.

.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;

Returns
Type Description
boolean

Whether the resourceUsage field is set.

hasRunDuration()

public abstract boolean hasRunDuration()

The duration of time that the Job spent in status RUNNING.

.google.protobuf.Duration run_duration = 5;

Returns
Type Description
boolean

Whether the runDuration field is set.