public static final class Hardware.Builder extends GeneratedMessage.Builder<Hardware.Builder> implements HardwareOrBuilderHardware specification details for a resource, including both physical and virtual hardware.
Protobuf type google.backstory.Hardware
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Hardware.BuilderImplements
HardwareOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Hardware build()| Returns | |
|---|---|
| Type | Description |
Hardware |
|
buildPartial()
public Hardware buildPartial()| Returns | |
|---|---|
| Type | Description |
Hardware |
|
clear()
public Hardware.Builder clear()| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
|
clearCpuClockSpeed()
public Hardware.Builder clearCpuClockSpeed()Clock speed of the hardware CPU in MHz.
uint64 cpu_clock_speed = 6;
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
clearCpuMaxClockSpeed()
public Hardware.Builder clearCpuMaxClockSpeed()Maximum possible clock speed of the hardware CPU in MHz.
uint64 cpu_max_clock_speed = 7;
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
clearCpuModel()
public Hardware.Builder clearCpuModel()Model description of the hardware CPU (e.g. "2.8 GHz Quad-Core Intel Core i5").
string cpu_model = 5;
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
clearCpuNumberCores()
public Hardware.Builder clearCpuNumberCores()Number of CPU cores.
uint64 cpu_number_cores = 8;
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
clearCpuPlatform()
public Hardware.Builder clearCpuPlatform()Platform of the hardware CPU (e.g. "Intel Broadwell").
string cpu_platform = 4;
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
clearManufacturer()
public Hardware.Builder clearManufacturer()Hardware manufacturer.
string manufacturer = 2;
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
clearModel()
public Hardware.Builder clearModel()Hardware model.
string model = 3;
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
clearRam()
public Hardware.Builder clearRam()Amount of the hardware ramdom access memory (RAM) in Mb.
uint64 ram = 9;
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
clearSerialNumber()
public Hardware.Builder clearSerialNumber()Hardware serial number.
string serial_number = 1;
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Hardware other)
public Hardware.Builder mergeFrom(Hardware other)| Parameter | |
|---|---|
| Name | Description |
other |
Hardware |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Hardware.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Hardware.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
|
setCpuClockSpeed(long value)
public Hardware.Builder setCpuClockSpeed(long value)Clock speed of the hardware CPU in MHz.
uint64 cpu_clock_speed = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe cpuClockSpeed to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setCpuMaxClockSpeed(long value)
public Hardware.Builder setCpuMaxClockSpeed(long value)Maximum possible clock speed of the hardware CPU in MHz.
uint64 cpu_max_clock_speed = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe cpuMaxClockSpeed to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setCpuModel(String value)
public Hardware.Builder setCpuModel(String value)Model description of the hardware CPU (e.g. "2.8 GHz Quad-Core Intel Core i5").
string cpu_model = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cpuModel to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setCpuModelBytes(ByteString value)
public Hardware.Builder setCpuModelBytes(ByteString value)Model description of the hardware CPU (e.g. "2.8 GHz Quad-Core Intel Core i5").
string cpu_model = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cpuModel to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setCpuNumberCores(long value)
public Hardware.Builder setCpuNumberCores(long value)Number of CPU cores.
uint64 cpu_number_cores = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe cpuNumberCores to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setCpuPlatform(String value)
public Hardware.Builder setCpuPlatform(String value)Platform of the hardware CPU (e.g. "Intel Broadwell").
string cpu_platform = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cpuPlatform to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setCpuPlatformBytes(ByteString value)
public Hardware.Builder setCpuPlatformBytes(ByteString value)Platform of the hardware CPU (e.g. "Intel Broadwell").
string cpu_platform = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cpuPlatform to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setManufacturer(String value)
public Hardware.Builder setManufacturer(String value)Hardware manufacturer.
string manufacturer = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe manufacturer to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setManufacturerBytes(ByteString value)
public Hardware.Builder setManufacturerBytes(ByteString value)Hardware manufacturer.
string manufacturer = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for manufacturer to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setModel(String value)
public Hardware.Builder setModel(String value)Hardware model.
string model = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe model to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setModelBytes(ByteString value)
public Hardware.Builder setModelBytes(ByteString value)Hardware model.
string model = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for model to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setRam(long value)
public Hardware.Builder setRam(long value)Amount of the hardware ramdom access memory (RAM) in Mb.
uint64 ram = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe ram to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setSerialNumber(String value)
public Hardware.Builder setSerialNumber(String value)Hardware serial number.
string serial_number = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe serialNumber to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |
setSerialNumberBytes(ByteString value)
public Hardware.Builder setSerialNumberBytes(ByteString value)Hardware serial number.
string serial_number = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for serialNumber to set. |
| Returns | |
|---|---|
| Type | Description |
Hardware.Builder |
This builder for chaining. |