Class BatchDedicatedResources.Builder (3.41.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.v1.BatchDedicatedResources

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDedicatedResources build()
Returns
TypeDescription
BatchDedicatedResources

buildPartial()

public BatchDedicatedResources buildPartial()
Returns
TypeDescription
BatchDedicatedResources

clear()

public BatchDedicatedResources.Builder clear()
Returns
TypeDescription
BatchDedicatedResources.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMachineSpec()

public BatchDedicatedResources.Builder clearMachineSpec()

Required. Immutable. The specification of a single machine.

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

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchDedicatedResources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BatchDedicatedResources.Builder

This builder for chaining.

clone()

public BatchDedicatedResources.Builder clone()
Returns
TypeDescription
BatchDedicatedResources.Builder
Overrides

getDefaultInstanceForType()

public BatchDedicatedResources getDefaultInstanceForType()
Returns
TypeDescription
BatchDedicatedResources

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMachineSpec()

public MachineSpec getMachineSpec()

Required. Immutable. The specification of a single machine.

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

Returns
TypeDescription
MachineSpec

The machineSpec.

getMachineSpecBuilder()

public MachineSpec.Builder getMachineSpecBuilder()

Required. Immutable. The specification of a single machine.

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

Returns
TypeDescription
MachineSpec.Builder

getMachineSpecOrBuilder()

public MachineSpecOrBuilder getMachineSpecOrBuilder()

Required. Immutable. The specification of a single machine.

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

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

The startingReplicaCount.

hasMachineSpec()

public boolean hasMachineSpec()

Required. Immutable. The specification of a single machine.

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

Returns
TypeDescription
boolean

Whether the machineSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchDedicatedResources other)

public BatchDedicatedResources.Builder mergeFrom(BatchDedicatedResources other)
Parameter
NameDescription
otherBatchDedicatedResources
Returns
TypeDescription
BatchDedicatedResources.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMachineSpec(MachineSpec value)

public BatchDedicatedResources.Builder mergeMachineSpec(MachineSpec value)

Required. Immutable. The specification of a single machine.

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

Parameter
NameDescription
valueMachineSpec
Returns
TypeDescription
BatchDedicatedResources.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineSpec(MachineSpec value)

public BatchDedicatedResources.Builder setMachineSpec(MachineSpec value)

Required. Immutable. The specification of a single machine.

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

Parameter
NameDescription
valueMachineSpec
Returns
TypeDescription
BatchDedicatedResources.Builder

setMachineSpec(MachineSpec.Builder builderForValue)

public BatchDedicatedResources.Builder setMachineSpec(MachineSpec.Builder builderForValue)

Required. Immutable. The specification of a single machine.

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

Parameter
NameDescription
builderForValueMachineSpec.Builder
Returns
TypeDescription
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
NameDescription
valueint

The maxReplicaCount to set.

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

The startingReplicaCount to set.

Returns
TypeDescription
BatchDedicatedResources.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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