org.tensorflow.distruntime.JobDefOrBuilder Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/cluster.proto
package org.tensorflow.distruntime;
public interface JobDefOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.JobDef)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
*
* The name of this job.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* The name of this job.
*
*
* string name = 1;
*/
org.nd4j.shade.protobuf.ByteString
getNameBytes();
/**
*
* 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;
*/
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);
/**
* Use {@link #getTasksMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getTasks();
/**
*
* 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.util.Map
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);
}