Class JobStatus.InstanceStatus.Builder (0.55.0)

public static final class JobStatus.InstanceStatus.Builder extends GeneratedMessageV3.Builder<JobStatus.InstanceStatus.Builder> implements JobStatus.InstanceStatusOrBuilder

VM instance status.

Protobuf type google.cloud.batch.v1alpha.JobStatus.InstanceStatus

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobStatus.InstanceStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobStatus.InstanceStatus.Builder
Overrides

build()

public JobStatus.InstanceStatus build()
Returns
Type Description
JobStatus.InstanceStatus

buildPartial()

public JobStatus.InstanceStatus buildPartial()
Returns
Type Description
JobStatus.InstanceStatus

clear()

public JobStatus.InstanceStatus.Builder clear()
Returns
Type Description
JobStatus.InstanceStatus.Builder
Overrides

clearBootDisk()

public JobStatus.InstanceStatus.Builder clearBootDisk()

The VM boot disk.

.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;

Returns
Type Description
JobStatus.InstanceStatus.Builder

clearField(Descriptors.FieldDescriptor field)

public JobStatus.InstanceStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
JobStatus.InstanceStatus.Builder
Overrides

clearMachineType()

public JobStatus.InstanceStatus.Builder clearMachineType()

The Compute Engine machine type.

string machine_type = 1;

Returns
Type Description
JobStatus.InstanceStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public JobStatus.InstanceStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
JobStatus.InstanceStatus.Builder
Overrides

clearProvisioningModel()

public JobStatus.InstanceStatus.Builder clearProvisioningModel()

The VM instance provisioning model.

.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 2;

Returns
Type Description
JobStatus.InstanceStatus.Builder

This builder for chaining.

clearTaskPack()

public JobStatus.InstanceStatus.Builder clearTaskPack()

The max number of tasks can be assigned to this instance type.

int64 task_pack = 3;

Returns
Type Description
JobStatus.InstanceStatus.Builder

This builder for chaining.

clone()

public JobStatus.InstanceStatus.Builder clone()
Returns
Type Description
JobStatus.InstanceStatus.Builder
Overrides

getBootDisk()

public AllocationPolicy.Disk getBootDisk()

The VM boot disk.

.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;

Returns
Type Description
AllocationPolicy.Disk

The bootDisk.

getBootDiskBuilder()

public AllocationPolicy.Disk.Builder getBootDiskBuilder()

The VM boot disk.

.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;

Returns
Type Description
AllocationPolicy.Disk.Builder

getBootDiskOrBuilder()

public AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder()

The VM boot disk.

.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;

Returns
Type Description
AllocationPolicy.DiskOrBuilder

getDefaultInstanceForType()

public JobStatus.InstanceStatus getDefaultInstanceForType()
Returns
Type Description
JobStatus.InstanceStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMachineType()

public String getMachineType()

The Compute Engine machine type.

string machine_type = 1;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The Compute Engine machine type.

string machine_type = 1;

Returns
Type Description
ByteString

The bytes for machineType.

getProvisioningModel()

public AllocationPolicy.ProvisioningModel getProvisioningModel()

The VM instance provisioning model.

.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 2;

Returns
Type Description
AllocationPolicy.ProvisioningModel

The provisioningModel.

getProvisioningModelValue()

public int getProvisioningModelValue()

The VM instance provisioning model.

.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 2;

Returns
Type Description
int

The enum numeric value on the wire for provisioningModel.

getTaskPack()

public long getTaskPack()

The max number of tasks can be assigned to this instance type.

int64 task_pack = 3;

Returns
Type Description
long

The taskPack.

hasBootDisk()

public boolean hasBootDisk()

The VM boot disk.

.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;

Returns
Type Description
boolean

Whether the bootDisk field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBootDisk(AllocationPolicy.Disk value)

public JobStatus.InstanceStatus.Builder mergeBootDisk(AllocationPolicy.Disk value)

The VM boot disk.

.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;

Parameter
Name Description
value AllocationPolicy.Disk
Returns
Type Description
JobStatus.InstanceStatus.Builder

mergeFrom(JobStatus.InstanceStatus other)

public JobStatus.InstanceStatus.Builder mergeFrom(JobStatus.InstanceStatus other)
Parameter
Name Description
other JobStatus.InstanceStatus
Returns
Type Description
JobStatus.InstanceStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JobStatus.InstanceStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
JobStatus.InstanceStatus.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public JobStatus.InstanceStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
JobStatus.InstanceStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.InstanceStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
JobStatus.InstanceStatus.Builder
Overrides

setBootDisk(AllocationPolicy.Disk value)

public JobStatus.InstanceStatus.Builder setBootDisk(AllocationPolicy.Disk value)

The VM boot disk.

.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;

Parameter
Name Description
value AllocationPolicy.Disk
Returns
Type Description
JobStatus.InstanceStatus.Builder

setBootDisk(AllocationPolicy.Disk.Builder builderForValue)

public JobStatus.InstanceStatus.Builder setBootDisk(AllocationPolicy.Disk.Builder builderForValue)

The VM boot disk.

.google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 4;

Parameter
Name Description
builderForValue AllocationPolicy.Disk.Builder
Returns
Type Description
JobStatus.InstanceStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public JobStatus.InstanceStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobStatus.InstanceStatus.Builder
Overrides

setMachineType(String value)

public JobStatus.InstanceStatus.Builder setMachineType(String value)

The Compute Engine machine type.

string machine_type = 1;

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
JobStatus.InstanceStatus.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public JobStatus.InstanceStatus.Builder setMachineTypeBytes(ByteString value)

The Compute Engine machine type.

string machine_type = 1;

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
JobStatus.InstanceStatus.Builder

This builder for chaining.

setProvisioningModel(AllocationPolicy.ProvisioningModel value)

public JobStatus.InstanceStatus.Builder setProvisioningModel(AllocationPolicy.ProvisioningModel value)

The VM instance provisioning model.

.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 2;

Parameter
Name Description
value AllocationPolicy.ProvisioningModel

The provisioningModel to set.

Returns
Type Description
JobStatus.InstanceStatus.Builder

This builder for chaining.

setProvisioningModelValue(int value)

public JobStatus.InstanceStatus.Builder setProvisioningModelValue(int value)

The VM instance provisioning model.

.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel provisioning_model = 2;

Parameter
Name Description
value int

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

Returns
Type Description
JobStatus.InstanceStatus.Builder

This builder for chaining.

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

public JobStatus.InstanceStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
JobStatus.InstanceStatus.Builder
Overrides

setTaskPack(long value)

public JobStatus.InstanceStatus.Builder setTaskPack(long value)

The max number of tasks can be assigned to this instance type.

int64 task_pack = 3;

Parameter
Name Description
value long

The taskPack to set.

Returns
Type Description
JobStatus.InstanceStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.InstanceStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
JobStatus.InstanceStatus.Builder
Overrides