Class LocationPolicyLocationConstraints.Builder (1.22.0)

public static final class LocationPolicyLocationConstraints.Builder extends GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder> implements LocationPolicyLocationConstraintsOrBuilder

Per-zone constraints on location policy for this zone.

Protobuf type google.cloud.compute.v1.LocationPolicyLocationConstraints

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LocationPolicyLocationConstraints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides

build()

public LocationPolicyLocationConstraints build()
Returns
TypeDescription
LocationPolicyLocationConstraints

buildPartial()

public LocationPolicyLocationConstraints buildPartial()
Returns
TypeDescription
LocationPolicyLocationConstraints

clear()

public LocationPolicyLocationConstraints.Builder clear()
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LocationPolicyLocationConstraints.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides

clearMaxCount()

public LocationPolicyLocationConstraints.Builder clearMaxCount()

Maximum number of items that are allowed to be placed in this zone. The value must be non-negative.

optional int32 max_count = 287620724;

Returns
TypeDescription
LocationPolicyLocationConstraints.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LocationPolicyLocationConstraints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides

clone()

public LocationPolicyLocationConstraints.Builder clone()
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides

getDefaultInstanceForType()

public LocationPolicyLocationConstraints getDefaultInstanceForType()
Returns
TypeDescription
LocationPolicyLocationConstraints

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMaxCount()

public int getMaxCount()

Maximum number of items that are allowed to be placed in this zone. The value must be non-negative.

optional int32 max_count = 287620724;

Returns
TypeDescription
int

The maxCount.

hasMaxCount()

public boolean hasMaxCount()

Maximum number of items that are allowed to be placed in this zone. The value must be non-negative.

optional int32 max_count = 287620724;

Returns
TypeDescription
boolean

Whether the maxCount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LocationPolicyLocationConstraints other)

public LocationPolicyLocationConstraints.Builder mergeFrom(LocationPolicyLocationConstraints other)
Parameter
NameDescription
otherLocationPolicyLocationConstraints
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LocationPolicyLocationConstraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LocationPolicyLocationConstraints.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocationPolicyLocationConstraints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public LocationPolicyLocationConstraints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides

setMaxCount(int value)

public LocationPolicyLocationConstraints.Builder setMaxCount(int value)

Maximum number of items that are allowed to be placed in this zone. The value must be non-negative.

optional int32 max_count = 287620724;

Parameter
NameDescription
valueint

The maxCount to set.

Returns
TypeDescription
LocationPolicyLocationConstraints.Builder

This builder for chaining.

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

public LocationPolicyLocationConstraints.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LocationPolicyLocationConstraints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocationPolicyLocationConstraints.Builder
Overrides