public final class ResourcePool extends com.google.protobuf.GeneratedMessageV3 implements ResourcePoolOrBuilder
Represents the spec of a group of resources of the same type, for example machine type, disk, and accelerators, in a PersistentResource.Protobuf type
google.cloud.aiplatform.v1.ResourcePool| Modifier and Type | Class and Description |
|---|---|
static class |
ResourcePool.AutoscalingSpec
The min/max number of replicas allowed if enabling autoscaling
|
static interface |
ResourcePool.AutoscalingSpecOrBuilder |
static class |
ResourcePool.Builder
Represents the spec of a group of resources of the same type,
for example machine type, disk, and accelerators, in a PersistentResource.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUTOSCALING_SPEC_FIELD_NUMBER |
static int |
DISK_SPEC_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
MACHINE_SPEC_FIELD_NUMBER |
static int |
REPLICA_COUNT_FIELD_NUMBER |
static int |
USED_REPLICA_COUNT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ResourcePool.AutoscalingSpec |
getAutoscalingSpec()
Optional.
|
ResourcePool.AutoscalingSpecOrBuilder |
getAutoscalingSpecOrBuilder()
Optional.
|
static ResourcePool |
getDefaultInstance() |
ResourcePool |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
DiskSpec |
getDiskSpec()
Optional.
|
DiskSpecOrBuilder |
getDiskSpecOrBuilder()
Optional.
|
String |
getId()
Immutable.
|
com.google.protobuf.ByteString |
getIdBytes()
Immutable.
|
MachineSpec |
getMachineSpec()
Required.
|
MachineSpecOrBuilder |
getMachineSpecOrBuilder()
Required.
|
com.google.protobuf.Parser<ResourcePool> |
getParserForType() |
long |
getReplicaCount()
Optional.
|
int |
getSerializedSize() |
long |
getUsedReplicaCount()
Output only.
|
boolean |
hasAutoscalingSpec()
Optional.
|
boolean |
hasDiskSpec()
Optional.
|
int |
hashCode() |
boolean |
hasMachineSpec()
Required.
|
boolean |
hasReplicaCount()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ResourcePool.Builder |
newBuilder() |
static ResourcePool.Builder |
newBuilder(ResourcePool prototype) |
ResourcePool.Builder |
newBuilderForType() |
protected ResourcePool.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ResourcePool |
parseDelimitedFrom(InputStream input) |
static ResourcePool |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourcePool |
parseFrom(byte[] data) |
static ResourcePool |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourcePool |
parseFrom(ByteBuffer data) |
static ResourcePool |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourcePool |
parseFrom(com.google.protobuf.ByteString data) |
static ResourcePool |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourcePool |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ResourcePool |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourcePool |
parseFrom(InputStream input) |
static ResourcePool |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ResourcePool> |
parser() |
ResourcePool.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int MACHINE_SPEC_FIELD_NUMBER
public static final int REPLICA_COUNT_FIELD_NUMBER
public static final int DISK_SPEC_FIELD_NUMBER
public static final int USED_REPLICA_COUNT_FIELD_NUMBER
public static final int AUTOSCALING_SPEC_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getId()
Immutable. The unique ID in a PersistentResource for referring to this resource pool. User can specify it if necessary. Otherwise, it's generated automatically.
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];getId in interface ResourcePoolOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
Immutable. The unique ID in a PersistentResource for referring to this resource pool. User can specify it if necessary. Otherwise, it's generated automatically.
string id = 1 [(.google.api.field_behavior) = IMMUTABLE];getIdBytes in interface ResourcePoolOrBuilderpublic boolean hasMachineSpec()
Required. Immutable. The specification of a single machine.
.google.cloud.aiplatform.v1.MachineSpec machine_spec = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
hasMachineSpec in interface ResourcePoolOrBuilderpublic MachineSpec getMachineSpec()
Required. Immutable. The specification of a single machine.
.google.cloud.aiplatform.v1.MachineSpec machine_spec = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
getMachineSpec in interface ResourcePoolOrBuilderpublic MachineSpecOrBuilder getMachineSpecOrBuilder()
Required. Immutable. The specification of a single machine.
.google.cloud.aiplatform.v1.MachineSpec machine_spec = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
getMachineSpecOrBuilder in interface ResourcePoolOrBuilderpublic boolean hasReplicaCount()
Optional. The total number of machines to use for this resource pool.
optional int64 replica_count = 3 [(.google.api.field_behavior) = OPTIONAL];hasReplicaCount in interface ResourcePoolOrBuilderpublic long getReplicaCount()
Optional. The total number of machines to use for this resource pool.
optional int64 replica_count = 3 [(.google.api.field_behavior) = OPTIONAL];getReplicaCount in interface ResourcePoolOrBuilderpublic boolean hasDiskSpec()
Optional. Disk spec for the machine in this node pool.
.google.cloud.aiplatform.v1.DiskSpec disk_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
hasDiskSpec in interface ResourcePoolOrBuilderpublic DiskSpec getDiskSpec()
Optional. Disk spec for the machine in this node pool.
.google.cloud.aiplatform.v1.DiskSpec disk_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
getDiskSpec in interface ResourcePoolOrBuilderpublic DiskSpecOrBuilder getDiskSpecOrBuilder()
Optional. Disk spec for the machine in this node pool.
.google.cloud.aiplatform.v1.DiskSpec disk_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
getDiskSpecOrBuilder in interface ResourcePoolOrBuilderpublic 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];getUsedReplicaCount in interface ResourcePoolOrBuilderpublic boolean hasAutoscalingSpec()
Optional. Optional spec to configure GKE autoscaling
.google.cloud.aiplatform.v1.ResourcePool.AutoscalingSpec autoscaling_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
hasAutoscalingSpec in interface ResourcePoolOrBuilderpublic ResourcePool.AutoscalingSpec getAutoscalingSpec()
Optional. Optional spec to configure GKE autoscaling
.google.cloud.aiplatform.v1.ResourcePool.AutoscalingSpec autoscaling_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
getAutoscalingSpec in interface ResourcePoolOrBuilderpublic ResourcePool.AutoscalingSpecOrBuilder getAutoscalingSpecOrBuilder()
Optional. Optional spec to configure GKE autoscaling
.google.cloud.aiplatform.v1.ResourcePool.AutoscalingSpec autoscaling_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
getAutoscalingSpecOrBuilder in interface ResourcePoolOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ResourcePool parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePool parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePool parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePool parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePool parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePool parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePool parseFrom(InputStream input) throws IOException
IOExceptionpublic static ResourcePool parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResourcePool parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ResourcePool parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResourcePool parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ResourcePool parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ResourcePool.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ResourcePool.Builder newBuilder()
public static ResourcePool.Builder newBuilder(ResourcePool prototype)
public ResourcePool.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ResourcePool.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ResourcePool getDefaultInstance()
public static com.google.protobuf.Parser<ResourcePool> parser()
public com.google.protobuf.Parser<ResourcePool> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ResourcePool getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.