org.tensorflow.distruntime.JobDefOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto Show documentation
Show all versions of proto Show documentation
Java API for TensorFlow protocol buffers.
// 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)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of this job.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* The name of this job.
*
*
* string name = 1;
*/
com.google.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);
}