Class JobStatus.InstanceStatus.Builder (0.2.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.v1.JobStatus.InstanceStatus

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public JobStatus.InstanceStatus build()
Returns
TypeDescription
JobStatus.InstanceStatus

buildPartial()

public JobStatus.InstanceStatus buildPartial()
Returns
TypeDescription
JobStatus.InstanceStatus

clear()

public JobStatus.InstanceStatus.Builder clear()
Returns
TypeDescription
JobStatus.InstanceStatus.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public JobStatus.InstanceStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
JobStatus.InstanceStatus.Builder
Overrides

clearMachineType()

public JobStatus.InstanceStatus.Builder clearMachineType()

The Compute Engine machine type.

string machine_type = 1;

Returns
TypeDescription
JobStatus.InstanceStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public JobStatus.InstanceStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
JobStatus.InstanceStatus.Builder
Overrides

clearProvisioningModel()

public JobStatus.InstanceStatus.Builder clearProvisioningModel()

The VM instance provisioning model.

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

Returns
TypeDescription
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
TypeDescription
JobStatus.InstanceStatus.Builder

This builder for chaining.

clone()

public JobStatus.InstanceStatus.Builder clone()
Returns
TypeDescription
JobStatus.InstanceStatus.Builder
Overrides

getDefaultInstanceForType()

public JobStatus.InstanceStatus getDefaultInstanceForType()
Returns
TypeDescription
JobStatus.InstanceStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMachineType()

public String getMachineType()

The Compute Engine machine type.

string machine_type = 1;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The Compute Engine machine type.

string machine_type = 1;

Returns
TypeDescription
ByteString

The bytes for machineType.

getProvisioningModel()

public AllocationPolicy.ProvisioningModel getProvisioningModel()

The VM instance provisioning model.

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

Returns
TypeDescription
AllocationPolicy.ProvisioningModel

The provisioningModel.

getProvisioningModelValue()

public int getProvisioningModelValue()

The VM instance provisioning model.

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

Returns
TypeDescription
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
TypeDescription
long

The taskPack.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(JobStatus.InstanceStatus other)

public JobStatus.InstanceStatus.Builder mergeFrom(JobStatus.InstanceStatus other)
Parameter
NameDescription
otherJobStatus.InstanceStatus
Returns
TypeDescription
JobStatus.InstanceStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public JobStatus.InstanceStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
JobStatus.InstanceStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.InstanceStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JobStatus.InstanceStatus.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineType(String value)

public JobStatus.InstanceStatus.Builder setMachineType(String value)

The Compute Engine machine type.

string machine_type = 1;

Parameter
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
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.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2;

Parameter
NameDescription
valueAllocationPolicy.ProvisioningModel

The provisioningModel to set.

Returns
TypeDescription
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.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The taskPack to set.

Returns
TypeDescription
JobStatus.InstanceStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.InstanceStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JobStatus.InstanceStatus.Builder
Overrides