Class JobDef.Builder
java.lang.Object
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, JobDefOrBuilder
- Enclosing class:
JobDef
public static final class JobDef.Builder
extends GeneratedMessage.Builder<JobDef.Builder>
implements JobDefOrBuilder
Defines a single job in a TensorFlow cluster.Protobuf type
tensorflow.JobDef-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The name of this job.booleancontainsTasks(int key) Mapping from task ID to "hostname:port" string.static final Descriptors.DescriptorDeprecated.getName()The name of this job.The name of this job.getTasks()Deprecated.intMapping from task ID to "hostname:port" string.Mapping from task ID to "hostname:port" string.getTasksOrDefault(int key, String defaultValue) Mapping from task ID to "hostname:port" string.getTasksOrThrow(int key) Mapping from task ID to "hostname:port" string.protected GeneratedMessage.FieldAccessorTableprotected MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) putAllTasks(Map<Integer, String> values) Mapping from task ID to "hostname:port" string.Mapping from task ID to "hostname:port" string.removeTasks(int key) Mapping from task ID to "hostname:port" string.The name of this job.setNameBytes(ByteString value) The name of this job.Methods inherited from class GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
-
Method Details
-
getDescriptor
-
internalGetMapFieldReflection
- Overrides:
internalGetMapFieldReflectionin classGeneratedMessage.Builder<JobDef.Builder>
-
internalGetMutableMapFieldReflection
- Overrides:
internalGetMutableMapFieldReflectionin classGeneratedMessage.Builder<JobDef.Builder>
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessage.Builder<JobDef.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<JobDef.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<JobDef.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<JobDef.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<JobDef.Builder>
-
mergeFrom
public JobDef.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<JobDef.Builder>- Throws:
IOException
-
getName
The name of this job.
string name = 1;- Specified by:
getNamein interfaceJobDefOrBuilder- Returns:
- The name.
-
getNameBytes
The name of this job.
string name = 1;- Specified by:
getNameBytesin interfaceJobDefOrBuilder- Returns:
- The bytes for name.
-
setName
The name of this job.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of this job.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of this job.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTasksCount
public int getTasksCount()Description copied from interface:JobDefOrBuilderMapping 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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2;- Specified by:
getTasksCountin interfaceJobDefOrBuilder
-
containsTasks
public 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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2;- Specified by:
containsTasksin interfaceJobDefOrBuilder
-
getTasks
-
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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2;- Specified by:
getTasksMapin interfaceJobDefOrBuilder
-
getTasksOrDefault
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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2;- Specified by:
getTasksOrDefaultin interfaceJobDefOrBuilder
-
getTasksOrThrow
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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2;- Specified by:
getTasksOrThrowin interfaceJobDefOrBuilder
-
clearTasks
-
removeTasks
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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2; -
getMutableTasks
Deprecated.Use alternate mutation accessors instead. -
putTasks
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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2; -
putAllTasks
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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2;
-