Class HardwareLocation.Builder

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

public static final class HardwareLocation.Builder extends com.google.protobuf.GeneratedMessage.Builder<HardwareLocation.Builder> implements HardwareLocationOrBuilder
 Represents the location of one or many hardware.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation
  • 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<HardwareLocation.Builder>
    • clear

      public HardwareLocation.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<HardwareLocation.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<HardwareLocation.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public HardwareLocation.Builder mergeFrom(HardwareLocation other)
    • isInitialized

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

      public HardwareLocation.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<HardwareLocation.Builder>
      Throws:
      IOException
    • getSite

      public String getSite()
       Required. Name of the site where the hardware are present.
       Format: `projects/{project}/locations/{location}/sites/{site}`
       
      string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getSite in interface HardwareLocationOrBuilder
      Returns:
      The site.
    • getSiteBytes

      public com.google.protobuf.ByteString getSiteBytes()
       Required. Name of the site where the hardware are present.
       Format: `projects/{project}/locations/{location}/sites/{site}`
       
      string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getSiteBytes in interface HardwareLocationOrBuilder
      Returns:
      The bytes for site.
    • setSite

      public HardwareLocation.Builder setSite(String value)
       Required. Name of the site where the hardware are present.
       Format: `projects/{project}/locations/{location}/sites/{site}`
       
      string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The site to set.
      Returns:
      This builder for chaining.
    • clearSite

      public HardwareLocation.Builder clearSite()
       Required. Name of the site where the hardware are present.
       Format: `projects/{project}/locations/{location}/sites/{site}`
       
      string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSiteBytes

      public HardwareLocation.Builder setSiteBytes(com.google.protobuf.ByteString value)
       Required. Name of the site where the hardware are present.
       Format: `projects/{project}/locations/{location}/sites/{site}`
       
      string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for site to set.
      Returns:
      This builder for chaining.
    • 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 = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRackLocation in interface HardwareLocationOrBuilder
      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 = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRackLocationBytes in interface HardwareLocationOrBuilder
      Returns:
      The bytes for rackLocation.
    • setRackLocation

      public HardwareLocation.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 = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The rackLocation to set.
      Returns:
      This builder for chaining.
    • clearRackLocation

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

      public HardwareLocation.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 = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for rackLocation to set.
      Returns:
      This builder for chaining.
    • getRackSpaceList

      public List<RackSpace> getRackSpaceList()
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRackSpaceList in interface HardwareLocationOrBuilder
    • getRackSpaceCount

      public int getRackSpaceCount()
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRackSpaceCount in interface HardwareLocationOrBuilder
    • getRackSpace

      public RackSpace getRackSpace(int index)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRackSpace in interface HardwareLocationOrBuilder
    • setRackSpace

      public HardwareLocation.Builder setRackSpace(int index, RackSpace value)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setRackSpace

      public HardwareLocation.Builder setRackSpace(int index, RackSpace.Builder builderForValue)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addRackSpace

      public HardwareLocation.Builder addRackSpace(RackSpace value)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addRackSpace

      public HardwareLocation.Builder addRackSpace(int index, RackSpace value)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addRackSpace

      public HardwareLocation.Builder addRackSpace(RackSpace.Builder builderForValue)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addRackSpace

      public HardwareLocation.Builder addRackSpace(int index, RackSpace.Builder builderForValue)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addAllRackSpace

      public HardwareLocation.Builder addAllRackSpace(Iterable<? extends RackSpace> values)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearRackSpace

      public HardwareLocation.Builder clearRackSpace()
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • removeRackSpace

      public HardwareLocation.Builder removeRackSpace(int index)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getRackSpaceBuilder

      public RackSpace.Builder getRackSpaceBuilder(int index)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getRackSpaceOrBuilder

      public RackSpaceOrBuilder getRackSpaceOrBuilder(int index)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRackSpaceOrBuilder in interface HardwareLocationOrBuilder
    • getRackSpaceOrBuilderList

      public List<? extends RackSpaceOrBuilder> getRackSpaceOrBuilderList()
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRackSpaceOrBuilderList in interface HardwareLocationOrBuilder
    • addRackSpaceBuilder

      public RackSpace.Builder addRackSpaceBuilder()
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addRackSpaceBuilder

      public RackSpace.Builder addRackSpaceBuilder(int index)
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getRackSpaceBuilderList

      public List<RackSpace.Builder> getRackSpaceBuilderList()
       Optional. Spaces occupied by the hardware in the rack.
       If unset, this location is assumed to be the entire rack.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];