public final class ResourcePool extends GeneratedMessageV3 implements ResourcePoolOrBuilder
Represents the spec a group of resources of same type, e.g. machine, disk
and accelerators, in a PersistentResource.
Protobuf type google.cloud.aiplatform.v1beta1.ResourcePool
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
public static final int AUTOSCALING_SPEC_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DISK_SPEC_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int IDLE_REPLICA_COUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int MACHINE_SPEC_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int REPLICA_COUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int USED_REPLICA_COUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static ResourcePool getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ResourcePool.Builder newBuilder()
public static ResourcePool.Builder newBuilder(ResourcePool prototype)
public static ResourcePool parseDelimitedFrom(InputStream input)
public static ResourcePool parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ResourcePool parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static ResourcePool parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResourcePool parseFrom(ByteString data)
public static ResourcePool parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResourcePool parseFrom(CodedInputStream input)
public static ResourcePool parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ResourcePool parseFrom(InputStream input)
public static ResourcePool parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ResourcePool parseFrom(ByteBuffer data)
public static ResourcePool parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ResourcePool> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public ResourcePool.AutoscalingSpec getAutoscalingSpec()
Optional. Optional spec to configure GKE autoscaling
.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec autoscaling_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
public ResourcePool.AutoscalingSpecOrBuilder getAutoscalingSpecOrBuilder()
Optional. Optional spec to configure GKE autoscaling
.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec autoscaling_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
public ResourcePool getDefaultInstanceForType()
public 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 |
---|
Type | Description |
DiskSpec | The diskSpec.
|
public 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];
Optional. 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) = OPTIONAL];
Returns |
---|
Type | Description |
String | The id.
|
public ByteString getIdBytes()
Optional. 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) = OPTIONAL];
public long getIdleReplicaCount()
Deprecated. google.cloud.aiplatform.v1beta1.ResourcePool.idle_replica_count is deprecated. See
google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=187
Output only. The number of machines currently not in use by training jobs
for this resource pool. Deprecated. Use used_replica_count
instead.
int64 idle_replica_count = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
long | The idleReplicaCount.
|
public 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];
public 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];
public Parser<ResourcePool> getParserForType()
Overrides
public 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 |
---|
Type | Description |
long | The replicaCount.
|
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public 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 |
---|
Type | Description |
long | The usedReplicaCount.
|
public boolean hasAutoscalingSpec()
Optional. Optional spec to configure GKE autoscaling
.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec autoscaling_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
boolean | Whether the autoscalingSpec field is set.
|
public 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 |
---|
Type | Description |
boolean | Whether the diskSpec field is set.
|
public 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 |
---|
Type | Description |
boolean | Whether the machineSpec field is set.
|
public 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 |
---|
Type | Description |
boolean | Whether the replicaCount field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ResourcePool.Builder newBuilderForType()
protected ResourcePool.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public ResourcePool.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides