JobDefOrBuilder

public interface JobDefOrBuilder
Known Indirect Subclasses

Public Methods

abstract boolean
containsTasks (int key)
 Mapping from task ID to "hostname:port" string.
abstract String
getName ()
 The name of this job.
abstract com.google.protobuf.ByteString
getNameBytes ()
 The name of this job.
abstract Map<Integer, String>
abstract int
getTasksCount ()
 Mapping from task ID to "hostname:port" string.
abstract Map<Integer, String>
getTasksMap ()
 Mapping from task ID to "hostname:port" string.
abstract String
getTasksOrDefault (int key, String defaultValue)
 Mapping from task ID to "hostname:port" string.
abstract String
getTasksOrThrow (int key)
 Mapping from task ID to "hostname:port" string.

Public Methods

public abstract boolean containsTasks (int key)

 Mapping from task ID to "hostname:port" string.
 If the `name` field contains "worker", and the `tasks` map contains a
 mapping from 7 to "example.org:2222", then the device prefix
 "/job:worker/task:7" will be assigned to "example.org:2222".
 
map<int32, string> tasks = 2;

public abstract String getName ()

 The name of this job.
 
string name = 1;

public abstract com.google.protobuf.ByteString getNameBytes ()

 The name of this job.
 
string name = 1;

public abstract Map<Integer, String> getTasks ()

Use getTasksMap() instead.

public abstract int getTasksCount ()

 Mapping from task ID to "hostname:port" string.
 If the `name` field contains "worker", and the `tasks` map contains a
 mapping from 7 to "example.org:2222", then the device prefix
 "/job:worker/task:7" will be assigned to "example.org:2222".
 
map<int32, string> tasks = 2;

public abstract Map<Integer, String> getTasksMap ()

 Mapping from task ID to "hostname:port" string.
 If the `name` field contains "worker", and the `tasks` map contains a
 mapping from 7 to "example.org:2222", then the device prefix
 "/job:worker/task:7" will be assigned to "example.org:2222".
 
map<int32, string> tasks = 2;

public abstract String getTasksOrDefault (int key, String defaultValue)

 Mapping from task ID to "hostname:port" string.
 If the `name` field contains "worker", and the `tasks` map contains a
 mapping from 7 to "example.org:2222", then the device prefix
 "/job:worker/task:7" will be assigned to "example.org:2222".
 
map<int32, string> tasks = 2;

public abstract String getTasksOrThrow (int key)

 Mapping from task ID to "hostname:port" string.
 If the `name` field contains "worker", and the `tasks` map contains a
 mapping from 7 to "example.org:2222", then the device prefix
 "/job:worker/task:7" will be assigned to "example.org:2222".
 
map<int32, string> tasks = 2;