Class AllocationPolicy.InstancePolicy.Builder (0.2.0)

public static final class AllocationPolicy.InstancePolicy.Builder extends GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicy.Builder> implements AllocationPolicy.InstancePolicyOrBuilder

InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.

Protobuf type google.cloud.batch.v1.AllocationPolicy.InstancePolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAccelerators(AllocationPolicy.Accelerator value)

public AllocationPolicy.InstancePolicy.Builder addAccelerators(AllocationPolicy.Accelerator value)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameter
NameDescription
valueAllocationPolicy.Accelerator
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

addAccelerators(AllocationPolicy.Accelerator.Builder builderForValue)

public AllocationPolicy.InstancePolicy.Builder addAccelerators(AllocationPolicy.Accelerator.Builder builderForValue)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameter
NameDescription
builderForValueAllocationPolicy.Accelerator.Builder
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

addAccelerators(int index, AllocationPolicy.Accelerator value)

public AllocationPolicy.InstancePolicy.Builder addAccelerators(int index, AllocationPolicy.Accelerator value)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameters
NameDescription
indexint
valueAllocationPolicy.Accelerator
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

addAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue)

public AllocationPolicy.InstancePolicy.Builder addAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameters
NameDescription
indexint
builderForValueAllocationPolicy.Accelerator.Builder
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

addAcceleratorsBuilder()

public AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder()

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Returns
TypeDescription
AllocationPolicy.Accelerator.Builder

addAcceleratorsBuilder(int index)

public AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder(int index)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.Accelerator.Builder

addAllAccelerators(Iterable<? extends AllocationPolicy.Accelerator> values)

public AllocationPolicy.InstancePolicy.Builder addAllAccelerators(Iterable<? extends AllocationPolicy.Accelerator> values)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.batch.v1.AllocationPolicy.Accelerator>
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

addAllDisks(Iterable<? extends AllocationPolicy.AttachedDisk> values)

public AllocationPolicy.InstancePolicy.Builder addAllDisks(Iterable<? extends AllocationPolicy.AttachedDisk> values)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk>
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

addDisks(AllocationPolicy.AttachedDisk value)

public AllocationPolicy.InstancePolicy.Builder addDisks(AllocationPolicy.AttachedDisk value)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
valueAllocationPolicy.AttachedDisk
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

addDisks(AllocationPolicy.AttachedDisk.Builder builderForValue)

public AllocationPolicy.InstancePolicy.Builder addDisks(AllocationPolicy.AttachedDisk.Builder builderForValue)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
builderForValueAllocationPolicy.AttachedDisk.Builder
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

addDisks(int index, AllocationPolicy.AttachedDisk value)

public AllocationPolicy.InstancePolicy.Builder addDisks(int index, AllocationPolicy.AttachedDisk value)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameters
NameDescription
indexint
valueAllocationPolicy.AttachedDisk
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

addDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)

public AllocationPolicy.InstancePolicy.Builder addDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameters
NameDescription
indexint
builderForValueAllocationPolicy.AttachedDisk.Builder
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

addDisksBuilder()

public AllocationPolicy.AttachedDisk.Builder addDisksBuilder()

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

addDisksBuilder(int index)

public AllocationPolicy.AttachedDisk.Builder addDisksBuilder(int index)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AllocationPolicy.InstancePolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides

build()

public AllocationPolicy.InstancePolicy build()
Returns
TypeDescription
AllocationPolicy.InstancePolicy

buildPartial()

public AllocationPolicy.InstancePolicy buildPartial()
Returns
TypeDescription
AllocationPolicy.InstancePolicy

clear()

public AllocationPolicy.InstancePolicy.Builder clear()
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides

clearAccelerators()

public AllocationPolicy.InstancePolicy.Builder clearAccelerators()

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

clearDisks()

public AllocationPolicy.InstancePolicy.Builder clearDisks()

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

clearField(Descriptors.FieldDescriptor field)

public AllocationPolicy.InstancePolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides

clearMachineType()

public AllocationPolicy.InstancePolicy.Builder clearMachineType()

The Compute Engine machine type.

string machine_type = 2;

Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

This builder for chaining.

clearMinCpuPlatform()

public AllocationPolicy.InstancePolicy.Builder clearMinCpuPlatform()

The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.

string min_cpu_platform = 3;

Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AllocationPolicy.InstancePolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides

clearProvisioningModel()

public AllocationPolicy.InstancePolicy.Builder clearProvisioningModel()

The provisioning model.

.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;

Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

This builder for chaining.

clone()

public AllocationPolicy.InstancePolicy.Builder clone()
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides

getAccelerators(int index)

public AllocationPolicy.Accelerator getAccelerators(int index)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.Accelerator

getAcceleratorsBuilder(int index)

public AllocationPolicy.Accelerator.Builder getAcceleratorsBuilder(int index)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.Accelerator.Builder

getAcceleratorsBuilderList()

public List<AllocationPolicy.Accelerator.Builder> getAcceleratorsBuilderList()

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Returns
TypeDescription
List<Builder>

getAcceleratorsCount()

public int getAcceleratorsCount()

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Returns
TypeDescription
int

getAcceleratorsList()

public List<AllocationPolicy.Accelerator> getAcceleratorsList()

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Returns
TypeDescription
List<Accelerator>

getAcceleratorsOrBuilder(int index)

public AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.AcceleratorOrBuilder

getAcceleratorsOrBuilderList()

public List<? extends AllocationPolicy.AcceleratorOrBuilder> getAcceleratorsOrBuilderList()

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder>

