Package org.photonvision.proto
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_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 uptime = 11;
clone()
protected int
boolean
double
optional double cpu_temp = 1;
optional string cpu_thr = 3;
us.hebi.quickbuf.Utf8String
optional string cpu_thr = 3;
double
optional double cpu_util = 2;
static us.hebi.quickbuf.Descriptors.Descriptor
double
optional double disk_util_pct = 8;
static us.hebi.quickbuf.MessageFactory<Photon.ProtobufDeviceMetrics>
double
optional double gpu_mem = 6;
double
optional double gpu_mem_util = 7;
optional string ip_address = 10;
us.hebi.quickbuf.Utf8String
optional string ip_address = 10;
us.hebi.quickbuf.Utf8String
optional string cpu_thr = 3;
us.hebi.quickbuf.Utf8String
optional string ip_address = 10;
us.hebi.quickbuf.RepeatedDouble
repeated double npu_usage = 9;
This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedDouble
repeated double npu_usage = 9;
This method returns the internal storage object without modifying any has state.double
optional double ram_mem = 4;
double
optional double ram_util = 5;
double
optional double uptime = 11;
boolean
optional double cpu_temp = 1;
boolean
optional string cpu_thr = 3;
boolean
optional double cpu_util = 2;
boolean
optional double disk_util_pct = 8;
boolean
optional double gpu_mem = 6;
boolean
optional double gpu_mem_util = 7;
boolean
optional string ip_address = 10;
boolean
repeated double npu_usage = 9;
boolean
optional double ram_mem = 4;
boolean
optional double ram_util = 5;
boolean
optional double uptime = 11;
boolean
isEmpty()
mergeFrom
(us.hebi.quickbuf.JsonSource input) mergeFrom
(us.hebi.quickbuf.ProtoSource input) static Photon.ProtobufDeviceMetrics
static Photon.ProtobufDeviceMetrics
parseFrom
(byte[] data) static Photon.ProtobufDeviceMetrics
parseFrom
(us.hebi.quickbuf.JsonSource input) static Photon.ProtobufDeviceMetrics
parseFrom
(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;
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;
setUptime
(double value) optional double uptime = 11;
void
writeTo
(us.hebi.quickbuf.JsonSink output) void
writeTo
(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
optional double cpu_temp = 1;
- Returns:
- whether the cpuTemp field is set
-
clearCpuTemp
optional double cpu_temp = 1;
- Returns:
- this
-
getCpuTemp
optional double cpu_temp = 1;
- Returns:
- the cpuTemp
-
setCpuTemp
optional double cpu_temp = 1;
- Parameters:
value
- the cpuTemp to set- Returns:
- this
-
hasCpuUtil
optional double cpu_util = 2;
- Returns:
- whether the cpuUtil field is set
-
clearCpuUtil
optional double cpu_util = 2;
- Returns:
- this
-
getCpuUtil
optional double cpu_util = 2;
- Returns:
- the cpuUtil
-
setCpuUtil
optional double cpu_util = 2;
- Parameters:
value
- the cpuUtil to set- Returns:
- this
-
hasRamMem
optional double ram_mem = 4;
- Returns:
- whether the ramMem field is set
-
clearRamMem
optional double ram_mem = 4;
- Returns:
- this
-
getRamMem
optional double ram_mem = 4;
- Returns:
- the ramMem
-
setRamMem
optional double ram_mem = 4;
- Parameters:
value
- the ramMem to set- Returns:
- this
-
hasRamUtil
optional double ram_util = 5;
- Returns:
- whether the ramUtil field is set
-
clearRamUtil
optional double ram_util = 5;
- Returns:
- this
-
getRamUtil
optional double ram_util = 5;
- Returns:
- the ramUtil
-
setRamUtil
optional double ram_util = 5;
- Parameters:
value
- the ramUtil to set- Returns:
- this
-
hasGpuMem
optional double gpu_mem = 6;
- Returns:
- whether the gpuMem field is set
-
clearGpuMem
optional double gpu_mem = 6;
- Returns:
- this
-
getGpuMem
optional double gpu_mem = 6;
- Returns:
- the gpuMem
-
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
optional double gpu_mem_util = 7;
- Returns:
- the gpuMemUtil
-
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
optional double disk_util_pct = 8;
- Returns:
- the diskUtilPct
-
setDiskUtilPct
optional double disk_util_pct = 8;
- Parameters:
value
- the diskUtilPct to set- Returns:
- this
-
hasUptime
optional double uptime = 11;
- Returns:
- whether the uptime field is set
-
clearUptime
optional double uptime = 11;
- Returns:
- this
-
getUptime
optional double uptime = 11;
- Returns:
- the uptime
-
setUptime
optional double uptime = 11;
- Parameters:
value
- the uptime to set- Returns:
- this
-
hasCpuThr
optional string cpu_thr = 3;
- Returns:
- whether the cpuThr field is set
-
clearCpuThr
optional string cpu_thr = 3;
- Returns:
- this
-
getCpuThr
optional string cpu_thr = 3;
- Returns:
- the cpuThr
-
getCpuThrBytes
optional string cpu_thr = 3;
- Returns:
- internal
Utf8String
representation of cpuThr for reading
-
getMutableCpuThrBytes
optional string cpu_thr = 3;
- Returns:
- internal
Utf8String
representation 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
optional string ip_address = 10;
- Returns:
- this
-
getIpAddress
optional string ip_address = 10;
- Returns:
- the ipAddress
-
getIpAddressBytes
optional string ip_address = 10;
- Returns:
- internal
Utf8String
representation of ipAddress for reading
-
getMutableIpAddressBytes
optional string ip_address = 10;
- Returns:
- internal
Utf8String
representation 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
repeated double npu_usage = 9;
- Returns:
- this
-
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:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
mergeFrom
public Photon.ProtobufDeviceMetrics mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufDeviceMetrics>
-
isEmpty
- Overrides:
isEmpty
in 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.
-