Class HardwarePhysicalInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HardwarePhysicalInfo.Builder>
com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Builder
All Implemented Interfaces:
HardwarePhysicalInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
HardwarePhysicalInfo

public static final class HardwarePhysicalInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<HardwarePhysicalInfo.Builder> implements HardwarePhysicalInfoOrBuilder
 Physical properties of a hardware.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HardwarePhysicalInfo.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<HardwarePhysicalInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<HardwarePhysicalInfo.Builder>
    • getDefaultInstanceForType

      public HardwarePhysicalInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public HardwarePhysicalInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public HardwarePhysicalInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public HardwarePhysicalInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HardwarePhysicalInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<HardwarePhysicalInfo.Builder>
    • mergeFrom

      public HardwarePhysicalInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HardwarePhysicalInfo.Builder>
      Throws:
      IOException
    • getPowerReceptacleValue

      public int getPowerReceptacleValue()
       Required. The power receptacle type.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPowerReceptacleValue in interface HardwarePhysicalInfoOrBuilder
      Returns:
      The enum numeric value on the wire for powerReceptacle.
    • setPowerReceptacleValue

      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];
      Parameters:
      value - The enum numeric value on the wire for powerReceptacle to set.
      Returns:
      This builder for chaining.
    • getPowerReceptacle

      public HardwarePhysicalInfo.PowerReceptacleType getPowerReceptacle()
       Required. The power receptacle type.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPowerReceptacle in interface HardwarePhysicalInfoOrBuilder
      Returns:
      The powerReceptacle.
    • setPowerReceptacle

       Required. The power receptacle type.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The powerReceptacle to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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];
      Specified by:
      getNetworkUplinkValue in interface HardwarePhysicalInfoOrBuilder
      Returns:
      The enum numeric value on the wire for networkUplink.
    • setNetworkUplinkValue

      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];
      Parameters:
      value - The enum numeric value on the wire for networkUplink to set.
      Returns:
      This builder for chaining.
    • getNetworkUplink

      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];
      Specified by:
      getNetworkUplink in interface HardwarePhysicalInfoOrBuilder
      Returns:
      The networkUplink.
    • setNetworkUplink

       Required. Type of the uplink network connection.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The networkUplink to set.
      Returns:
      This builder for chaining.
    • clearNetworkUplink

      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:
      This builder for chaining.
    • getVoltageValue

      public int getVoltageValue()
       Required. Voltage of the power supply.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVoltageValue in interface HardwarePhysicalInfoOrBuilder
      Returns:
      The enum numeric value on the wire for voltage.
    • setVoltageValue

      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];
      Parameters:
      value - The enum numeric value on the wire for voltage to set.
      Returns:
      This builder for chaining.
    • getVoltage

      public HardwarePhysicalInfo.Voltage getVoltage()
       Required. Voltage of the power supply.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVoltage in interface HardwarePhysicalInfoOrBuilder
      Returns:
      The voltage.
    • setVoltage

       Required. Voltage of the power supply.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The voltage to set.
      Returns:
      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:
      This builder for chaining.
    • getAmperesValue

      public int getAmperesValue()
       Required. Amperes of the power supply.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAmperesValue in interface HardwarePhysicalInfoOrBuilder
      Returns:
      The enum numeric value on the wire for amperes.
    • setAmperesValue

      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];
      Parameters:
      value - The enum numeric value on the wire for amperes to set.
      Returns:
      This builder for chaining.
    • getAmperes

      public HardwarePhysicalInfo.Amperes getAmperes()
       Required. Amperes of the power supply.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAmperes in interface HardwarePhysicalInfoOrBuilder
      Returns:
      The amperes.
    • setAmperes

       Required. Amperes of the power supply.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The amperes to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.