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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LocationPolicyLocationConstraints
build()
LocationPolicyLocationConstraints
buildPartial()
LocationPolicyLocationConstraints.Builder
clear()
LocationPolicyLocationConstraints.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
LocationPolicyLocationConstraints.Builder
clearMaxCount()
Maximum number of items that are allowed to be placed in this zone.LocationPolicyLocationConstraints.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
LocationPolicyLocationConstraints.Builder
clone()
LocationPolicyLocationConstraints
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getMaxCount()
Maximum number of items that are allowed to be placed in this zone.boolean
hasMaxCount()
Maximum number of items that are allowed to be placed in this zone.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LocationPolicyLocationConstraints.Builder
mergeFrom(LocationPolicyLocationConstraints other)
LocationPolicyLocationConstraints.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LocationPolicyLocationConstraints.Builder
mergeFrom(com.google.protobuf.Message other)
LocationPolicyLocationConstraints.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
LocationPolicyLocationConstraints.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LocationPolicyLocationConstraints.Builder
setMaxCount(int value)
Maximum number of items that are allowed to be placed in this zone.LocationPolicyLocationConstraints.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
LocationPolicyLocationConstraints.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
clear
public LocationPolicyLocationConstraints.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
getDefaultInstanceForType
public LocationPolicyLocationConstraints getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocationPolicyLocationConstraints build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocationPolicyLocationConstraints buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocationPolicyLocationConstraints.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
setField
public LocationPolicyLocationConstraints.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
clearField
public LocationPolicyLocationConstraints.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
clearOneof
public LocationPolicyLocationConstraints.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
setRepeatedField
public LocationPolicyLocationConstraints.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
addRepeatedField
public LocationPolicyLocationConstraints.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
mergeFrom
public LocationPolicyLocationConstraints.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LocationPolicyLocationConstraints.Builder>
-
mergeFrom
public LocationPolicyLocationConstraints.Builder mergeFrom(LocationPolicyLocationConstraints other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasMaxCount
in 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:
getMaxCount
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
mergeUnknownFields
public final LocationPolicyLocationConstraints.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationPolicyLocationConstraints.Builder>
-
-