Class WorkerPoolSpec

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.WorkerPoolSpec
All Implemented Interfaces:
WorkerPoolSpecOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class WorkerPoolSpec extends com.google.protobuf.GeneratedMessage implements WorkerPoolSpecOrBuilder
 Represents the spec of a worker pool in a job.
 
Protobuf type google.cloud.aiplatform.v1.WorkerPoolSpec
See Also:
  • Field Details

    • CONTAINER_SPEC_FIELD_NUMBER

      public static final int CONTAINER_SPEC_FIELD_NUMBER
      See Also:
    • PYTHON_PACKAGE_SPEC_FIELD_NUMBER

      public static final int PYTHON_PACKAGE_SPEC_FIELD_NUMBER
      See Also:
    • MACHINE_SPEC_FIELD_NUMBER

      public static final int MACHINE_SPEC_FIELD_NUMBER
      See Also:
    • REPLICA_COUNT_FIELD_NUMBER

      public static final int REPLICA_COUNT_FIELD_NUMBER
      See Also:
    • NFS_MOUNTS_FIELD_NUMBER

      public static final int NFS_MOUNTS_FIELD_NUMBER
      See Also:
    • LUSTRE_MOUNTS_FIELD_NUMBER

      public static final int LUSTRE_MOUNTS_FIELD_NUMBER
      See Also:
    • DISK_SPEC_FIELD_NUMBER

      public static final int DISK_SPEC_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTaskCase

      public WorkerPoolSpec.TaskCase getTaskCase()
      Specified by:
      getTaskCase in interface WorkerPoolSpecOrBuilder
    • hasContainerSpec

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

      public ContainerSpec getContainerSpec()
       The custom container task.
       
      .google.cloud.aiplatform.v1.ContainerSpec container_spec = 6;
      Specified by:
      getContainerSpec in interface WorkerPoolSpecOrBuilder
      Returns:
      The containerSpec.
    • getContainerSpecOrBuilder

      public ContainerSpecOrBuilder getContainerSpecOrBuilder()
       The custom container task.
       
      .google.cloud.aiplatform.v1.ContainerSpec container_spec = 6;
      Specified by:
      getContainerSpecOrBuilder in interface WorkerPoolSpecOrBuilder
    • hasPythonPackageSpec

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

      public PythonPackageSpec getPythonPackageSpec()
       The Python packaged task.
       
      .google.cloud.aiplatform.v1.PythonPackageSpec python_package_spec = 7;
      Specified by:
      getPythonPackageSpec in interface WorkerPoolSpecOrBuilder
      Returns:
      The pythonPackageSpec.
    • getPythonPackageSpecOrBuilder

      public PythonPackageSpecOrBuilder getPythonPackageSpecOrBuilder()
       The Python packaged task.
       
      .google.cloud.aiplatform.v1.PythonPackageSpec python_package_spec = 7;
      Specified by:
      getPythonPackageSpecOrBuilder in interface WorkerPoolSpecOrBuilder
    • hasMachineSpec

      public boolean hasMachineSpec()
       Optional. Immutable. The specification of a single machine.
       
      .google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNfsMountsList in interface WorkerPoolSpecOrBuilder
    • getNfsMountsOrBuilderList

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

      public int getNfsMountsCount()
       Optional. List of NFS mount spec.
       
      repeated .google.cloud.aiplatform.v1.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.v1.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.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNfsMountsOrBuilder in interface WorkerPoolSpecOrBuilder
    • getLustreMountsList

      public List<LustreMount> getLustreMountsList()
       Optional. List of Lustre mounts.
       
      repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLustreMountsList in interface WorkerPoolSpecOrBuilder
    • getLustreMountsOrBuilderList

      public List<? extends LustreMountOrBuilder> getLustreMountsOrBuilderList()
       Optional. List of Lustre mounts.
       
      repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLustreMountsOrBuilderList in interface WorkerPoolSpecOrBuilder
    • getLustreMountsCount

      public int getLustreMountsCount()
       Optional. List of Lustre mounts.
       
      repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLustreMountsCount in interface WorkerPoolSpecOrBuilder
    • getLustreMounts

      public LustreMount getLustreMounts(int index)
       Optional. List of Lustre mounts.
       
      repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLustreMounts in interface WorkerPoolSpecOrBuilder
    • getLustreMountsOrBuilder

      public LustreMountOrBuilder getLustreMountsOrBuilder(int index)
       Optional. List of Lustre mounts.
       
      repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLustreMountsOrBuilder in interface WorkerPoolSpecOrBuilder
    • hasDiskSpec

      public boolean hasDiskSpec()
       Disk spec.
       
      .google.cloud.aiplatform.v1.DiskSpec disk_spec = 5;
      Specified by:
      hasDiskSpec in interface WorkerPoolSpecOrBuilder
      Returns:
      Whether the diskSpec field is set.
    • getDiskSpec

      public DiskSpec getDiskSpec()
       Disk spec.
       
      .google.cloud.aiplatform.v1.DiskSpec disk_spec = 5;
      Specified by:
      getDiskSpec in interface WorkerPoolSpecOrBuilder
      Returns:
      The diskSpec.
    • getDiskSpecOrBuilder

      public DiskSpecOrBuilder getDiskSpecOrBuilder()
       Disk spec.
       
      .google.cloud.aiplatform.v1.DiskSpec disk_spec = 5;
      Specified by:
      getDiskSpecOrBuilder in interface WorkerPoolSpecOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WorkerPoolSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WorkerPoolSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WorkerPoolSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WorkerPoolSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static WorkerPoolSpec.Builder newBuilder()
    • newBuilder

      public static WorkerPoolSpec.Builder newBuilder(WorkerPoolSpec prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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