Class RackSpace.Builder (0.8.0)

public static final class RackSpace.Builder extends GeneratedMessageV3.Builder<RackSpace.Builder> implements RackSpaceOrBuilder

Represents contiguous space in a rack.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.RackSpace

Implements

RackSpaceOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RackSpace.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RackSpace.Builder
Overrides

build()

public RackSpace build()
Returns
Type Description
RackSpace

buildPartial()

public RackSpace buildPartial()
Returns
Type Description
RackSpace

clear()

public RackSpace.Builder clear()
Returns
Type Description
RackSpace.Builder
Overrides

clearEndRackUnit()

public RackSpace.Builder clearEndRackUnit()

Required. Last rack unit of the rack space (inclusive).

int32 end_rack_unit = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RackSpace.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RackSpace.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RackSpace.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RackSpace.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RackSpace.Builder
Overrides

clearStartRackUnit()

public RackSpace.Builder clearStartRackUnit()

Required. First rack unit of the rack space (inclusive).

int32 start_rack_unit = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RackSpace.Builder

This builder for chaining.

clone()

public RackSpace.Builder clone()
Returns
Type Description
RackSpace.Builder
Overrides

getDefaultInstanceForType()

public RackSpace getDefaultInstanceForType()
Returns
Type Description
RackSpace

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndRackUnit()

public int getEndRackUnit()

Required. Last rack unit of the rack space (inclusive).

int32 end_rack_unit = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The endRackUnit.

getStartRackUnit()

public int getStartRackUnit()

Required. First rack unit of the rack space (inclusive).

int32 start_rack_unit = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The startRackUnit.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RackSpace other)

public RackSpace.Builder mergeFrom(RackSpace other)
Parameter
Name Description
other RackSpace
Returns
Type Description
RackSpace.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RackSpace.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RackSpace.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RackSpace.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RackSpace.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RackSpace.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RackSpace.Builder
Overrides

setEndRackUnit(int value)

public RackSpace.Builder setEndRackUnit(int value)

Required. Last rack unit of the rack space (inclusive).

int32 end_rack_unit = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The endRackUnit to set.

Returns
Type Description
RackSpace.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RackSpace.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RackSpace.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RackSpace.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RackSpace.Builder
Overrides

setStartRackUnit(int value)

public RackSpace.Builder setStartRackUnit(int value)

Required. First rack unit of the rack space (inclusive).

int32 start_rack_unit = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The startRackUnit to set.

Returns
Type Description
RackSpace.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RackSpace.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RackSpace.Builder
Overrides