Class WorkerPoolSpec

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

    public final class WorkerPoolSpec
    extends com.google.protobuf.GeneratedMessageV3
    implements WorkerPoolSpecOrBuilder
     Represents the spec of a worker pool in a job.
     
    Protobuf type google.cloud.aiplatform.v1beta1.WorkerPoolSpec
    See Also:
    Serialized Form
    • Field Detail

      • CONTAINER_SPEC_FIELD_NUMBER

        public static final int CONTAINER_SPEC_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PYTHON_PACKAGE_SPEC_FIELD_NUMBER

        public static final int PYTHON_PACKAGE_SPEC_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MACHINE_SPEC_FIELD_NUMBER

        public static final int MACHINE_SPEC_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REPLICA_COUNT_FIELD_NUMBER

        public static final int REPLICA_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NFS_MOUNTS_FIELD_NUMBER

        public static final int NFS_MOUNTS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • hasContainerSpec

        public boolean hasContainerSpec()
         The custom container task.
         
        .google.cloud.aiplatform.v1beta1.ContainerSpec container_spec = 6;
        Specified by:
        hasContainerSpec in interface WorkerPoolSpecOrBuilder
        Returns:
        Whether the containerSpec field is set.
      • hasPythonPackageSpec

        public boolean hasPythonPackageSpec()
         The Python packaged task.
         
        .google.cloud.aiplatform.v1beta1.PythonPackageSpec python_package_spec = 7;
        Specified by:
        hasPythonPackageSpec in interface WorkerPoolSpecOrBuilder
        Returns:
        Whether the pythonPackageSpec field is set.
      • hasMachineSpec

        public boolean hasMachineSpec()
         Optional. Immutable. The specification of a single machine.
         
        .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        hasMachineSpec in interface WorkerPoolSpecOrBuilder
        Returns:
        Whether the machineSpec field is set.
      • getMachineSpec

        public MachineSpec getMachineSpec()
         Optional. Immutable. The specification of a single machine.
         
        .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getMachineSpec in interface WorkerPoolSpecOrBuilder
        Returns:
        The machineSpec.
      • getMachineSpecOrBuilder

        public MachineSpecOrBuilder getMachineSpecOrBuilder()
         Optional. Immutable. The specification of a single machine.
         
        .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getMachineSpecOrBuilder in interface WorkerPoolSpecOrBuilder
      • getReplicaCount

        public long getReplicaCount()
         Optional. The number of worker replicas to use for this worker pool.
         
        int64 replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReplicaCount in interface WorkerPoolSpecOrBuilder
        Returns:
        The replicaCount.
      • getNfsMountsList

        public List<NfsMount> getNfsMountsList()
         Optional. List of NFS mount spec.
         
        repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getNfsMountsList in interface WorkerPoolSpecOrBuilder
      • getNfsMountsCount

        public int getNfsMountsCount()
         Optional. List of NFS mount spec.
         
        repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getNfsMountsCount in interface WorkerPoolSpecOrBuilder
      • getNfsMounts

        public NfsMount getNfsMounts​(int index)
         Optional. List of NFS mount spec.
         
        repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getNfsMounts in interface WorkerPoolSpecOrBuilder
      • getNfsMountsOrBuilder

        public NfsMountOrBuilder getNfsMountsOrBuilder​(int index)
         Optional. List of NFS mount spec.
         
        repeated .google.cloud.aiplatform.v1beta1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getNfsMountsOrBuilder in interface WorkerPoolSpecOrBuilder
      • hasDiskSpec

        public boolean hasDiskSpec()
         Disk spec.
         
        .google.cloud.aiplatform.v1beta1.DiskSpec disk_spec = 5;
        Specified by:
        hasDiskSpec in interface WorkerPoolSpecOrBuilder
        Returns:
        Whether the diskSpec field is set.
      • 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 WorkerPoolSpec parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static WorkerPoolSpec getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<WorkerPoolSpec> 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 WorkerPoolSpec getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder