Package com.google.cloud.batch.v1
Class AllocationPolicy.PlacementPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>
-
- com.google.cloud.batch.v1.AllocationPolicy.PlacementPolicy.Builder
-
- All Implemented Interfaces:
AllocationPolicy.PlacementPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AllocationPolicy.PlacementPolicy
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 typegoogle.cloud.batch.v1.AllocationPolicy.PlacementPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationPolicy.PlacementPolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationPolicy.PlacementPolicybuild()AllocationPolicy.PlacementPolicybuildPartial()AllocationPolicy.PlacementPolicy.Builderclear()AllocationPolicy.PlacementPolicy.BuilderclearCollocation()UNSPECIFIED vs.AllocationPolicy.PlacementPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AllocationPolicy.PlacementPolicy.BuilderclearMaxDistance()When specified, causes the job to fail if more than max_distance logical switches are required between VMs.AllocationPolicy.PlacementPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AllocationPolicy.PlacementPolicy.Builderclone()StringgetCollocation()UNSPECIFIED vs.com.google.protobuf.ByteStringgetCollocationBytes()UNSPECIFIED vs.AllocationPolicy.PlacementPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetMaxDistance()When specified, causes the job to fail if more than max_distance logical switches are required between VMs.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AllocationPolicy.PlacementPolicy.BuildermergeFrom(AllocationPolicy.PlacementPolicy other)AllocationPolicy.PlacementPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AllocationPolicy.PlacementPolicy.BuildermergeFrom(com.google.protobuf.Message other)AllocationPolicy.PlacementPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AllocationPolicy.PlacementPolicy.BuildersetCollocation(String value)UNSPECIFIED vs.AllocationPolicy.PlacementPolicy.BuildersetCollocationBytes(com.google.protobuf.ByteString value)UNSPECIFIED vs.AllocationPolicy.PlacementPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationPolicy.PlacementPolicy.BuildersetMaxDistance(long value)When specified, causes the job to fail if more than max_distance logical switches are required between VMs.AllocationPolicy.PlacementPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
clear
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
getDefaultInstanceForType
public AllocationPolicy.PlacementPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy.PlacementPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy.PlacementPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
setField
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
clearField
public AllocationPolicy.PlacementPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>
-
clearOneof
public AllocationPolicy.PlacementPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>
-
setRepeatedField
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
addRepeatedField
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
mergeFrom
public AllocationPolicy.PlacementPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.PlacementPolicy.Builder>
-
mergeFrom
public AllocationPolicy.PlacementPolicy.Builder mergeFrom(AllocationPolicy.PlacementPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>
-
mergeFrom
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>- Throws:
IOException
-
getCollocation
public 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;- Specified by:
getCollocationin interfaceAllocationPolicy.PlacementPolicyOrBuilder- Returns:
- The collocation.
-
getCollocationBytes
public 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;- Specified by:
getCollocationBytesin interfaceAllocationPolicy.PlacementPolicyOrBuilder- Returns:
- The bytes for collocation.
-
setCollocation
public 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;- Parameters:
value- The collocation to set.- Returns:
- This builder for chaining.
-
clearCollocation
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;- Returns:
- This builder for chaining.
-
setCollocationBytes
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;- Parameters:
value- The bytes for collocation to set.- Returns:
- This builder for chaining.
-
getMaxDistance
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;- Specified by:
getMaxDistancein interfaceAllocationPolicy.PlacementPolicyOrBuilder- Returns:
- The maxDistance.
-
setMaxDistance
public 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;- Parameters:
value- The maxDistance to set.- Returns:
- This builder for chaining.
-
clearMaxDistance
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final AllocationPolicy.PlacementPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>
-
mergeUnknownFields
public final AllocationPolicy.PlacementPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>
-
-