Interface JobStatusOrBuilder (0.12.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.v1.JobStatus.TaskGroupStatus> task_groups = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

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.v1.JobStatus.State state = 1;

Returns
Type Description
JobStatus.State

The state.

getStateValue()

public abstract int getStateValue()

Job state

.google.cloud.batch.v1.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.v1.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.v1.StatusEvent status_events = 2;

Returns
Type Description
int

getStatusEventsList()

public abstract List<StatusEvent> getStatusEventsList()

Job status events

repeated .google.cloud.batch.v1.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.v1.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.v1.StatusEvent status_events = 2;

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

getTaskGroups()

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.v1.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.v1.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.v1.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.v1.JobStatus.TaskGroupStatus> task_groups = 4;

Parameter
Name Description
key String
Returns
Type Description
JobStatus.TaskGroupStatus

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.