Class ThreadPoolOptionProto.Builder

    • 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<ThreadPoolOptionProto.Builder>
      • clear

        public ThreadPoolOptionProto.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<ThreadPoolOptionProto.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<ThreadPoolOptionProto.Builder>
      • getDefaultInstanceForType

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

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

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

        public ThreadPoolOptionProto.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<ThreadPoolOptionProto.Builder>
      • setField

        public ThreadPoolOptionProto.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<ThreadPoolOptionProto.Builder>
      • clearField

        public ThreadPoolOptionProto.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<ThreadPoolOptionProto.Builder>
      • clearOneof

        public ThreadPoolOptionProto.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<ThreadPoolOptionProto.Builder>
      • setRepeatedField

        public ThreadPoolOptionProto.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<ThreadPoolOptionProto.Builder>
      • addRepeatedField

        public ThreadPoolOptionProto.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<ThreadPoolOptionProto.Builder>
      • isInitialized

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

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

        public final ThreadPoolOptionProto.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<ThreadPoolOptionProto.Builder>