Package org.platanios.tensorflow.proto
Class ThreadPoolOptionProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
-
- org.platanios.tensorflow.proto.ThreadPoolOptionProto.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
,ThreadPoolOptionProtoOrBuilder
- Enclosing class:
- ThreadPoolOptionProto
public static final class ThreadPoolOptionProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder> implements ThreadPoolOptionProtoOrBuilder
Protobuf typeorg.platanios.tensorflow.proto.ThreadPoolOptionProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreadPoolOptionProto.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ThreadPoolOptionProto
build()
ThreadPoolOptionProto
buildPartial()
ThreadPoolOptionProto.Builder
clear()
ThreadPoolOptionProto.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ThreadPoolOptionProto.Builder
clearGlobalName()
The global name of the threadpool.ThreadPoolOptionProto.Builder
clearNumThreads()
The number of threads in the pool.ThreadPoolOptionProto.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ThreadPoolOptionProto.Builder
clone()
ThreadPoolOptionProto
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getGlobalName()
The global name of the threadpool.com.google.protobuf.ByteString
getGlobalNameBytes()
The global name of the threadpool.int
getNumThreads()
The number of threads in the pool.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ThreadPoolOptionProto.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ThreadPoolOptionProto.Builder
mergeFrom(com.google.protobuf.Message other)
ThreadPoolOptionProto.Builder
mergeFrom(ThreadPoolOptionProto other)
ThreadPoolOptionProto.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ThreadPoolOptionProto.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ThreadPoolOptionProto.Builder
setGlobalName(java.lang.String value)
The global name of the threadpool.ThreadPoolOptionProto.Builder
setGlobalNameBytes(com.google.protobuf.ByteString value)
The global name of the threadpool.ThreadPoolOptionProto.Builder
setNumThreads(int value)
The number of threads in the pool.ThreadPoolOptionProto.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ThreadPoolOptionProto.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.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 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
-
clear
public ThreadPoolOptionProto.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
-
getDefaultInstanceForType
public ThreadPoolOptionProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ThreadPoolOptionProto build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ThreadPoolOptionProto buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ThreadPoolOptionProto.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
-
clearField
public ThreadPoolOptionProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
-
clearOneof
public ThreadPoolOptionProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
-
mergeFrom
public ThreadPoolOptionProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ThreadPoolOptionProto.Builder>
-
mergeFrom
public ThreadPoolOptionProto.Builder mergeFrom(ThreadPoolOptionProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceThreadPoolOptionProtoOrBuilder
- 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 interfaceThreadPoolOptionProtoOrBuilder
- 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 interfaceThreadPoolOptionProtoOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
-
mergeUnknownFields
public final ThreadPoolOptionProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ThreadPoolOptionProto.Builder>
-
-