Package com.google.cloud.compute.v1
Class LocationPolicyLocationConstraints.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
- com.google.cloud.compute.v1.LocationPolicyLocationConstraints.Builder
-
- All Implemented Interfaces:
LocationPolicyLocationConstraintsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LocationPolicyLocationConstraints
public static final class LocationPolicyLocationConstraints.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder> implements LocationPolicyLocationConstraintsOrBuilder
Per-zone constraints on location policy for this zone.
Protobuf typegoogle.cloud.compute.v1.LocationPolicyLocationConstraints
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationPolicyLocationConstraints.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LocationPolicyLocationConstraintsbuild()LocationPolicyLocationConstraintsbuildPartial()LocationPolicyLocationConstraints.Builderclear()LocationPolicyLocationConstraints.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LocationPolicyLocationConstraints.BuilderclearMaxCount()Maximum number of items that are allowed to be placed in this zone.LocationPolicyLocationConstraints.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LocationPolicyLocationConstraints.Builderclone()LocationPolicyLocationConstraintsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetMaxCount()Maximum number of items that are allowed to be placed in this zone.booleanhasMaxCount()Maximum number of items that are allowed to be placed in this zone.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LocationPolicyLocationConstraints.BuildermergeFrom(LocationPolicyLocationConstraints other)LocationPolicyLocationConstraints.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LocationPolicyLocationConstraints.BuildermergeFrom(com.google.protobuf.Message other)LocationPolicyLocationConstraints.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LocationPolicyLocationConstraints.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LocationPolicyLocationConstraints.BuildersetMaxCount(int value)Maximum number of items that are allowed to be placed in this zone.LocationPolicyLocationConstraints.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LocationPolicyLocationConstraints.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
clear
public LocationPolicyLocationConstraints.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
getDefaultInstanceForType
public LocationPolicyLocationConstraints getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocationPolicyLocationConstraints build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocationPolicyLocationConstraints buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocationPolicyLocationConstraints.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
setField
public LocationPolicyLocationConstraints.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
clearField
public LocationPolicyLocationConstraints.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
clearOneof
public LocationPolicyLocationConstraints.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
setRepeatedField
public LocationPolicyLocationConstraints.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
addRepeatedField
public LocationPolicyLocationConstraints.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
mergeFrom
public LocationPolicyLocationConstraints.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationPolicyLocationConstraints.Builder>
-
mergeFrom
public LocationPolicyLocationConstraints.Builder mergeFrom(LocationPolicyLocationConstraints other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
mergeFrom
public LocationPolicyLocationConstraints.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationPolicyLocationConstraints.Builder>- Throws:
IOException
-
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;- Specified by:
hasMaxCountin interfaceLocationPolicyLocationConstraintsOrBuilder- Returns:
- Whether the maxCount field is set.
-
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;- Specified by:
getMaxCountin interfaceLocationPolicyLocationConstraintsOrBuilder- Returns:
- The maxCount.
-
setMaxCount
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;- Parameters:
value- The maxCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUnknownFields
public final LocationPolicyLocationConstraints.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
mergeUnknownFields
public final LocationPolicyLocationConstraints.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
-