public static final class HardwareLocation.Builder extends GeneratedMessage.Builder<HardwareLocation.Builder> implements HardwareLocationOrBuilderRepresents the location of one or many hardware.
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > HardwareLocation.BuilderImplements
HardwareLocationOrBuilderStatic 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 |
|
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 |
|
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. |
getDefaultInstanceForType()
public HardwareLocation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
HardwareLocation |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public HardwareLocation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
HardwareLocation.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for site to set. |
| Returns | |
|---|---|
| Type | Description |
HardwareLocation.Builder |
This builder for chaining. |