Class ThreadPoolOptionProto.Builder

    • Method Detail

      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
      • clear

        public ThreadPoolOptionProto.Builder clear()
        Specified by:
        clear in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clear in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
      • getDescriptorForType

        public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
      • getDefaultInstanceForType

        public ThreadPoolOptionProto getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
      • build

        public ThreadPoolOptionProto build()
        Specified by:
        build in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        build in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • buildPartial

        public ThreadPoolOptionProto buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • clone

        public ThreadPoolOptionProto.Builder clone()
        Specified by:
        clone in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clone in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
      • setField

        public ThreadPoolOptionProto.Builder setField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        setField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
      • clearField

        public ThreadPoolOptionProto.Builder clearField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
      • clearOneof

        public ThreadPoolOptionProto.Builder clearOneof​(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
      • setRepeatedField

        public ThreadPoolOptionProto.Builder setRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
      • addRepeatedField

        public ThreadPoolOptionProto.Builder addRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
      • mergeFrom

        public ThreadPoolOptionProto.Builder mergeFrom​(org.nd4j.shade.protobuf.Message other)
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<ThreadPoolOptionProto.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
      • mergeFrom

        public ThreadPoolOptionProto.Builder mergeFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                                       org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws IOException
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<ThreadPoolOptionProto.Builder>
        Throws:
        IOException
      • getNumThreads

        public int getNumThreads()
         The number of threads in the pool.
         0 means the system picks a value based on where this option proto is used
         (see the declaration of the specific field for more info).
         
        int32 num_threads = 1;
        Specified by:
        getNumThreads in interface ThreadPoolOptionProtoOrBuilder
        Returns:
        The numThreads.
      • setNumThreads

        public ThreadPoolOptionProto.Builder setNumThreads​(int value)
         The number of threads in the pool.
         0 means the system picks a value based on where this option proto is used
         (see the declaration of the specific field for more info).
         
        int32 num_threads = 1;
        Parameters:
        value - The numThreads to set.
        Returns:
        This builder for chaining.
      • clearNumThreads

        public ThreadPoolOptionProto.Builder clearNumThreads()
         The number of threads in the pool.
         0 means the system picks a value based on where this option proto is used
         (see the declaration of the specific field for more info).
         
        int32 num_threads = 1;
        Returns:
        This builder for chaining.
      • getGlobalName

        public String getGlobalName()
         The global name of the threadpool.
         If empty, then the threadpool is made and used according to the scope it's
         in - e.g., for a session threadpool, it is used by that session only.
         If non-empty, then:
         - a global threadpool associated with this name is looked
           up or created. This allows, for example, sharing one threadpool across
           many sessions (e.g., like the default behavior, if
           inter_op_parallelism_threads is not configured), but still partitioning
           into a large and small pool.
         - if the threadpool for this global_name already exists, then it is an
           error if the existing pool was created using a different num_threads
           value as is specified on this call.
         - threadpools created this way are never garbage collected.
         
        string global_name = 2;
        Specified by:
        getGlobalName in interface ThreadPoolOptionProtoOrBuilder
        Returns:
        The globalName.
      • getGlobalNameBytes

        public org.nd4j.shade.protobuf.ByteString getGlobalNameBytes()
         The global name of the threadpool.
         If empty, then the threadpool is made and used according to the scope it's
         in - e.g., for a session threadpool, it is used by that session only.
         If non-empty, then:
         - a global threadpool associated with this name is looked
           up or created. This allows, for example, sharing one threadpool across
           many sessions (e.g., like the default behavior, if
           inter_op_parallelism_threads is not configured), but still partitioning
           into a large and small pool.
         - if the threadpool for this global_name already exists, then it is an
           error if the existing pool was created using a different num_threads
           value as is specified on this call.
         - threadpools created this way are never garbage collected.
         
        string global_name = 2;
        Specified by:
        getGlobalNameBytes in interface ThreadPoolOptionProtoOrBuilder
        Returns:
        The bytes for globalName.
      • setGlobalName

        public ThreadPoolOptionProto.Builder setGlobalName​(String value)
         The global name of the threadpool.
         If empty, then the threadpool is made and used according to the scope it's
         in - e.g., for a session threadpool, it is used by that session only.
         If non-empty, then:
         - a global threadpool associated with this name is looked
           up or created. This allows, for example, sharing one threadpool across
           many sessions (e.g., like the default behavior, if
           inter_op_parallelism_threads is not configured), but still partitioning
           into a large and small pool.
         - if the threadpool for this global_name already exists, then it is an
           error if the existing pool was created using a different num_threads
           value as is specified on this call.
         - threadpools created this way are never garbage collected.
         
        string global_name = 2;
        Parameters:
        value - The globalName to set.
        Returns:
        This builder for chaining.
      • clearGlobalName

        public ThreadPoolOptionProto.Builder clearGlobalName()
         The global name of the threadpool.
         If empty, then the threadpool is made and used according to the scope it's
         in - e.g., for a session threadpool, it is used by that session only.
         If non-empty, then:
         - a global threadpool associated with this name is looked
           up or created. This allows, for example, sharing one threadpool across
           many sessions (e.g., like the default behavior, if
           inter_op_parallelism_threads is not configured), but still partitioning
           into a large and small pool.
         - if the threadpool for this global_name already exists, then it is an
           error if the existing pool was created using a different num_threads
           value as is specified on this call.
         - threadpools created this way are never garbage collected.
         
        string global_name = 2;
        Returns:
        This builder for chaining.
      • setGlobalNameBytes

        public ThreadPoolOptionProto.Builder setGlobalNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         The global name of the threadpool.
         If empty, then the threadpool is made and used according to the scope it's
         in - e.g., for a session threadpool, it is used by that session only.
         If non-empty, then:
         - a global threadpool associated with this name is looked
           up or created. This allows, for example, sharing one threadpool across
           many sessions (e.g., like the default behavior, if
           inter_op_parallelism_threads is not configured), but still partitioning
           into a large and small pool.
         - if the threadpool for this global_name already exists, then it is an
           error if the existing pool was created using a different num_threads
           value as is specified on this call.
         - threadpools created this way are never garbage collected.
         
        string global_name = 2;
        Parameters:
        value - The bytes for globalName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ThreadPoolOptionProto.Builder setUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
      • mergeUnknownFields

        public final ThreadPoolOptionProto.Builder mergeUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>