Class Photon.ProtobufDeviceMetrics
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
org.photonvision.proto.Photon.ProtobufDeviceMetrics
- All Implemented Interfaces:
Cloneable
- Enclosing class:
Photon
public static final class Photon.ProtobufDeviceMetrics
extends us.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
implements Cloneable
Protobuf type
ProtobufDeviceMetrics-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionaddAllNpuUsage(double... values) repeated double npu_usage = 9;addNpuUsage(double value) repeated double npu_usage = 9;clear()optional double cpu_temp = 1;optional string cpu_thr = 3;optional double cpu_util = 2;optional double disk_usable_space = 14;optional double disk_util_pct = 8;optional double gpu_mem = 6;optional double gpu_mem_util = 7;optional string ip_address = 10;repeated double npu_usage = 9;optional double ram_mem = 4;optional double ram_util = 5;optional double recv_bit_rate = 13;optional double sent_bit_rate = 12;optional double uptime = 11;clone()protected intbooleandoubleoptional double cpu_temp = 1;optional string cpu_thr = 3;us.hebi.quickbuf.Utf8Stringoptional string cpu_thr = 3;doubleoptional double cpu_util = 2;static us.hebi.quickbuf.Descriptors.Descriptordoubleoptional double disk_usable_space = 14;doubleoptional double disk_util_pct = 8;static us.hebi.quickbuf.MessageFactory<Photon.ProtobufDeviceMetrics> doubleoptional double gpu_mem = 6;doubleoptional double gpu_mem_util = 7;optional string ip_address = 10;us.hebi.quickbuf.Utf8Stringoptional string ip_address = 10;us.hebi.quickbuf.Utf8Stringoptional string cpu_thr = 3;us.hebi.quickbuf.Utf8Stringoptional string ip_address = 10;us.hebi.quickbuf.RepeatedDoublerepeated double npu_usage = 9;This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedDoublerepeated double npu_usage = 9;This method returns the internal storage object without modifying any has state.doubleoptional double ram_mem = 4;doubleoptional double ram_util = 5;doubleoptional double recv_bit_rate = 13;doubleoptional double sent_bit_rate = 12;doubleoptional double uptime = 11;booleanoptional double cpu_temp = 1;booleanoptional string cpu_thr = 3;booleanoptional double cpu_util = 2;booleanoptional double disk_usable_space = 14;booleanoptional double disk_util_pct = 8;booleanoptional double gpu_mem = 6;booleanoptional double gpu_mem_util = 7;booleanoptional string ip_address = 10;booleanrepeated double npu_usage = 9;booleanoptional double ram_mem = 4;booleanoptional double ram_util = 5;booleanoptional double recv_bit_rate = 13;booleanoptional double sent_bit_rate = 12;booleanoptional double uptime = 11;booleanisEmpty()mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static Photon.ProtobufDeviceMetricsstatic Photon.ProtobufDeviceMetricsparseFrom(byte[] data) static Photon.ProtobufDeviceMetricsparseFrom(us.hebi.quickbuf.JsonSource input) static Photon.ProtobufDeviceMetricsparseFrom(us.hebi.quickbuf.ProtoSource input) setCpuTemp(double value) optional double cpu_temp = 1;setCpuThr(CharSequence value) optional string cpu_thr = 3;setCpuThr(us.hebi.quickbuf.Utf8String value) optional string cpu_thr = 3;setCpuUtil(double value) optional double cpu_util = 2;setDiskUsableSpace(double value) optional double disk_usable_space = 14;setDiskUtilPct(double value) optional double disk_util_pct = 8;setGpuMem(double value) optional double gpu_mem = 6;setGpuMemUtil(double value) optional double gpu_mem_util = 7;setIpAddress(CharSequence value) optional string ip_address = 10;setIpAddress(us.hebi.quickbuf.Utf8String value) optional string ip_address = 10;setRamMem(double value) optional double ram_mem = 4;setRamUtil(double value) optional double ram_util = 5;setRecvBitRate(double value) optional double recv_bit_rate = 13;setSentBitRate(double value) optional double sent_bit_rate = 12;setUptime(double value) optional double uptime = 11;voidwriteTo(us.hebi.quickbuf.JsonSink output) voidwriteTo(us.hebi.quickbuf.ProtoSink output) Methods inherited from class us.hebi.quickbuf.ProtoMessage
bytesDefaultValue, checkInitialized, getCachedSize, getMissingFields, getMissingFields, getMissingFields, getMissingFields, getSerializedSize, getUnknownBytes, hashCode, isInitialized, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, rethrowFromParent, toByteArray, toByteArray, toByteArray, toString, writeDelimitedTo
-
Method Details
-
newInstance
- Returns:
- a new empty instance of
ProtobufDeviceMetrics
-
hasCpuTemp
-
clearCpuTemp
-
getCpuTemp
-
setCpuTemp
optional double cpu_temp = 1;- Parameters:
value- the cpuTemp to set- Returns:
- this
-
hasCpuUtil
-
clearCpuUtil
-
getCpuUtil
-
setCpuUtil
optional double cpu_util = 2;- Parameters:
value- the cpuUtil to set- Returns:
- this
-
hasRamMem
-
clearRamMem
-
getRamMem
-
setRamMem
optional double ram_mem = 4;- Parameters:
value- the ramMem to set- Returns:
- this
-
hasRamUtil
-
clearRamUtil
-
getRamUtil
-
setRamUtil
optional double ram_util = 5;- Parameters:
value- the ramUtil to set- Returns:
- this
-
hasGpuMem
-
clearGpuMem
-
getGpuMem
-
setGpuMem
optional double gpu_mem = 6;- Parameters:
value- the gpuMem to set- Returns:
- this
-
hasGpuMemUtil
optional double gpu_mem_util = 7;- Returns:
- whether the gpuMemUtil field is set
-
clearGpuMemUtil
optional double gpu_mem_util = 7;- Returns:
- this
-
getGpuMemUtil
-
setGpuMemUtil
optional double gpu_mem_util = 7;- Parameters:
value- the gpuMemUtil to set- Returns:
- this
-
hasDiskUtilPct
optional double disk_util_pct = 8;- Returns:
- whether the diskUtilPct field is set
-
clearDiskUtilPct
optional double disk_util_pct = 8;- Returns:
- this
-
getDiskUtilPct
-
setDiskUtilPct
optional double disk_util_pct = 8;- Parameters:
value- the diskUtilPct to set- Returns:
- this
-
hasUptime
-
clearUptime
-
getUptime
-
setUptime
optional double uptime = 11;- Parameters:
value- the uptime to set- Returns:
- this
-
hasSentBitRate
optional double sent_bit_rate = 12;- Returns:
- whether the sentBitRate field is set
-
clearSentBitRate
optional double sent_bit_rate = 12;- Returns:
- this
-
getSentBitRate
-
setSentBitRate
optional double sent_bit_rate = 12;- Parameters:
value- the sentBitRate to set- Returns:
- this
-
hasRecvBitRate
optional double recv_bit_rate = 13;- Returns:
- whether the recvBitRate field is set
-
clearRecvBitRate
optional double recv_bit_rate = 13;- Returns:
- this
-
getRecvBitRate
-
setRecvBitRate
optional double recv_bit_rate = 13;- Parameters:
value- the recvBitRate to set- Returns:
- this
-
hasDiskUsableSpace
optional double disk_usable_space = 14;- Returns:
- whether the diskUsableSpace field is set
-
clearDiskUsableSpace
optional double disk_usable_space = 14;- Returns:
- this
-
getDiskUsableSpace
optional double disk_usable_space = 14;- Returns:
- the diskUsableSpace
-
setDiskUsableSpace
optional double disk_usable_space = 14;- Parameters:
value- the diskUsableSpace to set- Returns:
- this
-
hasCpuThr
-
clearCpuThr
-
getCpuThr
-
getCpuThrBytes
optional string cpu_thr = 3;- Returns:
- internal
Utf8Stringrepresentation of cpuThr for reading
-
getMutableCpuThrBytes
optional string cpu_thr = 3;- Returns:
- internal
Utf8Stringrepresentation of cpuThr for modifications
-
setCpuThr
optional string cpu_thr = 3;- Parameters:
value- the cpuThr to set- Returns:
- this
-
setCpuThr
optional string cpu_thr = 3;- Parameters:
value- the cpuThr to set- Returns:
- this
-
hasIpAddress
optional string ip_address = 10;- Returns:
- whether the ipAddress field is set
-
clearIpAddress
-
getIpAddress
-
getIpAddressBytes
optional string ip_address = 10;- Returns:
- internal
Utf8Stringrepresentation of ipAddress for reading
-
getMutableIpAddressBytes
optional string ip_address = 10;- Returns:
- internal
Utf8Stringrepresentation of ipAddress for modifications
-
setIpAddress
optional string ip_address = 10;- Parameters:
value- the ipAddress to set- Returns:
- this
-
setIpAddress
optional string ip_address = 10;- Parameters:
value- the ipAddress to set- Returns:
- this
-
hasNpuUsage
repeated double npu_usage = 9;- Returns:
- whether the npuUsage field is set
-
clearNpuUsage
-
getNpuUsage
repeated double npu_usage = 9;This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. UsegetMutableNpuUsage()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableNpuUsage
repeated double npu_usage = 9;This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.- Returns:
- internal storage object for modifications
-
addNpuUsage
repeated double npu_usage = 9;- Parameters:
value- the npuUsage to add- Returns:
- this
-
addAllNpuUsage
repeated double npu_usage = 9;- Parameters:
values- the npuUsage to add- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
mergeFrom
public Photon.ProtobufDeviceMetrics mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
parseFrom
public static Photon.ProtobufDeviceMetrics parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Photon.ProtobufDeviceMetrics parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static Photon.ProtobufDeviceMetrics parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufDeviceMetrics messages
-
getDescriptor
- Returns:
- this type's descriptor.
-