Class BatchDedicatedResources.Builder (3.44.0)

public static final class BatchDedicatedResources.Builder extends GeneratedMessageV3.Builder<BatchDedicatedResources.Builder> implements BatchDedicatedResourcesOrBuilder

A description of resources that are used for performing batch operations, are dedicated to a Model, and need manual configuration.

Protobuf type google.cloud.aiplatform.v1beta1.BatchDedicatedResources

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDedicatedResources build()
Returns
Type Description
BatchDedicatedResources

buildPartial()

public BatchDedicatedResources buildPartial()
Returns
Type Description
BatchDedicatedResources

clear()

public BatchDedicatedResources.Builder clear()
Returns
Type Description
BatchDedicatedResources.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMachineSpec()

public BatchDedicatedResources.Builder clearMachineSpec()

Required. Immutable. The specification of a single machine.

.google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
BatchDedicatedResources.Builder

clearMaxReplicaCount()

public BatchDedicatedResources.Builder clearMaxReplicaCount()

Immutable. The maximum number of machine replicas the batch operation may be scaled to. The default value is 10.

int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
BatchDedicatedResources.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartingReplicaCount()

public BatchDedicatedResources.Builder clearStartingReplicaCount()

Immutable. The number of machine replicas used at the start of the batch operation. If not set, Vertex AI decides starting number, not greater than max_replica_count

int32 starting_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
BatchDedicatedResources.Builder

This builder for chaining.

clone()

public BatchDedicatedResources.Builder clone()
Returns
Type Description
BatchDedicatedResources.Builder
Overrides

getDefaultInstanceForType()

public BatchDedicatedResources getDefaultInstanceForType()
Returns
Type Description
BatchDedicatedResources

getDescriptorForType()

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

getMachineSpec()

public MachineSpec getMachineSpec()

Required. Immutable. The specification of a single machine.

.google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
MachineSpec

The machineSpec.

getMachineSpecBuilder()

public MachineSpec.Builder getMachineSpecBuilder()

Required. Immutable. The specification of a single machine.

.google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
MachineSpec.Builder

getMachineSpecOrBuilder()

public MachineSpecOrBuilder getMachineSpecOrBuilder()

Required. Immutable. The specification of a single machine.

.google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
MachineSpecOrBuilder

getMaxReplicaCount()

public int getMaxReplicaCount()

Immutable. The maximum number of machine replicas the batch operation may be scaled to. The default value is 10.

int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The maxReplicaCount.

getStartingReplicaCount()

public int getStartingReplicaCount()

Immutable. The number of machine replicas used at the start of the batch operation. If not set, Vertex AI decides starting number, not greater than max_replica_count

int32 starting_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The startingReplicaCount.

hasMachineSpec()

public boolean hasMachineSpec()

Required. Immutable. The specification of a single machine.

.google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the machineSpec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchDedicatedResources other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMachineSpec(MachineSpec value)

public BatchDedicatedResources.Builder mergeMachineSpec(MachineSpec value)

Required. Immutable. The specification of a single machine.

.google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value MachineSpec
Returns
Type Description
BatchDedicatedResources.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineSpec(MachineSpec value)

public BatchDedicatedResources.Builder setMachineSpec(MachineSpec value)

Required. Immutable. The specification of a single machine.

.google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value MachineSpec
Returns
Type Description
BatchDedicatedResources.Builder

setMachineSpec(MachineSpec.Builder builderForValue)

public BatchDedicatedResources.Builder setMachineSpec(MachineSpec.Builder builderForValue)

Required. Immutable. The specification of a single machine.

.google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue MachineSpec.Builder
Returns
Type Description
BatchDedicatedResources.Builder

setMaxReplicaCount(int value)

public BatchDedicatedResources.Builder setMaxReplicaCount(int value)

Immutable. The maximum number of machine replicas the batch operation may be scaled to. The default value is 10.

int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

The maxReplicaCount to set.

Returns
Type Description
BatchDedicatedResources.Builder

This builder for chaining.

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

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

setStartingReplicaCount(int value)

public BatchDedicatedResources.Builder setStartingReplicaCount(int value)

Immutable. The number of machine replicas used at the start of the batch operation. If not set, Vertex AI decides starting number, not greater than max_replica_count

int32 starting_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

The startingReplicaCount to set.

Returns
Type Description
BatchDedicatedResources.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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