Class ResourceStatusScheduling.Builder (1.93.0)

public static final class ResourceStatusScheduling.Builder extends GeneratedMessage.Builder<ResourceStatusScheduling.Builder> implements ResourceStatusSchedulingOrBuilder

Protobuf type google.cloud.compute.v1.ResourceStatusScheduling

Static Methods

getDescriptor()

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

Methods

build()

public ResourceStatusScheduling build()
Returns
Type Description
ResourceStatusScheduling

buildPartial()

public ResourceStatusScheduling buildPartial()
Returns
Type Description
ResourceStatusScheduling

clear()

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

clearAvailabilityDomain()

public ResourceStatusScheduling.Builder clearAvailabilityDomain()

Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.

optional int32 availability_domain = 252514344;

Returns
Type Description
ResourceStatusScheduling.Builder

This builder for chaining.

getAvailabilityDomain()

public int getAvailabilityDomain()

Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.

optional int32 availability_domain = 252514344;

Returns
Type Description
int

The availabilityDomain.

getDefaultInstanceForType()

public ResourceStatusScheduling getDefaultInstanceForType()
Returns
Type Description
ResourceStatusScheduling

getDescriptorForType()

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

hasAvailabilityDomain()

public boolean hasAvailabilityDomain()

Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.

optional int32 availability_domain = 252514344;

Returns
Type Description
boolean

Whether the availabilityDomain field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceStatusScheduling other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAvailabilityDomain(int value)

public ResourceStatusScheduling.Builder setAvailabilityDomain(int value)

Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.

optional int32 availability_domain = 252514344;

Parameter
Name Description
value int

The availabilityDomain to set.

Returns
Type Description
ResourceStatusScheduling.Builder

This builder for chaining.