Class HardwarePhysicalInfo.Builder (0.1.0)

public static final class HardwarePhysicalInfo.Builder extends GeneratedMessageV3.Builder<HardwarePhysicalInfo.Builder> implements HardwarePhysicalInfoOrBuilder

Physical properties of a hardware.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HardwarePhysicalInfo build()
Returns
Type Description
HardwarePhysicalInfo

buildPartial()

public HardwarePhysicalInfo buildPartial()
Returns
Type Description
HardwarePhysicalInfo

clear()

public HardwarePhysicalInfo.Builder clear()
Returns
Type Description
HardwarePhysicalInfo.Builder
Overrides

clearAmperes()

public HardwarePhysicalInfo.Builder clearAmperes()

Required. Amperes of the power supply.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public HardwarePhysicalInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HardwarePhysicalInfo.Builder
Overrides
public HardwarePhysicalInfo.Builder clearNetworkUplink()

Required. Type of the uplink network connection.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPowerReceptacle()

public HardwarePhysicalInfo.Builder clearPowerReceptacle()

Required. The power receptacle type.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.

clearVoltage()

public HardwarePhysicalInfo.Builder clearVoltage()

Required. Voltage of the power supply.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.

clone()

public HardwarePhysicalInfo.Builder clone()
Returns
Type Description
HardwarePhysicalInfo.Builder
Overrides

getAmperes()

public HardwarePhysicalInfo.Amperes getAmperes()

Required. Amperes of the power supply.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwarePhysicalInfo.Amperes

The amperes.

getAmperesValue()

public int getAmperesValue()

Required. Amperes of the power supply.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for amperes.

getDefaultInstanceForType()

public HardwarePhysicalInfo getDefaultInstanceForType()
Returns
Type Description
HardwarePhysicalInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
public HardwarePhysicalInfo.NetworkUplinkType getNetworkUplink()

Required. Type of the uplink network connection.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwarePhysicalInfo.NetworkUplinkType

The networkUplink.

getNetworkUplinkValue()

public int getNetworkUplinkValue()

Required. Type of the uplink network connection.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for networkUplink.

getPowerReceptacle()

public HardwarePhysicalInfo.PowerReceptacleType getPowerReceptacle()

Required. The power receptacle type.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwarePhysicalInfo.PowerReceptacleType

The powerReceptacle.

getPowerReceptacleValue()

public int getPowerReceptacleValue()

Required. The power receptacle type.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for powerReceptacle.

getVoltage()

public HardwarePhysicalInfo.Voltage getVoltage()

Required. Voltage of the power supply.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HardwarePhysicalInfo.Voltage

The voltage.

getVoltageValue()

public int getVoltageValue()

Required. Voltage of the power supply.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for voltage.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HardwarePhysicalInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAmperes(HardwarePhysicalInfo.Amperes value)

public HardwarePhysicalInfo.Builder setAmperes(HardwarePhysicalInfo.Amperes value)

Required. Amperes of the power supply.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HardwarePhysicalInfo.Amperes

The amperes to set.

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.

setAmperesValue(int value)

public HardwarePhysicalInfo.Builder setAmperesValue(int value)

Required. Amperes of the power supply.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for amperes to set.

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public HardwarePhysicalInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HardwarePhysicalInfo.Builder
Overrides
public HardwarePhysicalInfo.Builder setNetworkUplink(HardwarePhysicalInfo.NetworkUplinkType value)

Required. Type of the uplink network connection.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HardwarePhysicalInfo.NetworkUplinkType

The networkUplink to set.

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.

setNetworkUplinkValue(int value)

public HardwarePhysicalInfo.Builder setNetworkUplinkValue(int value)

Required. Type of the uplink network connection.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for networkUplink to set.

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.

setPowerReceptacle(HardwarePhysicalInfo.PowerReceptacleType value)

public HardwarePhysicalInfo.Builder setPowerReceptacle(HardwarePhysicalInfo.PowerReceptacleType value)

Required. The power receptacle type.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HardwarePhysicalInfo.PowerReceptacleType

The powerReceptacle to set.

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.

setPowerReceptacleValue(int value)

public HardwarePhysicalInfo.Builder setPowerReceptacleValue(int value)

Required. The power receptacle type.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for powerReceptacle to set.

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVoltage(HardwarePhysicalInfo.Voltage value)

public HardwarePhysicalInfo.Builder setVoltage(HardwarePhysicalInfo.Voltage value)

Required. Voltage of the power supply.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HardwarePhysicalInfo.Voltage

The voltage to set.

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.

setVoltageValue(int value)

public HardwarePhysicalInfo.Builder setVoltageValue(int value)

Required. Voltage of the power supply.

.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for voltage to set.

Returns
Type Description
HardwarePhysicalInfo.Builder

This builder for chaining.