public interface JobDefOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsTasks(int key)
Mapping from task ID to "hostname:port" string.
|
java.lang.String |
getName()
The name of this job.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of this job.
|
java.util.Map<java.lang.Integer,java.lang.String> |
getTasks()
Deprecated.
|
int |
getTasksCount()
Mapping from task ID to "hostname:port" string.
|
java.util.Map<java.lang.Integer,java.lang.String> |
getTasksMap()
Mapping from task ID to "hostname:port" string.
|
java.lang.String |
getTasksOrDefault(int key,
java.lang.String defaultValue)
Mapping from task ID to "hostname:port" string.
|
java.lang.String |
getTasksOrThrow(int key)
Mapping from task ID to "hostname:port" string.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofjava.lang.String getName()
The name of this job.
string name = 1;com.google.protobuf.ByteString getNameBytes()
The name of this job.
string name = 1;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;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;@Deprecated java.util.Map<java.lang.Integer,java.lang.String> getTasks()
getTasksMap() instead.java.util.Map<java.lang.Integer,java.lang.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;java.lang.String getTasksOrDefault(int key,
java.lang.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;java.lang.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;