Package org.tensorflow.distruntime
Class ResetRequest.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
- org.tensorflow.distruntime.ResetRequest.Builder
-
- All Implemented Interfaces:
Cloneable,org.nd4j.shade.protobuf.Message.Builder,org.nd4j.shade.protobuf.MessageLite.Builder,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder,ResetRequestOrBuilder
- Enclosing class:
- ResetRequest
public static final class ResetRequest.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder> implements ResetRequestOrBuilder
Reset() allows misbehaving or slow sessions to be aborted and closed, and causes their resources eventually to be released. Reset() does not wait for the computations in old sessions to cease; it merely starts the process of tearing them down. However, if a new session is started after a Reset(), the new session is isolated from changes that old sessions (started prior to the Reset()) may continue to make to resources, provided all those resources are in containers listed in "containers". Old sessions may continue to have side-effects on resources not in containers listed in "containers", and thus may affect future sessions' results in ways that are hard to predict. Thus, if well-defined behavior is desired, is it recommended that all containers be listed in "containers". Similarly, if a device_filter is specified, results may be hard to predict.
Protobuf typetensorflow.ResetRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResetRequest.BuilderaddAllContainer(Iterable<String> values)A list of container names, which may be empty.ResetRequest.BuilderaddAllDeviceFilters(Iterable<String> values)When any filters are present, only devices that match the filters will be reset.ResetRequest.BuilderaddContainer(String value)A list of container names, which may be empty.ResetRequest.BuilderaddContainerBytes(org.nd4j.shade.protobuf.ByteString value)A list of container names, which may be empty.ResetRequest.BuilderaddDeviceFilters(String value)When any filters are present, only devices that match the filters will be reset.ResetRequest.BuilderaddDeviceFiltersBytes(org.nd4j.shade.protobuf.ByteString value)When any filters are present, only devices that match the filters will be reset.ResetRequest.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)ResetRequestbuild()ResetRequestbuildPartial()ResetRequest.Builderclear()ResetRequest.BuilderclearContainer()A list of container names, which may be empty.ResetRequest.BuilderclearDeviceFilters()When any filters are present, only devices that match the filters will be reset.ResetRequest.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)ResetRequest.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)ResetRequest.Builderclone()StringgetContainer(int index)A list of container names, which may be empty.org.nd4j.shade.protobuf.ByteStringgetContainerBytes(int index)A list of container names, which may be empty.intgetContainerCount()A list of container names, which may be empty.org.nd4j.shade.protobuf.ProtocolStringListgetContainerList()A list of container names, which may be empty.ResetRequestgetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDeviceFilters(int index)When any filters are present, only devices that match the filters will be reset.org.nd4j.shade.protobuf.ByteStringgetDeviceFiltersBytes(int index)When any filters are present, only devices that match the filters will be reset.intgetDeviceFiltersCount()When any filters are present, only devices that match the filters will be reset.org.nd4j.shade.protobuf.ProtocolStringListgetDeviceFiltersList()When any filters are present, only devices that match the filters will be reset.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ResetRequest.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)ResetRequest.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)ResetRequest.BuildermergeFrom(ResetRequest other)ResetRequest.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)ResetRequest.BuildersetContainer(int index, String value)A list of container names, which may be empty.ResetRequest.BuildersetDeviceFilters(int index, String value)When any filters are present, only devices that match the filters will be reset.ResetRequest.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)ResetRequest.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ResetRequest.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
clear
public ResetRequest.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
getDefaultInstanceForType
public ResetRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public ResetRequest build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public ResetRequest buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public ResetRequest.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
setField
public ResetRequest.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
clearField
public ResetRequest.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
clearOneof
public ResetRequest.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
setRepeatedField
public ResetRequest.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
addRepeatedField
public ResetRequest.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
mergeFrom
public ResetRequest.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<ResetRequest.Builder>
-
mergeFrom
public ResetRequest.Builder mergeFrom(ResetRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
mergeFrom
public ResetRequest.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<ResetRequest.Builder>- Throws:
IOException
-
getContainerList
public org.nd4j.shade.protobuf.ProtocolStringList getContainerList()
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;- Specified by:
getContainerListin interfaceResetRequestOrBuilder- Returns:
- A list containing the container.
-
getContainerCount
public int getContainerCount()
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;- Specified by:
getContainerCountin interfaceResetRequestOrBuilder- Returns:
- The count of container.
-
getContainer
public String getContainer(int index)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;- Specified by:
getContainerin interfaceResetRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The container at the given index.
-
getContainerBytes
public org.nd4j.shade.protobuf.ByteString getContainerBytes(int index)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;- Specified by:
getContainerBytesin interfaceResetRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the container at the given index.
-
setContainer
public ResetRequest.Builder setContainer(int index, String value)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;- Parameters:
index- The index to set the value at.value- The container to set.- Returns:
- This builder for chaining.
-
addContainer
public ResetRequest.Builder addContainer(String value)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;- Parameters:
value- The container to add.- Returns:
- This builder for chaining.
-
addAllContainer
public ResetRequest.Builder addAllContainer(Iterable<String> values)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;- Parameters:
values- The container to add.- Returns:
- This builder for chaining.
-
clearContainer
public ResetRequest.Builder clearContainer()
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;- Returns:
- This builder for chaining.
-
addContainerBytes
public ResetRequest.Builder addContainerBytes(org.nd4j.shade.protobuf.ByteString value)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;- Parameters:
value- The bytes of the container to add.- Returns:
- This builder for chaining.
-
getDeviceFiltersList
public org.nd4j.shade.protobuf.ProtocolStringList getDeviceFiltersList()
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;- Specified by:
getDeviceFiltersListin interfaceResetRequestOrBuilder- Returns:
- A list containing the deviceFilters.
-
getDeviceFiltersCount
public int getDeviceFiltersCount()
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;- Specified by:
getDeviceFiltersCountin interfaceResetRequestOrBuilder- Returns:
- The count of deviceFilters.
-
getDeviceFilters
public String getDeviceFilters(int index)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;- Specified by:
getDeviceFiltersin interfaceResetRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The deviceFilters at the given index.
-
getDeviceFiltersBytes
public org.nd4j.shade.protobuf.ByteString getDeviceFiltersBytes(int index)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;- Specified by:
getDeviceFiltersBytesin interfaceResetRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the deviceFilters at the given index.
-
setDeviceFilters
public ResetRequest.Builder setDeviceFilters(int index, String value)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;- Parameters:
index- The index to set the value at.value- The deviceFilters to set.- Returns:
- This builder for chaining.
-
addDeviceFilters
public ResetRequest.Builder addDeviceFilters(String value)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;- Parameters:
value- The deviceFilters to add.- Returns:
- This builder for chaining.
-
addAllDeviceFilters
public ResetRequest.Builder addAllDeviceFilters(Iterable<String> values)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;- Parameters:
values- The deviceFilters to add.- Returns:
- This builder for chaining.
-
clearDeviceFilters
public ResetRequest.Builder clearDeviceFilters()
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;- Returns:
- This builder for chaining.
-
addDeviceFiltersBytes
public ResetRequest.Builder addDeviceFiltersBytes(org.nd4j.shade.protobuf.ByteString value)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;- Parameters:
value- The bytes of the deviceFilters to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ResetRequest.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
mergeUnknownFields
public final ResetRequest.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
-
-