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, 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 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.Builder
clear
in interface com.github.os72.protobuf351.MessageLite.Builder
clear
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.Builder
getDescriptorForType
in interface com.github.os72.protobuf351.MessageOrBuilder
getDescriptorForType
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>
public JobDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.github.os72.protobuf351.MessageOrBuilder
public JobDef build()
build
in interface com.github.os72.protobuf351.Message.Builder
build
in interface com.github.os72.protobuf351.MessageLite.Builder
public JobDef buildPartial()
buildPartial
in interface com.github.os72.protobuf351.Message.Builder
buildPartial
in interface com.github.os72.protobuf351.MessageLite.Builder
public JobDef.Builder clone()
clone
in interface com.github.os72.protobuf351.Message.Builder
clone
in interface com.github.os72.protobuf351.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.github.os72.protobuf351.MessageLite.Builder
mergeFrom
in class com.github.os72.protobuf351.AbstractMessage.Builder<JobDef.Builder>
IOException
public String getName()
The name of this job.
string name = 1;
getName
in interface JobDefOrBuilder
public com.github.os72.protobuf351.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(com.github.os72.protobuf351.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(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.github.os72.protobuf351.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<JobDef.Builder>
Copyright © 2019. All rights reserved.