Class ResourcePool

  • All Implemented Interfaces:
    ResourcePoolOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ResourcePool
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getId

        public 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];
        Specified by:
        getId in interface ResourcePoolOrBuilder
        Returns:
        The id.
      • getIdBytes

        public 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];
        Specified by:
        getIdBytes in interface ResourcePoolOrBuilder
        Returns:
        The bytes for id.
      • hasMachineSpec

        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];
        Specified by:
        hasMachineSpec in interface ResourcePoolOrBuilder
        Returns:
        Whether the machineSpec field is set.
      • getMachineSpec

        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];
        Specified by:
        getMachineSpec in interface ResourcePoolOrBuilder
        Returns:
        The machineSpec.
      • getMachineSpecOrBuilder

        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];
        Specified by:
        getMachineSpecOrBuilder in interface ResourcePoolOrBuilder
      • hasReplicaCount

        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];
        Specified by:
        hasReplicaCount in interface ResourcePoolOrBuilder
        Returns:
        Whether the replicaCount field is set.
      • getReplicaCount

        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];
        Specified by:
        getReplicaCount in interface ResourcePoolOrBuilder
        Returns:
        The replicaCount.
      • hasDiskSpec

        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];
        Specified by:
        hasDiskSpec in interface ResourcePoolOrBuilder
        Returns:
        Whether the diskSpec field is set.
      • getDiskSpec

        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];
        Specified by:
        getDiskSpec in interface ResourcePoolOrBuilder
        Returns:
        The diskSpec.
      • getDiskSpecOrBuilder

        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];
        Specified by:
        getDiskSpecOrBuilder in interface ResourcePoolOrBuilder
      • getUsedReplicaCount

        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];
        Specified by:
        getUsedReplicaCount in interface ResourcePoolOrBuilder
        Returns:
        The usedReplicaCount.
      • hasAutoscalingSpec

        public boolean hasAutoscalingSpec()
         Optional. Optional spec to configure GKE autoscaling
         
        .google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec autoscaling_spec = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasAutoscalingSpec in interface ResourcePoolOrBuilder
        Returns:
        Whether the autoscalingSpec field is set.
      • getAutoscalingSpec

        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];
        Specified by:
        getAutoscalingSpec in interface ResourcePoolOrBuilder
        Returns:
        The autoscalingSpec.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ResourcePool parseFrom​(ByteBuffer data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ResourcePool parseFrom​(ByteBuffer data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ResourcePool parseFrom​(com.google.protobuf.ByteString data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ResourcePool parseFrom​(com.google.protobuf.ByteString data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ResourcePool parseFrom​(byte[] data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ResourcePool parseFrom​(byte[] data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ResourcePool parseFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Throws:
        IOException
      • newBuilderForType

        public ResourcePool.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ResourcePool.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ResourcePool.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static ResourcePool getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<ResourcePool> parser()
      • getParserForType

        public com.google.protobuf.Parser<ResourcePool> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ResourcePool getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder