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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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];
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];
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];
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];
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(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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HardwareLocation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public HardwareLocation build()
buildPartial()
public HardwareLocation buildPartial()
clear()
public HardwareLocation.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public HardwareLocation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public HardwareLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
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];
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) = { ... }
clone()
public HardwareLocation.Builder clone()
Overrides
getDefaultInstanceForType()
public HardwareLocation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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];
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];
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
|
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()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(HardwareLocation other)
public HardwareLocation.Builder mergeFrom(HardwareLocation other)
public HardwareLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public HardwareLocation.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HardwareLocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public HardwareLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HardwareLocation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final HardwareLocation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides