Package com.google.cloud.batch.v1alpha
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.v1alpha.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.v1alpha.AllocationPolicy.PlacementPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
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<AllocationPolicy.PlacementPolicy.Builder>
-
clear
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
getDefaultInstanceForType
public AllocationPolicy.PlacementPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy.PlacementPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy.PlacementPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
setField
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
clearField
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
clearOneof
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
setRepeatedField
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
addRepeatedField
public AllocationPolicy.PlacementPolicy.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<AllocationPolicy.PlacementPolicy.Builder>
-
mergeFrom
public AllocationPolicy.PlacementPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.PlacementPolicy.Builder>
-
mergeFrom
public AllocationPolicy.PlacementPolicy.Builder mergeFrom(AllocationPolicy.PlacementPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getCollocation
in 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:
getCollocationBytes
in 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:
getMaxDistance
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>
-
mergeUnknownFields
public final AllocationPolicy.PlacementPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.PlacementPolicy.Builder>
-
-