public static final class
JobDef.Builder
Defines a single job in a TensorFlow cluster.
tensorflow.JobDef
Public Methods
JobDef.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
JobDef |
build()
|
JobDef | |
JobDef.Builder |
clear()
|
JobDef.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
JobDef.Builder |
clearName()
The name of this job. |
JobDef.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
JobDef.Builder | |
JobDef.Builder |
clone()
|
boolean |
containsTasks(int key)
Mapping from task ID to "hostname:port" string. |
JobDef | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
Map<Integer, String> |
getMutableTasks()
Use alternate mutation accessors instead.
|
String |
getName()
The name of this job. |
com.google.protobuf.ByteString |
getNameBytes()
The name of this job. |
Map<Integer, String> |
getTasks()
Use
getTasksMap() instead. |
int |
getTasksCount()
Mapping from task ID to "hostname:port" string. |
Map<Integer, String> |
getTasksMap()
Mapping from task ID to "hostname:port" string. |
String |
getTasksOrDefault(int key, String defaultValue)
Mapping from task ID to "hostname:port" string. |
String |
getTasksOrThrow(int key)
Mapping from task ID to "hostname:port" string. |
final boolean | |
JobDef.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
JobDef.Builder |
mergeFrom(com.google.protobuf.Message other)
|
final JobDef.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
JobDef.Builder |
putAllTasks(Map<Integer, String> values)
Mapping from task ID to "hostname:port" string. |
JobDef.Builder |
putTasks(int key, String value)
Mapping from task ID to "hostname:port" string. |
JobDef.Builder |
removeTasks(int key)
Mapping from task ID to "hostname:port" string. |
JobDef.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
JobDef.Builder |
setName(String value)
The name of this job. |
JobDef.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of this job. |
JobDef.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
final JobDef.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
Inherited Methods
Public Methods
public JobDef.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public 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 static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public Map<Integer, String> getMutableTasks ()
Use alternate mutation accessors instead.
public String getName ()
The name of this job.
string name = 1;
public com.google.protobuf.ByteString getNameBytes ()
The name of this job.
string name = 1;
public 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 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 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 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;
public final boolean isInitialized ()
public JobDef.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public JobDef.Builder putAllTasks (Map<Integer, String> values)
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 JobDef.Builder putTasks (int key, String value)
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 JobDef.Builder removeTasks (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 JobDef.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public JobDef.Builder setNameBytes (com.google.protobuf.ByteString value)
The name of this job.
string name = 1;