public final class PythonPackageSpec extends com.google.protobuf.GeneratedMessageV3 implements PythonPackageSpecOrBuilder
The spec of a Python packaged code.Protobuf type
google.cloud.aiplatform.v1.PythonPackageSpec| Modifier and Type | Class and Description |
|---|---|
static class |
PythonPackageSpec.Builder
The spec of a Python packaged code.
|
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 |
ARGS_FIELD_NUMBER |
static int |
ENV_FIELD_NUMBER |
static int |
EXECUTOR_IMAGE_URI_FIELD_NUMBER |
static int |
PACKAGE_URIS_FIELD_NUMBER |
static int |
PYTHON_MODULE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getArgs(int index)
Command line arguments to be passed to the Python task.
|
com.google.protobuf.ByteString |
getArgsBytes(int index)
Command line arguments to be passed to the Python task.
|
int |
getArgsCount()
Command line arguments to be passed to the Python task.
|
com.google.protobuf.ProtocolStringList |
getArgsList()
Command line arguments to be passed to the Python task.
|
static PythonPackageSpec |
getDefaultInstance() |
PythonPackageSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
EnvVar |
getEnv(int index)
Environment variables to be passed to the python module.
|
int |
getEnvCount()
Environment variables to be passed to the python module.
|
List<EnvVar> |
getEnvList()
Environment variables to be passed to the python module.
|
EnvVarOrBuilder |
getEnvOrBuilder(int index)
Environment variables to be passed to the python module.
|
List<? extends EnvVarOrBuilder> |
getEnvOrBuilderList()
Environment variables to be passed to the python module.
|
String |
getExecutorImageUri()
Required.
|
com.google.protobuf.ByteString |
getExecutorImageUriBytes()
Required.
|
String |
getPackageUris(int index)
Required.
|
com.google.protobuf.ByteString |
getPackageUrisBytes(int index)
Required.
|
int |
getPackageUrisCount()
Required.
|
com.google.protobuf.ProtocolStringList |
getPackageUrisList()
Required.
|
com.google.protobuf.Parser<PythonPackageSpec> |
getParserForType() |
String |
getPythonModule()
Required.
|
com.google.protobuf.ByteString |
getPythonModuleBytes()
Required.
|
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PythonPackageSpec.Builder |
newBuilder() |
static PythonPackageSpec.Builder |
newBuilder(PythonPackageSpec prototype) |
PythonPackageSpec.Builder |
newBuilderForType() |
protected PythonPackageSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static PythonPackageSpec |
parseDelimitedFrom(InputStream input) |
static PythonPackageSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PythonPackageSpec |
parseFrom(byte[] data) |
static PythonPackageSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PythonPackageSpec |
parseFrom(ByteBuffer data) |
static PythonPackageSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PythonPackageSpec |
parseFrom(com.google.protobuf.ByteString data) |
static PythonPackageSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PythonPackageSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PythonPackageSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PythonPackageSpec |
parseFrom(InputStream input) |
static PythonPackageSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PythonPackageSpec> |
parser() |
PythonPackageSpec.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 EXECUTOR_IMAGE_URI_FIELD_NUMBER
public static final int PACKAGE_URIS_FIELD_NUMBER
public static final int PYTHON_MODULE_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
public static final int ENV_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 getExecutorImageUri()
Required. The URI of a container image in Artifact Registry that will run the provided Python package. Vertex AI provides a wide range of executor images with pre-installed packages to meet users' various use cases. See the list of [pre-built containers for training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). You must use an image from this list.
string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];getExecutorImageUri in interface PythonPackageSpecOrBuilderpublic com.google.protobuf.ByteString getExecutorImageUriBytes()
Required. The URI of a container image in Artifact Registry that will run the provided Python package. Vertex AI provides a wide range of executor images with pre-installed packages to meet users' various use cases. See the list of [pre-built containers for training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). You must use an image from this list.
string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];getExecutorImageUriBytes in interface PythonPackageSpecOrBuilderpublic com.google.protobuf.ProtocolStringList getPackageUrisList()
Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];getPackageUrisList in interface PythonPackageSpecOrBuilderpublic int getPackageUrisCount()
Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];getPackageUrisCount in interface PythonPackageSpecOrBuilderpublic String getPackageUris(int index)
Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];getPackageUris in interface PythonPackageSpecOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getPackageUrisBytes(int index)
Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];getPackageUrisBytes in interface PythonPackageSpecOrBuilderindex - The index of the value to return.public String getPythonModule()
Required. The Python module name to run after installing the packages.
string python_module = 3 [(.google.api.field_behavior) = REQUIRED];getPythonModule in interface PythonPackageSpecOrBuilderpublic com.google.protobuf.ByteString getPythonModuleBytes()
Required. The Python module name to run after installing the packages.
string python_module = 3 [(.google.api.field_behavior) = REQUIRED];getPythonModuleBytes in interface PythonPackageSpecOrBuilderpublic com.google.protobuf.ProtocolStringList getArgsList()
Command line arguments to be passed to the Python task.
repeated string args = 4;getArgsList in interface PythonPackageSpecOrBuilderpublic int getArgsCount()
Command line arguments to be passed to the Python task.
repeated string args = 4;getArgsCount in interface PythonPackageSpecOrBuilderpublic String getArgs(int index)
Command line arguments to be passed to the Python task.
repeated string args = 4;getArgs in interface PythonPackageSpecOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getArgsBytes(int index)
Command line arguments to be passed to the Python task.
repeated string args = 4;getArgsBytes in interface PythonPackageSpecOrBuilderindex - The index of the value to return.public List<EnvVar> getEnvList()
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;getEnvList in interface PythonPackageSpecOrBuilderpublic List<? extends EnvVarOrBuilder> getEnvOrBuilderList()
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;getEnvOrBuilderList in interface PythonPackageSpecOrBuilderpublic int getEnvCount()
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;getEnvCount in interface PythonPackageSpecOrBuilderpublic EnvVar getEnv(int index)
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;getEnv in interface PythonPackageSpecOrBuilderpublic EnvVarOrBuilder getEnvOrBuilder(int index)
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;getEnvOrBuilder in interface PythonPackageSpecOrBuilderpublic 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 PythonPackageSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PythonPackageSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PythonPackageSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PythonPackageSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PythonPackageSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PythonPackageSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PythonPackageSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static PythonPackageSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PythonPackageSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PythonPackageSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PythonPackageSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PythonPackageSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PythonPackageSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PythonPackageSpec.Builder newBuilder()
public static PythonPackageSpec.Builder newBuilder(PythonPackageSpec prototype)
public PythonPackageSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PythonPackageSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PythonPackageSpec getDefaultInstance()
public static com.google.protobuf.Parser<PythonPackageSpec> parser()
public com.google.protobuf.Parser<PythonPackageSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PythonPackageSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.