getDefaultInstanceForType()

public AllocationPolicy.InstancePolicy getDefaultInstanceForType()
Returns
TypeDescription
AllocationPolicy.InstancePolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisks(int index)

public AllocationPolicy.AttachedDisk getDisks(int index)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.AttachedDisk

getDisksBuilder(int index)

public AllocationPolicy.AttachedDisk.Builder getDisksBuilder(int index)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.AttachedDisk.Builder

getDisksBuilderList()

public List<AllocationPolicy.AttachedDisk.Builder> getDisksBuilderList()

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
List<Builder>

getDisksCount()

public int getDisksCount()

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
int

getDisksList()

public List<AllocationPolicy.AttachedDisk> getDisksList()

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
List<AttachedDisk>

getDisksOrBuilder(int index)

public AllocationPolicy.AttachedDiskOrBuilder getDisksOrBuilder(int index)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.AttachedDiskOrBuilder

getDisksOrBuilderList()

public List<? extends AllocationPolicy.AttachedDiskOrBuilder> getDisksOrBuilderList()

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder>

getMachineType()

public String getMachineType()

The Compute Engine machine type.

string machine_type = 2;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The Compute Engine machine type.

string machine_type = 2;

Returns
TypeDescription
ByteString

The bytes for machineType.

getMinCpuPlatform()

public String getMinCpuPlatform()

The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.

string min_cpu_platform = 3;

Returns
TypeDescription
String

The minCpuPlatform.

getMinCpuPlatformBytes()

public ByteString getMinCpuPlatformBytes()

The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.

string min_cpu_platform = 3;

Returns
TypeDescription
ByteString

The bytes for minCpuPlatform.

getProvisioningModel()

public AllocationPolicy.ProvisioningModel getProvisioningModel()

The provisioning model.

.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;

Returns
TypeDescription
AllocationPolicy.ProvisioningModel

The provisioningModel.

getProvisioningModelValue()

public int getProvisioningModelValue()

The provisioning model.

.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for provisioningModel.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AllocationPolicy.InstancePolicy other)

public AllocationPolicy.InstancePolicy.Builder mergeFrom(AllocationPolicy.InstancePolicy other)
Parameter
NameDescription
otherAllocationPolicy.InstancePolicy
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AllocationPolicy.InstancePolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AllocationPolicy.InstancePolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocationPolicy.InstancePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides

removeAccelerators(int index)

public AllocationPolicy.InstancePolicy.Builder removeAccelerators(int index)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

removeDisks(int index)

public AllocationPolicy.InstancePolicy.Builder removeDisks(int index)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

setAccelerators(int index, AllocationPolicy.Accelerator value)

public AllocationPolicy.InstancePolicy.Builder setAccelerators(int index, AllocationPolicy.Accelerator value)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameters
NameDescription
indexint
valueAllocationPolicy.Accelerator
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

setAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue)

public AllocationPolicy.InstancePolicy.Builder setAccelerators(int index, AllocationPolicy.Accelerator.Builder builderForValue)

The accelerators attached to each VM instance. Not yet implemented.

repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;

Parameters
NameDescription
indexint
builderForValueAllocationPolicy.Accelerator.Builder
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

setDisks(int index, AllocationPolicy.AttachedDisk value)

public AllocationPolicy.InstancePolicy.Builder setDisks(int index, AllocationPolicy.AttachedDisk value)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameters
NameDescription
indexint
valueAllocationPolicy.AttachedDisk
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

setDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)

public AllocationPolicy.InstancePolicy.Builder setDisks(int index, AllocationPolicy.AttachedDisk.Builder builderForValue)

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the attached VM is deleted.

repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;

Parameters
NameDescription
indexint
builderForValueAllocationPolicy.AttachedDisk.Builder
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AllocationPolicy.InstancePolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides

setMachineType(String value)

public AllocationPolicy.InstancePolicy.Builder setMachineType(String value)

The Compute Engine machine type.

string machine_type = 2;

Parameter
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public AllocationPolicy.InstancePolicy.Builder setMachineTypeBytes(ByteString value)

The Compute Engine machine type.

string machine_type = 2;

Parameter
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

This builder for chaining.

setMinCpuPlatform(String value)

public AllocationPolicy.InstancePolicy.Builder setMinCpuPlatform(String value)

The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.

string min_cpu_platform = 3;

Parameter
NameDescription
valueString

The minCpuPlatform to set.

Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

This builder for chaining.

setMinCpuPlatformBytes(ByteString value)

public AllocationPolicy.InstancePolicy.Builder setMinCpuPlatformBytes(ByteString value)

The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.

string min_cpu_platform = 3;

Parameter
NameDescription
valueByteString

The bytes for minCpuPlatform to set.

Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

This builder for chaining.

setProvisioningModel(AllocationPolicy.ProvisioningModel value)

public AllocationPolicy.InstancePolicy.Builder setProvisioningModel(AllocationPolicy.ProvisioningModel value)

The provisioning model.

.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;

Parameter
NameDescription
valueAllocationPolicy.ProvisioningModel

The provisioningModel to set.

Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

This builder for chaining.

setProvisioningModelValue(int value)

public AllocationPolicy.InstancePolicy.Builder setProvisioningModelValue(int value)

The provisioning model.

.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;

Parameter
NameDescription
valueint

The enum numeric value on the wire for provisioningModel to set.

Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AllocationPolicy.InstancePolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AllocationPolicy.InstancePolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocationPolicy.InstancePolicy.Builder
Overrides