Class HardwareLocation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HardwareLocation.Builder>
com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder
- All Implemented Interfaces:
HardwareLocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HardwareLocation
public static final class HardwareLocation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HardwareLocation.Builder>
implements HardwareLocationOrBuilder
Represents the location of one or many hardware.Protobuf type
google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation-
Method Summary
Modifier and TypeMethodDescriptionaddAllRackSpace(Iterable<? extends RackSpace> values) Optional.addRackSpace(int index, RackSpace value) Optional.addRackSpace(int index, RackSpace.Builder builderForValue) Optional.addRackSpace(RackSpace value) Optional.addRackSpace(RackSpace.Builder builderForValue) Optional.Optional.addRackSpaceBuilder(int index) Optional.build()clear()Required.Optional.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getRackSpace(int index) Optional.getRackSpaceBuilder(int index) Optional.Optional.intOptional.Optional.getRackSpaceOrBuilder(int index) Optional.List<? extends RackSpaceOrBuilder>Optional.getSite()Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(HardwareLocation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeRackSpace(int index) Optional.setRackLocation(String value) Required.setRackLocationBytes(com.google.protobuf.ByteString value) Required.setRackSpace(int index, RackSpace value) Optional.setRackSpace(int index, RackSpace.Builder builderForValue) Optional.Required.setSiteBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HardwareLocation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HardwareLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HardwareLocation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HardwareLocation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HardwareLocation.Builder>
-
mergeFrom
public HardwareLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HardwareLocation.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getSitein interfaceHardwareLocationOrBuilder- Returns:
- The site.
-
getSiteBytes
public com.google.protobuf.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) = { ... }- Specified by:
getSiteBytesin interfaceHardwareLocationOrBuilder- Returns:
- The bytes for site.
-
setSite
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) = { ... }- Parameters:
value- The site to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setSiteBytes
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) = { ... }- Parameters:
value- The bytes for site to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getRackLocationin interfaceHardwareLocationOrBuilder- Returns:
- The rackLocation.
-
getRackLocationBytes
public com.google.protobuf.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];- Specified by:
getRackLocationBytesin interfaceHardwareLocationOrBuilder- Returns:
- The bytes for rackLocation.
-
setRackLocation
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];- Parameters:
value- The rackLocation to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setRackLocationBytes
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];- Parameters:
value- The bytes for rackLocation to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getRackSpaceListin interfaceHardwareLocationOrBuilder
-
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];- Specified by:
getRackSpaceCountin interfaceHardwareLocationOrBuilder
-
getRackSpace
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];- Specified by:
getRackSpacein interfaceHardwareLocationOrBuilder
-
setRackSpace
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
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
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
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
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
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]; -
addAllRackSpace
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]; -
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]; -
removeRackSpace
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]; -
getRackSpaceBuilder
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
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];- Specified by:
getRackSpaceOrBuilderin interfaceHardwareLocationOrBuilder
-
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];- Specified by:
getRackSpaceOrBuilderListin interfaceHardwareLocationOrBuilder
-
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
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]; -
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];
-