Class Hardware.DiskInfo.Builder (0.9.0)

public static final class Hardware.DiskInfo.Builder extends GeneratedMessageV3.Builder<Hardware.DiskInfo.Builder> implements Hardware.DiskInfoOrBuilder

Information about individual disks on a machine.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Hardware.DiskInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Hardware.DiskInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Hardware.DiskInfo.Builder
Overrides

build()

public Hardware.DiskInfo build()
Returns
Type Description
Hardware.DiskInfo

buildPartial()

public Hardware.DiskInfo buildPartial()
Returns
Type Description
Hardware.DiskInfo

clear()

public Hardware.DiskInfo.Builder clear()
Returns
Type Description
Hardware.DiskInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Hardware.DiskInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Hardware.DiskInfo.Builder
Overrides

clearManufacturer()

public Hardware.DiskInfo.Builder clearManufacturer()

Output only. Disk manufacturer.

string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

clearModelNumber()

public Hardware.DiskInfo.Builder clearModelNumber()

Output only. Disk model number.

string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Hardware.DiskInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Hardware.DiskInfo.Builder
Overrides

clearPartNumber()

public Hardware.DiskInfo.Builder clearPartNumber()

Output only. Disk part number.

string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

clearPsid()

public Hardware.DiskInfo.Builder clearPsid()

Output only. Disk PSID.

string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

clearSerialNumber()

public Hardware.DiskInfo.Builder clearSerialNumber()

Output only. Disk serial number.

string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

clearSlot()

public Hardware.DiskInfo.Builder clearSlot()

Output only. Disk slot number.

int32 slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

clone()

public Hardware.DiskInfo.Builder clone()
Returns
Type Description
Hardware.DiskInfo.Builder
Overrides

getDefaultInstanceForType()

public Hardware.DiskInfo getDefaultInstanceForType()
Returns
Type Description
Hardware.DiskInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getManufacturer()

public String getManufacturer()

Output only. Disk manufacturer.

string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The manufacturer.

getManufacturerBytes()

public ByteString getManufacturerBytes()

Output only. Disk manufacturer.

string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for manufacturer.

getModelNumber()

public String getModelNumber()

Output only. Disk model number.

string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The modelNumber.

getModelNumberBytes()

public ByteString getModelNumberBytes()

Output only. Disk model number.

string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for modelNumber.

getPartNumber()

public String getPartNumber()

Output only. Disk part number.

string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The partNumber.

getPartNumberBytes()

public ByteString getPartNumberBytes()

Output only. Disk part number.

string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for partNumber.

getPsid()

public String getPsid()

Output only. Disk PSID.

string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The psid.

getPsidBytes()

public ByteString getPsidBytes()

Output only. Disk PSID.

string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for psid.

getSerialNumber()

public String getSerialNumber()

Output only. Disk serial number.

string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The serialNumber.

getSerialNumberBytes()

public ByteString getSerialNumberBytes()

Output only. Disk serial number.

string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for serialNumber.

getSlot()

public int getSlot()

Output only. Disk slot number.

int32 slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The slot.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Hardware.DiskInfo other)

public Hardware.DiskInfo.Builder mergeFrom(Hardware.DiskInfo other)
Parameter
Name Description
other Hardware.DiskInfo
Returns
Type Description
Hardware.DiskInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Hardware.DiskInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Hardware.DiskInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Hardware.DiskInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Hardware.DiskInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Hardware.DiskInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Hardware.DiskInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Hardware.DiskInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Hardware.DiskInfo.Builder
Overrides

setManufacturer(String value)

public Hardware.DiskInfo.Builder setManufacturer(String value)

Output only. Disk manufacturer.

string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The manufacturer to set.

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

setManufacturerBytes(ByteString value)

public Hardware.DiskInfo.Builder setManufacturerBytes(ByteString value)

Output only. Disk manufacturer.

string manufacturer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for manufacturer to set.

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

setModelNumber(String value)

public Hardware.DiskInfo.Builder setModelNumber(String value)

Output only. Disk model number.

string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The modelNumber to set.

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

setModelNumberBytes(ByteString value)

public Hardware.DiskInfo.Builder setModelNumberBytes(ByteString value)

Output only. Disk model number.

string model_number = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for modelNumber to set.

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

setPartNumber(String value)

public Hardware.DiskInfo.Builder setPartNumber(String value)

Output only. Disk part number.

string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The partNumber to set.

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

setPartNumberBytes(ByteString value)

public Hardware.DiskInfo.Builder setPartNumberBytes(ByteString value)

Output only. Disk part number.

string part_number = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for partNumber to set.

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

setPsid(String value)

public Hardware.DiskInfo.Builder setPsid(String value)

Output only. Disk PSID.

string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The psid to set.

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

setPsidBytes(ByteString value)

public Hardware.DiskInfo.Builder setPsidBytes(ByteString value)

Output only. Disk PSID.

string psid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for psid to set.

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Hardware.DiskInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Hardware.DiskInfo.Builder
Overrides

setSerialNumber(String value)

public Hardware.DiskInfo.Builder setSerialNumber(String value)

Output only. Disk serial number.

string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The serialNumber to set.

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

setSerialNumberBytes(ByteString value)

public Hardware.DiskInfo.Builder setSerialNumberBytes(ByteString value)

Output only. Disk serial number.

string serial_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for serialNumber to set.

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

setSlot(int value)

public Hardware.DiskInfo.Builder setSlot(int value)

Output only. Disk slot number.

int32 slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The slot to set.

Returns
Type Description
Hardware.DiskInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Hardware.DiskInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Hardware.DiskInfo.Builder
Overrides