Class HardwareLocation (0.2.0)

public final class HardwareLocation extends GeneratedMessageV3 implements HardwareLocationOrBuilder

Represents the location of one or many hardware.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation

Static Fields

RACK_LOCATION_FIELD_NUMBER

public static final int RACK_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

RACK_SPACE_FIELD_NUMBER

public static final int RACK_SPACE_FIELD_NUMBER
Field Value
Type Description
int

SITE_FIELD_NUMBER

public static final int SITE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HardwareLocation getDefaultInstance()
Returns
Type Description
HardwareLocation

getDescriptor()

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

newBuilder()

public static HardwareLocation.Builder newBuilder()
Returns
Type Description
HardwareLocation.Builder

newBuilder(HardwareLocation prototype)

public static HardwareLocation.Builder newBuilder(HardwareLocation prototype)
Parameter
Name Description
prototype HardwareLocation
Returns
Type Description
HardwareLocation.Builder

parseDelimitedFrom(InputStream input)

public static HardwareLocation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HardwareLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HardwareLocation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HardwareLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HardwareLocation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HardwareLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HardwareLocation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HardwareLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HardwareLocation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HardwareLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HardwareLocation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HardwareLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HardwareLocation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HardwareLocation> parser()
Returns
Type Description
Parser<HardwareLocation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public HardwareLocation getDefaultInstanceForType()
Returns
Type Description
HardwareLocation

getParserForType()

public Parser<HardwareLocation> getParserForType()
Returns
Type Description
Parser<HardwareLocation>
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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public HardwareLocation.Builder newBuilderForType()
Returns
Type Description
HardwareLocation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HardwareLocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HardwareLocation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public HardwareLocation.Builder toBuilder()
Returns
Type Description
HardwareLocation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException