Class HardwareLocation (0.33.0)

publicfinalclass HardwareLocationextendsGeneratedMessageV3implementsHardwareLocationOrBuilder

Represents the location of one or many hardware.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

RACK_LOCATION_FIELD_NUMBER

publicstaticfinalintRACK_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

RACK_SPACE_FIELD_NUMBER

publicstaticfinalintRACK_SPACE_FIELD_NUMBER
Field Value
Type Description
int

SITE_FIELD_NUMBER

publicstaticfinalintSITE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticHardwareLocationgetDefaultInstance()
Returns
Type Description
HardwareLocation

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticHardwareLocation.BuildernewBuilder()
Returns
Type Description
HardwareLocation.Builder

newBuilder(HardwareLocation prototype)

publicstaticHardwareLocation.BuildernewBuilder(HardwareLocationprototype)
Parameter
Name Description
prototype HardwareLocation
Returns
Type Description
HardwareLocation.Builder

parseDelimitedFrom(InputStream input)

publicstaticHardwareLocationparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticHardwareLocationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticHardwareLocationparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticHardwareLocationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticHardwareLocationparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticHardwareLocationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticHardwareLocationparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticHardwareLocationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticHardwareLocationparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticHardwareLocationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticHardwareLocationparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticHardwareLocationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<HardwareLocation>parser()
Returns
Type Description
Parser<HardwareLocation>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicHardwareLocationgetDefaultInstanceForType()
Returns
Type Description
HardwareLocation

getParserForType()

publicParser<HardwareLocation>getParserForType()
Returns
Type Description
Parser<HardwareLocation>
Overrides

getRackLocation()

publicStringgetRackLocation()

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()

publicByteStringgetRackLocationBytes()

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)

publicRackSpacegetRackSpace(intindex)

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

getRackSpaceCount()

publicintgetRackSpaceCount()

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()

publicList<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)

publicRackSpaceOrBuildergetRackSpaceOrBuilder(intindex)

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()

publicList<?extendsRackSpaceOrBuilder>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>

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSite()

publicStringgetSite()

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()

publicByteStringgetSiteBytes()

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicHardwareLocation.BuildernewBuilderForType()
Returns
Type Description
HardwareLocation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedHardwareLocation.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HardwareLocation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicHardwareLocation.BuildertoBuilder()
Returns
Type Description
HardwareLocation.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.