Class Hardware (0.3.0)

public final class Hardware extends GeneratedMessage implements HardwareOrBuilder

Hardware specification details for a resource, including both physical and virtual hardware.

Protobuf type google.backstory.Hardware

Implements

HardwareOrBuilder

Static Fields

CPU_CLOCK_SPEED_FIELD_NUMBER

public static final int CPU_CLOCK_SPEED_FIELD_NUMBER
Field Value
Type Description
int

CPU_MAX_CLOCK_SPEED_FIELD_NUMBER

public static final int CPU_MAX_CLOCK_SPEED_FIELD_NUMBER
Field Value
Type Description
int

CPU_MODEL_FIELD_NUMBER

public static final int CPU_MODEL_FIELD_NUMBER
Field Value
Type Description
int

CPU_NUMBER_CORES_FIELD_NUMBER

public static final int CPU_NUMBER_CORES_FIELD_NUMBER
Field Value
Type Description
int

CPU_PLATFORM_FIELD_NUMBER

public static final int CPU_PLATFORM_FIELD_NUMBER
Field Value
Type Description
int

MANUFACTURER_FIELD_NUMBER

public static final int MANUFACTURER_FIELD_NUMBER
Field Value
Type Description
int

MODEL_FIELD_NUMBER

public static final int MODEL_FIELD_NUMBER
Field Value
Type Description
int

RAM_FIELD_NUMBER

public static final int RAM_FIELD_NUMBER
Field Value
Type Description
int

SERIAL_NUMBER_FIELD_NUMBER

public static final int SERIAL_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Hardware getDefaultInstance()
Returns
Type Description
Hardware

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Hardware.Builder newBuilder()
Returns
Type Description
Hardware.Builder

newBuilder(Hardware prototype)

public static Hardware.Builder newBuilder(Hardware prototype)
Parameter
Name Description
prototype Hardware
Returns
Type Description
Hardware.Builder

parseDelimitedFrom(InputStream input)

public static Hardware parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Hardware
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Hardware parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Hardware
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Hardware parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Hardware
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Hardware parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Hardware
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Hardware parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Hardware
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Hardware parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Hardware
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Hardware parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Hardware
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Hardware parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Hardware
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Hardware parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Hardware
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Hardware parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Hardware
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Hardware parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Hardware
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Hardware parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Hardware
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Hardware> parser()
Returns
Type Description
Parser<Hardware>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCpuClockSpeed()

public long getCpuClockSpeed()

Clock speed of the hardware CPU in MHz.

uint64 cpu_clock_speed = 6;

Returns
Type Description
long

The cpuClockSpeed.

getCpuMaxClockSpeed()

public long getCpuMaxClockSpeed()

Maximum possible clock speed of the hardware CPU in MHz.

uint64 cpu_max_clock_speed = 7;

Returns
Type Description
long

The cpuMaxClockSpeed.

getCpuModel()

public String getCpuModel()

Model description of the hardware CPU (e.g. "2.8 GHz Quad-Core Intel Core i5").

string cpu_model = 5;

Returns
Type Description
String

The cpuModel.

getCpuModelBytes()

public ByteString getCpuModelBytes()

Model description of the hardware CPU (e.g. "2.8 GHz Quad-Core Intel Core i5").

string cpu_model = 5;

Returns
Type Description
ByteString

The bytes for cpuModel.

getCpuNumberCores()

public long getCpuNumberCores()

Number of CPU cores.

uint64 cpu_number_cores = 8;

Returns
Type Description
long

The cpuNumberCores.

getCpuPlatform()

public String getCpuPlatform()

Platform of the hardware CPU (e.g. "Intel Broadwell").

string cpu_platform = 4;

Returns
Type Description
String

The cpuPlatform.

getCpuPlatformBytes()

public ByteString getCpuPlatformBytes()

Platform of the hardware CPU (e.g. "Intel Broadwell").

string cpu_platform = 4;

Returns
Type Description
ByteString

The bytes for cpuPlatform.

getDefaultInstanceForType()

public Hardware getDefaultInstanceForType()
Returns
Type Description
Hardware

getManufacturer()

public String getManufacturer()

Hardware manufacturer.

string manufacturer = 2;

Returns
Type Description
String

The manufacturer.

getManufacturerBytes()

public ByteString getManufacturerBytes()

Hardware manufacturer.

string manufacturer = 2;

Returns
Type Description
ByteString

The bytes for manufacturer.

getModel()

public String getModel()

Hardware model.

string model = 3;

Returns
Type Description
String

The model.

getModelBytes()

public ByteString getModelBytes()

Hardware model.

string model = 3;

Returns
Type Description
ByteString

The bytes for model.

getParserForType()

public Parser<Hardware> getParserForType()
Returns
Type Description
Parser<Hardware>
Overrides

getRam()

public long getRam()

Amount of the hardware ramdom access memory (RAM) in Mb.

uint64 ram = 9;

Returns
Type Description
long

The ram.

getSerialNumber()

public String getSerialNumber()

Hardware serial number.

string serial_number = 1;

Returns
Type Description
String

The serialNumber.

getSerialNumberBytes()

public ByteString getSerialNumberBytes()

Hardware serial number.

string serial_number = 1;

Returns
Type Description
ByteString

The bytes for serialNumber.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Hardware.Builder newBuilderForType()
Returns
Type Description
Hardware.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Hardware.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Hardware.Builder
Overrides

toBuilder()

public Hardware.Builder toBuilder()
Returns
Type Description
Hardware.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException