Package com.google.cloud.aiplatform.v1
Class WorkerPoolSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WorkerPoolSpec.Builder>
com.google.cloud.aiplatform.v1.WorkerPoolSpec.Builder
- All Implemented Interfaces:
WorkerPoolSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- WorkerPoolSpec
public static final class WorkerPoolSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WorkerPoolSpec.Builder>
implements WorkerPoolSpecOrBuilder
Represents the spec of a worker pool in a job.Protobuf type
google.cloud.aiplatform.v1.WorkerPoolSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllLustreMounts(Iterable<? extends LustreMount> values) Optional.addAllNfsMounts(Iterable<? extends NfsMount> values) Optional.addLustreMounts(int index, LustreMount value) Optional.addLustreMounts(int index, LustreMount.Builder builderForValue) Optional.addLustreMounts(LustreMount value) Optional.addLustreMounts(LustreMount.Builder builderForValue) Optional.Optional.addLustreMountsBuilder(int index) Optional.addNfsMounts(int index, NfsMount value) Optional.addNfsMounts(int index, NfsMount.Builder builderForValue) Optional.addNfsMounts(NfsMount value) Optional.addNfsMounts(NfsMount.Builder builderForValue) Optional.Optional.addNfsMountsBuilder(int index) Optional.build()clear()The custom container task.Disk spec.Optional.Optional.Optional.The Python packaged task.Optional.The custom container task.The custom container task.The custom container task.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDisk spec.Disk spec.Disk spec.getLustreMounts(int index) Optional.getLustreMountsBuilder(int index) Optional.Optional.intOptional.Optional.getLustreMountsOrBuilder(int index) Optional.List<? extends LustreMountOrBuilder>Optional.Optional.Optional.Optional.getNfsMounts(int index) Optional.getNfsMountsBuilder(int index) Optional.Optional.intOptional.Optional.getNfsMountsOrBuilder(int index) Optional.List<? extends NfsMountOrBuilder>Optional.The Python packaged task.The Python packaged task.The Python packaged task.longOptional.booleanThe custom container task.booleanDisk spec.booleanOptional.booleanThe Python packaged task.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeContainerSpec(ContainerSpec value) The custom container task.mergeDiskSpec(DiskSpec value) Disk spec.mergeFrom(WorkerPoolSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMachineSpec(MachineSpec value) Optional.The Python packaged task.removeLustreMounts(int index) Optional.removeNfsMounts(int index) Optional.setContainerSpec(ContainerSpec value) The custom container task.setContainerSpec(ContainerSpec.Builder builderForValue) The custom container task.setDiskSpec(DiskSpec value) Disk spec.setDiskSpec(DiskSpec.Builder builderForValue) Disk spec.setLustreMounts(int index, LustreMount value) Optional.setLustreMounts(int index, LustreMount.Builder builderForValue) Optional.setMachineSpec(MachineSpec value) Optional.setMachineSpec(MachineSpec.Builder builderForValue) Optional.setNfsMounts(int index, NfsMount value) Optional.setNfsMounts(int index, NfsMount.Builder builderForValue) Optional.The Python packaged task.setPythonPackageSpec(PythonPackageSpec.Builder builderForValue) The Python packaged task.setReplicaCount(long value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<WorkerPoolSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<WorkerPoolSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<WorkerPoolSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkerPoolSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<WorkerPoolSpec.Builder>
-
mergeFrom
public WorkerPoolSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkerPoolSpec.Builder>- Throws:
IOException
-
getTaskCase
- Specified by:
getTaskCasein interfaceWorkerPoolSpecOrBuilder
-
clearTask
-
hasContainerSpec
public boolean hasContainerSpec()The custom container task.
.google.cloud.aiplatform.v1.ContainerSpec container_spec = 6;- Specified by:
hasContainerSpecin interfaceWorkerPoolSpecOrBuilder- Returns:
- Whether the containerSpec field is set.
-
getContainerSpec
The custom container task.
.google.cloud.aiplatform.v1.ContainerSpec container_spec = 6;- Specified by:
getContainerSpecin interfaceWorkerPoolSpecOrBuilder- Returns:
- The containerSpec.
-
setContainerSpec
The custom container task.
.google.cloud.aiplatform.v1.ContainerSpec container_spec = 6; -
setContainerSpec
The custom container task.
.google.cloud.aiplatform.v1.ContainerSpec container_spec = 6; -
mergeContainerSpec
The custom container task.
.google.cloud.aiplatform.v1.ContainerSpec container_spec = 6; -
clearContainerSpec
The custom container task.
.google.cloud.aiplatform.v1.ContainerSpec container_spec = 6; -
getContainerSpecBuilder
The custom container task.
.google.cloud.aiplatform.v1.ContainerSpec container_spec = 6; -
getContainerSpecOrBuilder
The custom container task.
.google.cloud.aiplatform.v1.ContainerSpec container_spec = 6;- Specified by:
getContainerSpecOrBuilderin interfaceWorkerPoolSpecOrBuilder
-
hasPythonPackageSpec
public boolean hasPythonPackageSpec()The Python packaged task.
.google.cloud.aiplatform.v1.PythonPackageSpec python_package_spec = 7;- Specified by:
hasPythonPackageSpecin interfaceWorkerPoolSpecOrBuilder- Returns:
- Whether the pythonPackageSpec field is set.
-
getPythonPackageSpec
The Python packaged task.
.google.cloud.aiplatform.v1.PythonPackageSpec python_package_spec = 7;- Specified by:
getPythonPackageSpecin interfaceWorkerPoolSpecOrBuilder- Returns:
- The pythonPackageSpec.
-
setPythonPackageSpec
The Python packaged task.
.google.cloud.aiplatform.v1.PythonPackageSpec python_package_spec = 7; -
setPythonPackageSpec
The Python packaged task.
.google.cloud.aiplatform.v1.PythonPackageSpec python_package_spec = 7; -
mergePythonPackageSpec
The Python packaged task.
.google.cloud.aiplatform.v1.PythonPackageSpec python_package_spec = 7; -
clearPythonPackageSpec
The Python packaged task.
.google.cloud.aiplatform.v1.PythonPackageSpec python_package_spec = 7; -
getPythonPackageSpecBuilder
The Python packaged task.
.google.cloud.aiplatform.v1.PythonPackageSpec python_package_spec = 7; -
getPythonPackageSpecOrBuilder
The Python packaged task.
.google.cloud.aiplatform.v1.PythonPackageSpec python_package_spec = 7;- Specified by:
getPythonPackageSpecOrBuilderin interfaceWorkerPoolSpecOrBuilder
-
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:
hasMachineSpecin interfaceWorkerPoolSpecOrBuilder- Returns:
- Whether the machineSpec field is set.
-
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:
getMachineSpecin interfaceWorkerPoolSpecOrBuilder- Returns:
- The machineSpec.
-
setMachineSpec
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]; -
setMachineSpec
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]; -
mergeMachineSpec
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]; -
clearMachineSpec
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]; -
getMachineSpecBuilder
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]; -
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:
getMachineSpecOrBuilderin interfaceWorkerPoolSpecOrBuilder
-
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:
getReplicaCountin interfaceWorkerPoolSpecOrBuilder- Returns:
- The replicaCount.
-
setReplicaCount
Optional. The number of worker replicas to use for this worker pool.
int64 replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The replicaCount to set.- Returns:
- This builder for chaining.
-
clearReplicaCount
Optional. The number of worker replicas to use for this worker pool.
int64 replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getNfsMountsList
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNfsMountsListin interfaceWorkerPoolSpecOrBuilder
-
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:
getNfsMountsCountin interfaceWorkerPoolSpecOrBuilder
-
getNfsMounts
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNfsMountsin interfaceWorkerPoolSpecOrBuilder
-
setNfsMounts
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setNfsMounts
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addNfsMounts
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addNfsMounts
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addNfsMounts
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addNfsMounts
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addAllNfsMounts
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearNfsMounts
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
removeNfsMounts
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getNfsMountsBuilder
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getNfsMountsOrBuilder
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNfsMountsOrBuilderin interfaceWorkerPoolSpecOrBuilder
-
getNfsMountsOrBuilderList
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNfsMountsOrBuilderListin interfaceWorkerPoolSpecOrBuilder
-
addNfsMountsBuilder
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addNfsMountsBuilder
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getNfsMountsBuilderList
Optional. List of NFS mount spec.
repeated .google.cloud.aiplatform.v1.NfsMount nfs_mounts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getLustreMountsList
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLustreMountsListin interfaceWorkerPoolSpecOrBuilder
-
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:
getLustreMountsCountin interfaceWorkerPoolSpecOrBuilder
-
getLustreMounts
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLustreMountsin interfaceWorkerPoolSpecOrBuilder
-
setLustreMounts
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
setLustreMounts
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
addLustreMounts
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
addLustreMounts
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
addLustreMounts
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
addLustreMounts
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
addAllLustreMounts
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
clearLustreMounts
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
removeLustreMounts
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getLustreMountsBuilder
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getLustreMountsOrBuilder
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLustreMountsOrBuilderin interfaceWorkerPoolSpecOrBuilder
-
getLustreMountsOrBuilderList
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLustreMountsOrBuilderListin interfaceWorkerPoolSpecOrBuilder
-
addLustreMountsBuilder
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
addLustreMountsBuilder
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getLustreMountsBuilderList
Optional. List of Lustre mounts.
repeated .google.cloud.aiplatform.v1.LustreMount lustre_mounts = 9 [(.google.api.field_behavior) = OPTIONAL]; -
hasDiskSpec
public boolean hasDiskSpec()Disk spec.
.google.cloud.aiplatform.v1.DiskSpec disk_spec = 5;- Specified by:
hasDiskSpecin interfaceWorkerPoolSpecOrBuilder- Returns:
- Whether the diskSpec field is set.
-
getDiskSpec
Disk spec.
.google.cloud.aiplatform.v1.DiskSpec disk_spec = 5;- Specified by:
getDiskSpecin interfaceWorkerPoolSpecOrBuilder- Returns:
- The diskSpec.
-
setDiskSpec
Disk spec.
.google.cloud.aiplatform.v1.DiskSpec disk_spec = 5; -
setDiskSpec
Disk spec.
.google.cloud.aiplatform.v1.DiskSpec disk_spec = 5; -
mergeDiskSpec
Disk spec.
.google.cloud.aiplatform.v1.DiskSpec disk_spec = 5; -
clearDiskSpec
Disk spec.
.google.cloud.aiplatform.v1.DiskSpec disk_spec = 5; -
getDiskSpecBuilder
Disk spec.
.google.cloud.aiplatform.v1.DiskSpec disk_spec = 5; -
getDiskSpecOrBuilder
Disk spec.
.google.cloud.aiplatform.v1.DiskSpec disk_spec = 5;- Specified by:
getDiskSpecOrBuilderin interfaceWorkerPoolSpecOrBuilder
-