public static final class JobDef.Builder extends com.github.os72.protobuf351.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(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
Object value) |
JobDef |
build() |
JobDef |
buildPartial() |
JobDef.Builder |
clear() |
JobDef.Builder |
clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field) |
JobDef.Builder |
clearName()
The name of this job.
|
JobDef.Builder |
clearOneof(com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) |
JobDef.Builder |
clearTasks() |
JobDef.Builder |
clone() |
boolean |
containsTasks(int key)
Mapping from task ID to "hostname:port" string.
|
JobDef |
getDefaultInstanceForType() |
static com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptor() |
com.github.os72.protobuf351.Descriptors.Descriptor |
getDescriptorForType() |
Map<Integer,String> |
getMutableTasks()
Deprecated.
|
String |
getName()
The name of this job.
|
com.github.os72.protobuf351.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 com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.github.os72.protobuf351.MapField |
internalGetMapField(int number) |
protected com.github.os72.protobuf351.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
JobDef.Builder |
mergeFrom(com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) |
JobDef.Builder |
mergeFrom(JobDef other) |
JobDef.Builder |
mergeFrom(com.github.os72.protobuf351.Message other) |
JobDef.Builder |
mergeUnknownFields(com.github.os72.protobuf351.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(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
Object value) |
JobDef.Builder |
setName(String value)
The name of this job.
|
JobDef.Builder |
setNameBytes(com.github.os72.protobuf351.ByteString value)
The name of this job.
|
JobDef.Builder |
setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index,
Object value) |
JobDef.Builder |
setUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor()
protected com.github.os72.protobuf351.MapField internalGetMapField(int number)
internalGetMapField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>protected com.github.os72.protobuf351.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>public JobDef.Builder clear()
clear in interface com.github.os72.protobuf351.Message.Builderclear in interface com.github.os72.protobuf351.MessageLite.Builderclear in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.github.os72.protobuf351.Message.BuildergetDescriptorForType in interface com.github.os72.protobuf351.MessageOrBuildergetDescriptorForType in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>public JobDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.github.os72.protobuf351.MessageLiteOrBuildergetDefaultInstanceForType in interface com.github.os72.protobuf351.MessageOrBuilderpublic JobDef build()
build in interface com.github.os72.protobuf351.Message.Builderbuild in interface com.github.os72.protobuf351.MessageLite.Builderpublic JobDef buildPartial()
buildPartial in interface com.github.os72.protobuf351.Message.BuilderbuildPartial in interface com.github.os72.protobuf351.MessageLite.Builderpublic JobDef.Builder clone()
clone in interface com.github.os72.protobuf351.Message.Builderclone in interface com.github.os72.protobuf351.MessageLite.Builderclone in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>public JobDef.Builder setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
setField in interface com.github.os72.protobuf351.Message.BuildersetField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>public JobDef.Builder clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field)
clearField in interface com.github.os72.protobuf351.Message.BuilderclearField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>public JobDef.Builder clearOneof(com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.github.os72.protobuf351.Message.BuilderclearOneof in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>public JobDef.Builder setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.github.os72.protobuf351.Message.BuildersetRepeatedField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>public JobDef.Builder addRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.github.os72.protobuf351.Message.BuilderaddRepeatedField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>public JobDef.Builder mergeFrom(com.github.os72.protobuf351.Message other)
mergeFrom in interface com.github.os72.protobuf351.Message.BuildermergeFrom in class com.github.os72.protobuf351.AbstractMessage.Builder<JobDef.Builder>public JobDef.Builder mergeFrom(JobDef other)
public final boolean isInitialized()
isInitialized in interface com.github.os72.protobuf351.MessageLiteOrBuilderisInitialized in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>public JobDef.Builder mergeFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.github.os72.protobuf351.Message.BuildermergeFrom in interface com.github.os72.protobuf351.MessageLite.BuildermergeFrom in class com.github.os72.protobuf351.AbstractMessage.Builder<JobDef.Builder>IOExceptionpublic String getName()
The name of this job.
string name = 1;getName in interface JobDefOrBuilderpublic com.github.os72.protobuf351.ByteString getNameBytes()
The name of this job.
string name = 1;getNameBytes in interface JobDefOrBuilderpublic 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(com.github.os72.protobuf351.ByteString value)
The name of this job.
string name = 1;public int getTasksCount()
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".
map<int32, string> tasks = 2;getTasksCount in interface JobDefOrBuilderpublic 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 JobDefOrBuilderpublic 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 JobDefOrBuilderpublic 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 JobDefOrBuilderpublic 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 JobDefOrBuilderpublic 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(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
setUnknownFields in interface com.github.os72.protobuf351.Message.BuildersetUnknownFields in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>public final JobDef.Builder mergeUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.github.os72.protobuf351.Message.BuildermergeUnknownFields in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>Copyright © 2018. All rights reserved.