JobDef

public final class JobDef

 Defines a single job in a TensorFlow cluster.
 
Protobuf type tensorflow.JobDef

Nested Classes

class JobDef.Builder
 Defines a single job in a TensorFlow cluster. 

Constants

int NAME_FIELD_NUMBER
int TASKS_FIELD_NUMBER

Public Methods

boolean
containsTasks(int key)
 Mapping from task ID to "hostname:port" string.
boolean
equals(Object obj)
static JobDef
JobDef
final static com.google.protobuf.Descriptors.Descriptor
String
getName()
 The name of this job.
com.google.protobuf.ByteString
getNameBytes()
 The name of this job.
int
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 com.google.protobuf.UnknownFieldSet
int
final boolean
static JobDef.Builder
newBuilder(JobDef prototype)
static JobDef.Builder
JobDef.Builder
static JobDef
parseDelimitedFrom(InputStream input)
static JobDef
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static JobDef
parseFrom(ByteBuffer data)
static JobDef
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static JobDef
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static JobDef
parseFrom(com.google.protobuf.CodedInputStream input)
static JobDef
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static JobDef
parseFrom(com.google.protobuf.ByteString data)
static JobDef
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static JobDef
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
parser()
JobDef.Builder
void
writeTo(com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int NAME_FIELD_NUMBER

Constant Value: 1

public static final int TASKS_FIELD_NUMBER

Constant Value: 2

Public Methods

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 boolean equals (Object obj)

public static JobDef getDefaultInstance ()

public JobDef getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

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 getParserForType ()

public int getSerializedSize ()

public Map<Integer, String> getTasks ()

Use getTasksMap() instead.

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 com.google.protobuf.UnknownFieldSet getUnknownFields ()

public int hashCode ()

public final boolean isInitialized ()

public static JobDef.Builder newBuilder (JobDef prototype)

public static JobDef.Builder newBuilder ()

public JobDef.Builder newBuilderForType ()

public static JobDef parseDelimitedFrom (InputStream input)

Throws
IOException

public static JobDef parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static JobDef parseFrom (ByteBuffer data)

Throws
InvalidProtocolBufferException

public static JobDef parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static JobDef parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static JobDef parseFrom (com.google.protobuf.CodedInputStream input)

Throws
IOException

public static JobDef parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static JobDef parseFrom (com.google.protobuf.ByteString data)

Throws
InvalidProtocolBufferException

public static JobDef parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static JobDef parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static parser ()

public JobDef.Builder toBuilder ()

public void writeTo (com.google.protobuf.CodedOutputStream output)

Throws
IOException