Interface JobDefOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
JobDef, JobDef.Builder

public interface JobDefOrBuilder
extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type Method 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.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getName

      java.lang.String getName()
       The name of this job.
       
      string name = 1;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       The name of this job.
       
      string name = 1;
      Returns:
      The bytes for name.
    • getTasksCount

      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;
    • containsTasks

      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;
    • getTasks

      @Deprecated java.util.Map<java.lang.Integer,​java.lang.String> getTasks()
      Deprecated.
      Use getTasksMap() instead.
    • getTasksMap

      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;
    • getTasksOrDefault

      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;
    • getTasksOrThrow

      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;