Class ResetRequest.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, ResetRequestOrBuilder
    Enclosing class:
    ResetRequest

    public static final class ResetRequest.Builder
    extends com.google.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 type org.platanios.tensorflow.proto.ResetRequest
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
      • clear

        public ResetRequest.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
      • getDefaultInstanceForType

        public ResetRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ResetRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ResetRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ResetRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
      • setField

        public ResetRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
      • clearField

        public ResetRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
      • clearOneof

        public ResetRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
      • setRepeatedField

        public ResetRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
      • addRepeatedField

        public ResetRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
      • mergeFrom

        public ResetRequest.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResetRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
      • mergeFrom

        public ResetRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResetRequest.Builder>
        Throws:
        java.io.IOException
      • getContainerList

        public com.google.protobuf.ProtocolStringList getContainerList()
         A list of container names, which may be empty.
         If 'container' is not empty, releases resources 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:
        getContainerList in interface ResetRequestOrBuilder
        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 resources 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:
        getContainerCount in interface ResetRequestOrBuilder
        Returns:
        The count of container.
      • getContainer

        public java.lang.String getContainer​(int index)
         A list of container names, which may be empty.
         If 'container' is not empty, releases resources 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:
        getContainer in interface ResetRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The container at the given index.
      • getContainerBytes

        public com.google.protobuf.ByteString getContainerBytes​(int index)
         A list of container names, which may be empty.
         If 'container' is not empty, releases resources 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:
        getContainerBytes in interface ResetRequestOrBuilder
        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,
                                                 java.lang.String value)
         A list of container names, which may be empty.
         If 'container' is not empty, releases resources 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​(java.lang.String value)
         A list of container names, which may be empty.
         If 'container' is not empty, releases resources 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​(java.lang.Iterable<java.lang.String> values)
         A list of container names, which may be empty.
         If 'container' is not empty, releases resources 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 resources 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​(com.google.protobuf.ByteString value)
         A list of container names, which may be empty.
         If 'container' is not empty, releases resources 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 com.google.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:
        getDeviceFiltersList in interface ResetRequestOrBuilder
        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:
        getDeviceFiltersCount in interface ResetRequestOrBuilder
        Returns:
        The count of deviceFilters.
      • getDeviceFilters

        public java.lang.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:
        getDeviceFilters in interface ResetRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The deviceFilters at the given index.
      • getDeviceFiltersBytes

        public com.google.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:
        getDeviceFiltersBytes in interface ResetRequestOrBuilder
        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,
                                                     java.lang.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​(java.lang.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​(java.lang.Iterable<java.lang.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​(com.google.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​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
      • mergeUnknownFields

        public final ResetRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>