JobDefOrBuilder
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คลาสย่อยทางอ้อมที่รู้จัก จ็อบดีฟ |
Defines a single job in a TensorFlow cluster. | JobDef.Builder |
Defines a single job in a TensorFlow cluster. |
|
วิธีการสาธารณะ
บูลีนนามธรรม | hasTasks (คีย์ int)
Mapping from task ID to "hostname:port" string. |
สตริงที่เป็นนามธรรม | |
นามธรรม com.google.protobuf.ByteString | |
แผนที่นามธรรม <จำนวนเต็ม สตริง> | |
บทคัดย่อ | |
แผนที่นามธรรม <จำนวนเต็ม สตริง> | getTasksMap ()
Mapping from task ID to "hostname:port" string. |
สตริงที่เป็นนามธรรม | getTasksOrDefault (คีย์ int, สตริง defaultValue)
Mapping from task ID to "hostname:port" string. |
สตริงที่เป็นนามธรรม | |
วิธีการสาธารณะ
บูลีนนามธรรมสาธารณะ containsTasks (คีย์ 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;
สตริงนามธรรมสาธารณะ getName ()
The name of this job.
string name = 1;
นามธรรมสาธารณะ com.google.protobuf.ByteString getNameBytes ()
The name of this job.
string name = 1;
แผนที่นามธรรมสาธารณะ <Integer, String> getTasks ()
บทคัดย่อสาธารณะ 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;
แผนที่นามธรรมสาธารณะ <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;
สตริงนามธรรมสาธารณะ getTasksOrDefault (คีย์ 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;
สตริงนามธรรมสาธารณะ getTasksOrThrow (คีย์ 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;
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 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"]]