public static final class AllocationPolicy.PlacementPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder> implements AllocationPolicy.PlacementPolicyOrBuilder
PlacementPolicy describes a group placement policy for the VMs controlled by this AllocationPolicy.Protobuf type
google.cloud.batch.v1.AllocationPolicy.PlacementPolicy| Modifier and Type | Method and Description |
|---|---|
AllocationPolicy.PlacementPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AllocationPolicy.PlacementPolicy |
build() |
AllocationPolicy.PlacementPolicy |
buildPartial() |
AllocationPolicy.PlacementPolicy.Builder |
clear() |
AllocationPolicy.PlacementPolicy.Builder |
clearCollocation()
UNSPECIFIED vs.
|
AllocationPolicy.PlacementPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AllocationPolicy.PlacementPolicy.Builder |
clearMaxDistance()
When specified, causes the job to fail if more than max_distance logical
switches are required between VMs.
|
AllocationPolicy.PlacementPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AllocationPolicy.PlacementPolicy.Builder |
clone() |
String |
getCollocation()
UNSPECIFIED vs.
|
com.google.protobuf.ByteString |
getCollocationBytes()
UNSPECIFIED vs.
|
AllocationPolicy.PlacementPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getMaxDistance()
When specified, causes the job to fail if more than max_distance logical
switches are required between VMs.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AllocationPolicy.PlacementPolicy.Builder |
mergeFrom(AllocationPolicy.PlacementPolicy other) |
AllocationPolicy.PlacementPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AllocationPolicy.PlacementPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
AllocationPolicy.PlacementPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AllocationPolicy.PlacementPolicy.Builder |
setCollocation(String value)
UNSPECIFIED vs.
|
AllocationPolicy.PlacementPolicy.Builder |
setCollocationBytes(com.google.protobuf.ByteString value)
UNSPECIFIED vs.
|
AllocationPolicy.PlacementPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AllocationPolicy.PlacementPolicy.Builder |
setMaxDistance(long value)
When specified, causes the job to fail if more than max_distance logical
switches are required between VMs.
|
AllocationPolicy.PlacementPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AllocationPolicy.PlacementPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>public AllocationPolicy.PlacementPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>public AllocationPolicy.PlacementPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AllocationPolicy.PlacementPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AllocationPolicy.PlacementPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AllocationPolicy.PlacementPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>public AllocationPolicy.PlacementPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>public AllocationPolicy.PlacementPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>public AllocationPolicy.PlacementPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>public AllocationPolicy.PlacementPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>public AllocationPolicy.PlacementPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>public AllocationPolicy.PlacementPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationPolicy.PlacementPolicy.Builder>public AllocationPolicy.PlacementPolicy.Builder mergeFrom(AllocationPolicy.PlacementPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>public AllocationPolicy.PlacementPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationPolicy.PlacementPolicy.Builder>IOExceptionpublic String getCollocation()
UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you want VMs to be located close to each other for low network latency between the VMs. No placement policy will be generated when collocation is UNSPECIFIED.
string collocation = 1;getCollocation in interface AllocationPolicy.PlacementPolicyOrBuilderpublic com.google.protobuf.ByteString getCollocationBytes()
UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you want VMs to be located close to each other for low network latency between the VMs. No placement policy will be generated when collocation is UNSPECIFIED.
string collocation = 1;getCollocationBytes in interface AllocationPolicy.PlacementPolicyOrBuilderpublic AllocationPolicy.PlacementPolicy.Builder setCollocation(String value)
UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you want VMs to be located close to each other for low network latency between the VMs. No placement policy will be generated when collocation is UNSPECIFIED.
string collocation = 1;value - The collocation to set.public AllocationPolicy.PlacementPolicy.Builder clearCollocation()
UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you want VMs to be located close to each other for low network latency between the VMs. No placement policy will be generated when collocation is UNSPECIFIED.
string collocation = 1;public AllocationPolicy.PlacementPolicy.Builder setCollocationBytes(com.google.protobuf.ByteString value)
UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you want VMs to be located close to each other for low network latency between the VMs. No placement policy will be generated when collocation is UNSPECIFIED.
string collocation = 1;value - The bytes for collocation to set.public long getMaxDistance()
When specified, causes the job to fail if more than max_distance logical switches are required between VMs. Batch uses the most compact possible placement of VMs even when max_distance is not specified. An explicit max_distance makes that level of compactness a strict requirement. Not yet implemented
int64 max_distance = 2;getMaxDistance in interface AllocationPolicy.PlacementPolicyOrBuilderpublic AllocationPolicy.PlacementPolicy.Builder setMaxDistance(long value)
When specified, causes the job to fail if more than max_distance logical switches are required between VMs. Batch uses the most compact possible placement of VMs even when max_distance is not specified. An explicit max_distance makes that level of compactness a strict requirement. Not yet implemented
int64 max_distance = 2;value - The maxDistance to set.public AllocationPolicy.PlacementPolicy.Builder clearMaxDistance()
When specified, causes the job to fail if more than max_distance logical switches are required between VMs. Batch uses the most compact possible placement of VMs even when max_distance is not specified. An explicit max_distance makes that level of compactness a strict requirement. Not yet implemented
int64 max_distance = 2;public final AllocationPolicy.PlacementPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>public final AllocationPolicy.PlacementPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>Copyright © 2025 Google LLC. All rights reserved.