Class HardwareLocation.Builder (0.1.0)

public static final class HardwareLocation.Builder extends GeneratedMessageV3.Builder<HardwareLocation.Builder> implements HardwareLocationOrBuilder

Represents the location of one or many hardware.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation

Static Methods

getDescriptor()

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

Methods

addAllRackSpace(Iterable<? extends RackSpace> values)

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];

Parameter
Name Description
values Iterable<? extends com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace>
Returns
Type Description
HardwareLocation.Builder

addRackSpace(RackSpace value)

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];

Parameter
Name Description
value RackSpace
Returns
Type Description
HardwareLocation.Builder

addRackSpace(RackSpace.Builder builderForValue)

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];

Parameter
Name Description
builderForValue RackSpace.Builder
Returns
Type Description
HardwareLocation.Builder

addRackSpace(int index, RackSpace value)

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];

Parameters
Name Description
index int
value RackSpace
Returns
Type Description
HardwareLocation.Builder

addRackSpace(int index, RackSpace.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue RackSpace.Builder
Returns
Type Description
HardwareLocation.Builder

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];

Returns
Type Description
RackSpace.Builder

addRackSpaceBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
RackSpace.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HardwareLocation build()
Returns
Type Description
HardwareLocation

buildPartial()

public HardwareLocation buildPartial()
Returns
Type Description
HardwareLocation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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
Type Description
HardwareLocation.Builder

This builder for chaining.

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];

Returns
Type Description
HardwareLocation.Builder

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
Type Description
HardwareLocation.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public HardwareLocation getDefaultInstanceForType()
Returns
Type Description
HardwareLocation

getDescriptorForType()

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

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];

Returns
Type Description
String

The rackLocation.

getRackLocationBytes()

public 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];

Returns
Type Description
ByteString

The bytes for rackLocation.

getRackSpace(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
RackSpace

getRackSpaceBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
RackSpace.Builder

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];

Returns
Type Description
List<Builder>

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];

Returns
Type Description
int

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];

Returns
Type Description
List<RackSpace>

getRackSpaceOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
RackSpaceOrBuilder

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];

Returns
Type Description
List<? extends com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder>

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) = { ... }

Returns
Type Description
String

The site.

getSiteBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for site.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HardwareLocation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRackSpace(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
HardwareLocation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRackLocation(String value)

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];

Parameter
Name Description
value String

The rackLocation to set.

Returns
Type Description
HardwareLocation.Builder

This builder for chaining.

setRackLocationBytes(ByteString value)

public HardwareLocation.Builder setRackLocationBytes(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];

Parameter
Name Description
value ByteString

The bytes for rackLocation to set.

Returns
Type Description
HardwareLocation.Builder

This builder for chaining.

setRackSpace(int index, RackSpace value)

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];

Parameters
Name Description
index int
value RackSpace
Returns
Type Description
HardwareLocation.Builder

setRackSpace(int index, RackSpace.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue RackSpace.Builder
Returns
Type Description
HardwareLocation.Builder

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

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

setSite(String value)

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) = { ... }

Parameter
Name Description
value String

The site to set.

Returns
Type Description
HardwareLocation.Builder

This builder for chaining.

setSiteBytes(ByteString value)

public HardwareLocation.Builder setSiteBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes for site to set.

Returns
Type Description
HardwareLocation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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