Class HardwareInstallationInfo.Builder

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

public static final class HardwareInstallationInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<HardwareInstallationInfo.Builder> implements HardwareInstallationInfoOrBuilder
 Information for installation of a Hardware.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo
  • 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<HardwareInstallationInfo.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<HardwareInstallationInfo.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<HardwareInstallationInfo.Builder>
    • getDefaultInstanceForType

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

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

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

      public HardwareInstallationInfo.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<HardwareInstallationInfo.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<HardwareInstallationInfo.Builder>
    • mergeFrom

      public HardwareInstallationInfo.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<HardwareInstallationInfo.Builder>
      Throws:
      IOException
    • getRackLocation

      public String getRackLocation()
       Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
       Rack 3.
       
      string rack_location = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRackLocation in interface HardwareInstallationInfoOrBuilder
      Returns:
      The rackLocation.
    • getRackLocationBytes

      public com.google.protobuf.ByteString getRackLocationBytes()
       Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
       Rack 3.
       
      string rack_location = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRackLocationBytes in interface HardwareInstallationInfoOrBuilder
      Returns:
      The bytes for rackLocation.
    • setRackLocation

      public HardwareInstallationInfo.Builder setRackLocation(String value)
       Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
       Rack 3.
       
      string rack_location = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The rackLocation to set.
      Returns:
      This builder for chaining.
    • clearRackLocation

      public HardwareInstallationInfo.Builder clearRackLocation()
       Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
       Rack 3.
       
      string rack_location = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setRackLocationBytes

      public HardwareInstallationInfo.Builder setRackLocationBytes(com.google.protobuf.ByteString value)
       Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
       Rack 3.
       
      string rack_location = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for rackLocation to set.
      Returns:
      This builder for chaining.
    • getPowerDistanceMeters

      public int getPowerDistanceMeters()
       Required. Distance from the power outlet in meters.
       
      int32 power_distance_meters = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPowerDistanceMeters in interface HardwareInstallationInfoOrBuilder
      Returns:
      The powerDistanceMeters.
    • setPowerDistanceMeters

      public HardwareInstallationInfo.Builder setPowerDistanceMeters(int value)
       Required. Distance from the power outlet in meters.
       
      int32 power_distance_meters = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The powerDistanceMeters to set.
      Returns:
      This builder for chaining.
    • clearPowerDistanceMeters

      public HardwareInstallationInfo.Builder clearPowerDistanceMeters()
       Required. Distance from the power outlet in meters.
       
      int32 power_distance_meters = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getSwitchDistanceMeters

      public int getSwitchDistanceMeters()
       Required. Distance from the network switch in meters.
       
      int32 switch_distance_meters = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSwitchDistanceMeters in interface HardwareInstallationInfoOrBuilder
      Returns:
      The switchDistanceMeters.
    • setSwitchDistanceMeters

      public HardwareInstallationInfo.Builder setSwitchDistanceMeters(int value)
       Required. Distance from the network switch in meters.
       
      int32 switch_distance_meters = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The switchDistanceMeters to set.
      Returns:
      This builder for chaining.
    • clearSwitchDistanceMeters

      public HardwareInstallationInfo.Builder clearSwitchDistanceMeters()
       Required. Distance from the network switch in meters.
       
      int32 switch_distance_meters = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasRackUnitDimensions

      public boolean hasRackUnitDimensions()
       Required. Dimensions of the rack unit.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRackUnitDimensions in interface HardwareInstallationInfoOrBuilder
      Returns:
      Whether the rackUnitDimensions field is set.
    • getRackUnitDimensions

      public Dimensions getRackUnitDimensions()
       Required. Dimensions of the rack unit.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRackUnitDimensions in interface HardwareInstallationInfoOrBuilder
      Returns:
      The rackUnitDimensions.
    • setRackUnitDimensions

      public HardwareInstallationInfo.Builder setRackUnitDimensions(Dimensions value)
       Required. Dimensions of the rack unit.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
    • setRackUnitDimensions

      public HardwareInstallationInfo.Builder setRackUnitDimensions(Dimensions.Builder builderForValue)
       Required. Dimensions of the rack unit.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeRackUnitDimensions

      public HardwareInstallationInfo.Builder mergeRackUnitDimensions(Dimensions value)
       Required. Dimensions of the rack unit.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearRackUnitDimensions

      public HardwareInstallationInfo.Builder clearRackUnitDimensions()
       Required. Dimensions of the rack unit.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
    • getRackUnitDimensionsBuilder

      public Dimensions.Builder getRackUnitDimensionsBuilder()
       Required. Dimensions of the rack unit.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
    • getRackUnitDimensionsOrBuilder

      public DimensionsOrBuilder getRackUnitDimensionsOrBuilder()
       Required. Dimensions of the rack unit.
       
      .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRackUnitDimensionsOrBuilder in interface HardwareInstallationInfoOrBuilder
    • hasRackSpace

      public boolean hasRackSpace()
       Required. Rack space allocated for the hardware.
       
      .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRackSpace in interface HardwareInstallationInfoOrBuilder
      Returns:
      Whether the rackSpace field is set.
    • getRackSpace

      public RackSpace getRackSpace()
       Required. Rack space allocated for the hardware.
       
      .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRackSpace in interface HardwareInstallationInfoOrBuilder
      Returns:
      The rackSpace.
    • setRackSpace

      public HardwareInstallationInfo.Builder setRackSpace(RackSpace value)
       Required. Rack space allocated for the hardware.
       
      .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED];
    • setRackSpace

      public HardwareInstallationInfo.Builder setRackSpace(RackSpace.Builder builderForValue)
       Required. Rack space allocated for the hardware.
       
      .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED];
    • mergeRackSpace

      public HardwareInstallationInfo.Builder mergeRackSpace(RackSpace value)
       Required. Rack space allocated for the hardware.
       
      .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED];
    • clearRackSpace

      public HardwareInstallationInfo.Builder clearRackSpace()
       Required. Rack space allocated for the hardware.
       
      .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED];
    • getRackSpaceBuilder

      public RackSpace.Builder getRackSpaceBuilder()
       Required. Rack space allocated for the hardware.
       
      .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED];
    • getRackSpaceOrBuilder

      public RackSpaceOrBuilder getRackSpaceOrBuilder()
       Required. Rack space allocated for the hardware.
       
      .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRackSpaceOrBuilder in interface HardwareInstallationInfoOrBuilder
    • getRackTypeValue

      public int getRackTypeValue()
       Required. Type of the rack.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRackTypeValue in interface HardwareInstallationInfoOrBuilder
      Returns:
      The enum numeric value on the wire for rackType.
    • setRackTypeValue

      public HardwareInstallationInfo.Builder setRackTypeValue(int value)
       Required. Type of the rack.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for rackType to set.
      Returns:
      This builder for chaining.
    • getRackType

      public HardwareInstallationInfo.RackType getRackType()
       Required. Type of the rack.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRackType in interface HardwareInstallationInfoOrBuilder
      Returns:
      The rackType.
    • setRackType

       Required. Type of the rack.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The rackType to set.
      Returns:
      This builder for chaining.
    • clearRackType

      public HardwareInstallationInfo.Builder clearRackType()
       Required. Type of the rack.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.