Class ResourceStatusScheduling.Builder (1.64.0)

public static final class ResourceStatusScheduling.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceStatusScheduling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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