JobDefOrBuilder
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Subclasses indiretas conhecidas JobDef |
Defines a single job in a TensorFlow cluster. | JobDef.Builder |
Defines a single job in a TensorFlow cluster. |
|
Métodos Públicos
booleano abstrato | contémTasks (chave int)
Mapping from task ID to "hostname:port" string. |
cadeia abstrata | |
abstrato com.google.protobuf.ByteString | |
mapa abstrato<inteiro, string> | |
abstrato int | |
mapa abstrato<inteiro, string> | getTasksMap ()
Mapping from task ID to "hostname:port" string. |
cadeia abstrata | getTasksOrDefault (chave int, String defaultValue)
Mapping from task ID to "hostname:port" string. |
cadeia abstrata | getTasksOrThrow (chave int)
Mapping from task ID to "hostname:port" string. |
Métodos Públicos
público abstrato booleano contémTasks (chave int)
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;
String abstrata pública getName ()
The name of this job.
string name = 1;
resumo público com.google.protobuf.ByteString getNameBytes ()
The name of this job.
string name = 1;
público abstrato Map<Integer, String> getTasks ()
público abstrato 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;
mapa abstrato público<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;
público abstrato String getTasksOrDefault (chave int, 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;
String abstrata pública getTasksOrThrow (chave int)
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;
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-27 UTC.
[null,null,["Última atualização 2025-07-27 UTC."],[],[],null,["# JobDefOrBuilder\n\npublic interface **JobDefOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [JobDef](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef), [JobDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef.Builder) |--------------------------------------------------------------------------------------|--------------------------------------------------------| | [JobDef](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef) | ``` Defines a single job in a TensorFlow cluster. ``` | | [JobDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef.Builder) | ``` Defines a single job in a TensorFlow cluster. ``` | |||\n\n### Public Methods\n\n|-----------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract boolean | [containsTasks](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#containsTasks(int))(int key) ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract String | [getName](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getName())() ``` The name of this job. ``` |\n| abstract com.google.protobuf.ByteString | [getNameBytes](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getNameBytes())() ``` The name of this job. ``` |\n| abstract Map\\\u003cInteger, String\\\u003e | [getTasks](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasks())() Use [getTasksMap()](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksMap()) instead. |\n| abstract int | [getTasksCount](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksCount())() ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract Map\\\u003cInteger, String\\\u003e | [getTasksMap](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksMap())() ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract String | [getTasksOrDefault](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksOrDefault(int, java.lang.String))(int key, String defaultValue) ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract String | [getTasksOrThrow](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksOrThrow(int))(int key) ``` Mapping from task ID to \"hostname:port\" string. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract boolean\n**containsTasks**\n(int key)\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getName**\n()\n\n\u003cbr /\u003e\n\n```\n The name of this job.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n The name of this job.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract Map\\\u003cInteger, String\\\u003e\n**getTasks**\n()\n\nUse [getTasksMap()](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksMap()) instead. \n\n#### public abstract int\n**getTasksCount**\n()\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract Map\\\u003cInteger, String\\\u003e\n**getTasksMap**\n()\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getTasksOrDefault**\n(int key, String defaultValue)\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getTasksOrThrow**\n(int key)\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e"]]