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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public BatchDedicatedResources.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public BatchDedicatedResources build()
Returns
public BatchDedicatedResources buildPartial()
Returns
public BatchDedicatedResources.Builder clear()
Returns
Overrides
public BatchDedicatedResources.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
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
public BatchDedicatedResources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public BatchDedicatedResources.Builder clone()
Returns
Overrides
public BatchDedicatedResources getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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
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
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.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public BatchDedicatedResources.Builder mergeFrom(BatchDedicatedResources other)
Parameter
Returns
public BatchDedicatedResources.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public BatchDedicatedResources.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
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
Returns
public final BatchDedicatedResources.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public BatchDedicatedResources.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
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
public BatchDedicatedResources.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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
public final BatchDedicatedResources.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides