Class CPUInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CPUInfo.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<CPUInfo.Builder>
org.tensorflow.proto.CPUInfo.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, CPUInfoOrBuilder
- Enclosing class:
CPUInfo
public static final class CPUInfo.Builder
extends GeneratedMessageV3.Builder<CPUInfo.Builder>
implements CPUInfoOrBuilder
Protobuf type
tensorflow.CPUInfo-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()What kind of cpu scaling is enabled on the host.Additional cpu information.How fast are these cpus?int64 num_cores = 1;int64 num_cores_allowed = 2;clone()booleancontainsCacheSize(String key) Cache sizes (in bytes), e.g.Deprecated.intCache sizes (in bytes), e.g.Cache sizes (in bytes), e.g.longgetCacheSizeOrDefault(String key, long defaultValue) Cache sizes (in bytes), e.g.longCache sizes (in bytes), e.g.What kind of cpu scaling is enabled on the host.What kind of cpu scaling is enabled on the host.Additional cpu information.Additional cpu information.static final Descriptors.DescriptordoubleHow fast are these cpus?Deprecated.longint64 num_cores = 1;longint64 num_cores_allowed = 2;protected GeneratedMessageV3.FieldAccessorTableprotected MapFieldinternalGetMapField(int number) protected MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) final CPUInfo.BuildermergeUnknownFields(UnknownFieldSet unknownFields) putAllCacheSize(Map<String, Long> values) Cache sizes (in bytes), e.g.putCacheSize(String key, long value) Cache sizes (in bytes), e.g.removeCacheSize(String key) Cache sizes (in bytes), e.g.setCpuGovernor(String value) What kind of cpu scaling is enabled on the host.setCpuGovernorBytes(ByteString value) What kind of cpu scaling is enabled on the host.setCpuInfo(String value) Additional cpu information.setCpuInfoBytes(ByteString value) Additional cpu information.setField(Descriptors.FieldDescriptor field, Object value) setMhzPerCpu(double value) How fast are these cpus?setNumCores(long value) int64 num_cores = 1;setNumCoresAllowed(long value) int64 num_cores_allowed = 2;setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) final CPUInfo.BuildersetUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetMapField
- Overrides:
internalGetMapFieldin classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
internalGetMutableMapField
- Overrides:
internalGetMutableMapFieldin classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
setRepeatedField
- Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<CPUInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
mergeFrom
public CPUInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<CPUInfo.Builder>- Throws:
IOException
-
getNumCores
public long getNumCores()int64 num_cores = 1;- Specified by:
getNumCoresin interfaceCPUInfoOrBuilder- Returns:
- The numCores.
-
setNumCores
int64 num_cores = 1;- Parameters:
value- The numCores to set.- Returns:
- This builder for chaining.
-
clearNumCores
-
getNumCoresAllowed
public long getNumCoresAllowed()int64 num_cores_allowed = 2;- Specified by:
getNumCoresAllowedin interfaceCPUInfoOrBuilder- Returns:
- The numCoresAllowed.
-
setNumCoresAllowed
int64 num_cores_allowed = 2;- Parameters:
value- The numCoresAllowed to set.- Returns:
- This builder for chaining.
-
clearNumCoresAllowed
int64 num_cores_allowed = 2;- Returns:
- This builder for chaining.
-
getMhzPerCpu
public double getMhzPerCpu()How fast are these cpus?
double mhz_per_cpu = 3;- Specified by:
getMhzPerCpuin interfaceCPUInfoOrBuilder- Returns:
- The mhzPerCpu.
-
setMhzPerCpu
How fast are these cpus?
double mhz_per_cpu = 3;- Parameters:
value- The mhzPerCpu to set.- Returns:
- This builder for chaining.
-
clearMhzPerCpu
How fast are these cpus?
double mhz_per_cpu = 3;- Returns:
- This builder for chaining.
-
getCpuInfo
Additional cpu information. For example, Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB
string cpu_info = 4;- Specified by:
getCpuInfoin interfaceCPUInfoOrBuilder- Returns:
- The cpuInfo.
-
getCpuInfoBytes
Additional cpu information. For example, Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB
string cpu_info = 4;- Specified by:
getCpuInfoBytesin interfaceCPUInfoOrBuilder- Returns:
- The bytes for cpuInfo.
-
setCpuInfo
Additional cpu information. For example, Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB
string cpu_info = 4;- Parameters:
value- The cpuInfo to set.- Returns:
- This builder for chaining.
-
clearCpuInfo
Additional cpu information. For example, Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB
string cpu_info = 4;- Returns:
- This builder for chaining.
-
setCpuInfoBytes
Additional cpu information. For example, Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB
string cpu_info = 4;- Parameters:
value- The bytes for cpuInfo to set.- Returns:
- This builder for chaining.
-
getCpuGovernor
What kind of cpu scaling is enabled on the host. Examples include "performance", "ondemand", "conservative", "mixed".
string cpu_governor = 5;- Specified by:
getCpuGovernorin interfaceCPUInfoOrBuilder- Returns:
- The cpuGovernor.
-
getCpuGovernorBytes
What kind of cpu scaling is enabled on the host. Examples include "performance", "ondemand", "conservative", "mixed".
string cpu_governor = 5;- Specified by:
getCpuGovernorBytesin interfaceCPUInfoOrBuilder- Returns:
- The bytes for cpuGovernor.
-
setCpuGovernor
What kind of cpu scaling is enabled on the host. Examples include "performance", "ondemand", "conservative", "mixed".
string cpu_governor = 5;- Parameters:
value- The cpuGovernor to set.- Returns:
- This builder for chaining.
-
clearCpuGovernor
What kind of cpu scaling is enabled on the host. Examples include "performance", "ondemand", "conservative", "mixed".
string cpu_governor = 5;- Returns:
- This builder for chaining.
-
setCpuGovernorBytes
What kind of cpu scaling is enabled on the host. Examples include "performance", "ondemand", "conservative", "mixed".
string cpu_governor = 5;- Parameters:
value- The bytes for cpuGovernor to set.- Returns:
- This builder for chaining.
-
getCacheSizeCount
public int getCacheSizeCount()Description copied from interface:CPUInfoOrBuilderCache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;- Specified by:
getCacheSizeCountin interfaceCPUInfoOrBuilder
-
containsCacheSize
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;- Specified by:
containsCacheSizein interfaceCPUInfoOrBuilder
-
getCacheSize
-
getCacheSizeMap
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;- Specified by:
getCacheSizeMapin interfaceCPUInfoOrBuilder
-
getCacheSizeOrDefault
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;- Specified by:
getCacheSizeOrDefaultin interfaceCPUInfoOrBuilder
-
getCacheSizeOrThrow
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;- Specified by:
getCacheSizeOrThrowin interfaceCPUInfoOrBuilder
-
clearCacheSize
-
removeCacheSize
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6; -
getMutableCacheSize
Deprecated.Use alternate mutation accessors instead. -
putCacheSize
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6; -
putAllCacheSize
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<CPUInfo.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<CPUInfo.Builder>
-