public static final class JobDef.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder> implements JobDefOrBuilder
Defines a single job in a TensorFlow cluster.Protobuf type
tensorflow.JobDef
Modifier and Type | Method and Description |
---|---|
JobDef.Builder |
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
Object value) |
JobDef |
build() |
JobDef |
buildPartial() |
JobDef.Builder |
clear() |
JobDef.Builder |
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) |
JobDef.Builder |
clearName()
The name of this job.
|
JobDef.Builder |
clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) |
JobDef.Builder |
clearTasks() |
JobDef.Builder |
clone() |
boolean |
containsTasks(int key)
Mapping from task ID to "hostname:port" string.
|
JobDef |
getDefaultInstanceForType() |
static org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptor() |
org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<Integer,String> |
getMutableTasks()
Deprecated.
|
String |
getName()
The name of this job.
|
org.nd4j.shade.protobuf.ByteString |
getNameBytes()
The name of this job.
|
Map<Integer,String> |
getTasks()
Deprecated.
|
int |
getTasksCount()
Mapping from task ID to "hostname:port" string.
|
Map<Integer,String> |
getTasksMap()
Mapping from task ID to "hostname:port" string.
|
String |
getTasksOrDefault(int key,
String defaultValue)
Mapping from task ID to "hostname:port" string.
|
String |
getTasksOrThrow(int key)
Mapping from task ID to "hostname:port" string.
|
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected org.nd4j.shade.protobuf.MapField |
internalGetMapField(int number) |
protected org.nd4j.shade.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
JobDef.Builder |
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
JobDef.Builder |
mergeFrom(JobDef other) |
JobDef.Builder |
mergeFrom(org.nd4j.shade.protobuf.Message other) |
JobDef.Builder |
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) |
JobDef.Builder |
putAllTasks(Map<Integer,String> values)
Mapping from task ID to "hostname:port" string.
|
JobDef.Builder |
putTasks(int key,
String value)
Mapping from task ID to "hostname:port" string.
|
JobDef.Builder |
removeTasks(int key)
Mapping from task ID to "hostname:port" string.
|
JobDef.Builder |
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
Object value) |
JobDef.Builder |
setName(String value)
The name of this job.
|
JobDef.Builder |
setNameBytes(org.nd4j.shade.protobuf.ByteString value)
The name of this job.
|
JobDef.Builder |
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
JobDef.Builder |
setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
protected org.nd4j.shade.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
public JobDef.Builder clear()
clear
in interface org.nd4j.shade.protobuf.Message.Builder
clear
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clear
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface org.nd4j.shade.protobuf.Message.Builder
getDescriptorForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
getDescriptorForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
public JobDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
public JobDef build()
build
in interface org.nd4j.shade.protobuf.Message.Builder
build
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public JobDef buildPartial()
buildPartial
in interface org.nd4j.shade.protobuf.Message.Builder
buildPartial
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public JobDef.Builder clone()
clone
in interface org.nd4j.shade.protobuf.Message.Builder
clone
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clone
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
public JobDef.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface org.nd4j.shade.protobuf.Message.Builder
setField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
public JobDef.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface org.nd4j.shade.protobuf.Message.Builder
clearField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
public JobDef.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface org.nd4j.shade.protobuf.Message.Builder
clearOneof
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
public JobDef.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
setRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
public JobDef.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
addRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
public JobDef.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<JobDef.Builder>
public JobDef.Builder mergeFrom(JobDef other)
public final boolean isInitialized()
isInitialized
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
isInitialized
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
public JobDef.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in interface org.nd4j.shade.protobuf.MessageLite.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<JobDef.Builder>
IOException
public String getName()
The name of this job.
string name = 1;
getName
in interface JobDefOrBuilder
public org.nd4j.shade.protobuf.ByteString getNameBytes()
The name of this job.
string name = 1;
getNameBytes
in interface JobDefOrBuilder
public JobDef.Builder setName(String value)
The name of this job.
string name = 1;
public JobDef.Builder clearName()
The name of this job.
string name = 1;
public JobDef.Builder setNameBytes(org.nd4j.shade.protobuf.ByteString value)
The name of this job.
string name = 1;
public int getTasksCount()
JobDefOrBuilder
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;
getTasksCount
in interface JobDefOrBuilder
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".
map<int32, string> tasks = 2;
containsTasks
in interface JobDefOrBuilder
@Deprecated public Map<Integer,String> getTasks()
getTasksMap()
instead.getTasks
in interface JobDefOrBuilder
public Map<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;
getTasksMap
in interface JobDefOrBuilder
public String getTasksOrDefault(int key, 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;
getTasksOrDefault
in interface JobDefOrBuilder
public 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;
getTasksOrThrow
in interface JobDefOrBuilder
public JobDef.Builder clearTasks()
public JobDef.Builder removeTasks(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;
@Deprecated public Map<Integer,String> getMutableTasks()
public JobDef.Builder putTasks(int key, String value)
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;
public JobDef.Builder putAllTasks(Map<Integer,String> values)
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;
public final JobDef.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
setUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
public final JobDef.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
mergeUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<JobDef.Builder>
Copyright © 2020. All rights reserved.