Class LocationPolicyLocationConstraints.Builder (1.93.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class LocationPolicyLocationConstraints.Builder extends GeneratedMessage.Builder<LocationPolicyLocationConstraints.Builder> implements LocationPolicyLocationConstraintsOrBuilder
Per-zone constraints on location policy for this zone.
Protobuf type google.cloud.compute.v1.LocationPolicyLocationConstraints
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public LocationPolicyLocationConstraints build()
buildPartial()
public LocationPolicyLocationConstraints buildPartial()
clear()
public LocationPolicyLocationConstraints.Builder clear()
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;
getDefaultInstanceForType()
public LocationPolicyLocationConstraints getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 |
| Type |
Description |
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 |
| Type |
Description |
boolean |
Whether the maxCount field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(LocationPolicyLocationConstraints other)
public LocationPolicyLocationConstraints.Builder mergeFrom(LocationPolicyLocationConstraints other)
public LocationPolicyLocationConstraints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LocationPolicyLocationConstraints.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
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 |
| Name |
Description |
value |
int
The maxCount to set.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-19 UTC.
[null,null,["Last updated 2026-06-19 UTC."],[],[]]