Interface ResourcePoolOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResourcePool
,ResourcePool.Builder
public interface ResourcePoolOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourcePool.AutoscalingSpec
getAutoscalingSpec()
Optional.ResourcePool.AutoscalingSpecOrBuilder
getAutoscalingSpecOrBuilder()
Optional.DiskSpec
getDiskSpec()
Optional.DiskSpecOrBuilder
getDiskSpecOrBuilder()
Optional.String
getId()
Immutable.com.google.protobuf.ByteString
getIdBytes()
Immutable.MachineSpec
getMachineSpec()
Required.MachineSpecOrBuilder
getMachineSpecOrBuilder()
Required.long
getReplicaCount()
Optional.long
getUsedReplicaCount()
Output only.boolean
hasAutoscalingSpec()
Optional.boolean
hasDiskSpec()
Optional.boolean
hasMachineSpec()
Required.boolean
hasReplicaCount()
Optional.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getId
String getId()
Immutable. The unique ID in a PersistentResource to refer the this resource pool. User can specify it if need to use it, otherwise we will generate it automatically.
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()
Immutable. The unique ID in a PersistentResource to refer the this resource pool. User can specify it if need to use it, otherwise we will generate it automatically.
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- Returns:
- The bytes for id.
-
hasMachineSpec
boolean hasMachineSpec()
Required. Immutable. The specification of a single machine.
.google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
- Returns:
- Whether the machineSpec field is set.
-
getMachineSpec
MachineSpec getMachineSpec()
Required. Immutable. The specification of a single machine.
.google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
- Returns:
- The machineSpec.
-
getMachineSpecOrBuilder
MachineSpecOrBuilder getMachineSpecOrBuilder()
Required. Immutable. The specification of a single machine.
.google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
-
hasReplicaCount
boolean hasReplicaCount()
Optional. The total number of machines to use for this resource pool.
optional int64 replica_count = 3 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- Whether the replicaCount field is set.
-
getReplicaCount
long getReplicaCount()
Optional. The total number of machines to use for this resource pool.
optional int64 replica_count = 3 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The replicaCount.
-
hasDiskSpec
boolean hasDiskSpec()
Optional. Disk spec for the machine in this node pool.
.google.cloud.aiplatform.v1beta1.DiskSpec disk_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- Whether the diskSpec field is set.
-
getDiskSpec
DiskSpec getDiskSpec()
Optional. Disk spec for the machine in this node pool.
.google.cloud.aiplatform.v1beta1.DiskSpec disk_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The diskSpec.
-
getDiskSpecOrBuilder
DiskSpecOrBuilder getDiskSpecOrBuilder()
Optional. Disk spec for the machine in this node pool.
.google.cloud.aiplatform.v1beta1.DiskSpec disk_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getUsedReplicaCount
long getUsedReplicaCount()
Output only. The number of machines currently in use by training jobs for this resource pool. Will replace idle_replica_count.
int64 used_replica_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The usedReplicaCount.
-
hasAutoscalingSpec
boolean hasAutoscalingSpec()
Optional. Optional spec to configure GKE autoscaling
.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec autoscaling_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- Whether the autoscalingSpec field is set.
-
getAutoscalingSpec
ResourcePool.AutoscalingSpec getAutoscalingSpec()
Optional. Optional spec to configure GKE autoscaling
.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec autoscaling_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The autoscalingSpec.
-
getAutoscalingSpecOrBuilder
ResourcePool.AutoscalingSpecOrBuilder getAutoscalingSpecOrBuilder()
Optional. Optional spec to configure GKE autoscaling
.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec autoscaling_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
-
-