Package com.google.cloud.aiplatform.v1
Class PythonPackageSpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.PythonPackageSpec
- All Implemented Interfaces:
PythonPackageSpecOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class PythonPackageSpec
extends com.google.protobuf.GeneratedMessage
implements PythonPackageSpecOrBuilder
The spec of a Python packaged code.Protobuf type
google.cloud.aiplatform.v1.PythonPackageSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe spec of a Python packaged code.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetArgs(int index) Command line arguments to be passed to the Python task.com.google.protobuf.ByteStringgetArgsBytes(int index) Command line arguments to be passed to the Python task.intCommand line arguments to be passed to the Python task.com.google.protobuf.ProtocolStringListCommand line arguments to be passed to the Python task.static PythonPackageSpecstatic final com.google.protobuf.Descriptors.DescriptorgetEnv(int index) Environment variables to be passed to the python module.intEnvironment variables to be passed to the python module.Environment variables to be passed to the python module.getEnvOrBuilder(int index) Environment variables to be passed to the python module.List<? extends EnvVarOrBuilder>Environment variables to be passed to the python module.Required.com.google.protobuf.ByteStringRequired.getPackageUris(int index) Required.com.google.protobuf.ByteStringgetPackageUrisBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.com.google.protobuf.Parser<PythonPackageSpec>Required.com.google.protobuf.ByteStringRequired.intinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic PythonPackageSpec.Builderstatic PythonPackageSpec.BuildernewBuilder(PythonPackageSpec prototype) protected PythonPackageSpec.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static PythonPackageSpecparseDelimitedFrom(InputStream input) static PythonPackageSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PythonPackageSpecparseFrom(byte[] data) static PythonPackageSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PythonPackageSpecparseFrom(com.google.protobuf.ByteString data) static PythonPackageSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PythonPackageSpecparseFrom(com.google.protobuf.CodedInputStream input) static PythonPackageSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PythonPackageSpecparseFrom(InputStream input) static PythonPackageSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PythonPackageSpecparseFrom(ByteBuffer data) static PythonPackageSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PythonPackageSpec>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
EXECUTOR_IMAGE_URI_FIELD_NUMBER
public static final int EXECUTOR_IMAGE_URI_FIELD_NUMBER- See Also:
-
PACKAGE_URIS_FIELD_NUMBER
public static final int PACKAGE_URIS_FIELD_NUMBER- See Also:
-
PYTHON_MODULE_FIELD_NUMBER
public static final int PYTHON_MODULE_FIELD_NUMBER- See Also:
-
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER- See Also:
-
ENV_FIELD_NUMBER
public static final int ENV_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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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];- Specified by:
getExecutorImageUriin interfacePythonPackageSpecOrBuilder- Returns:
- The executorImageUri.
-
getExecutorImageUriBytes
public 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];- Specified by:
getExecutorImageUriBytesin interfacePythonPackageSpecOrBuilder- Returns:
- The bytes for executorImageUri.
-
getPackageUrisList
public 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];- Specified by:
getPackageUrisListin interfacePythonPackageSpecOrBuilder- Returns:
- A list containing the packageUris.
-
getPackageUrisCount
public 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];- Specified by:
getPackageUrisCountin interfacePythonPackageSpecOrBuilder- Returns:
- The count of packageUris.
-
getPackageUris
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];- Specified by:
getPackageUrisin interfacePythonPackageSpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The packageUris at the given index.
-
getPackageUrisBytes
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];- Specified by:
getPackageUrisBytesin interfacePythonPackageSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the packageUris at the given index.
-
getPythonModule
Required. The Python module name to run after installing the packages.
string python_module = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPythonModulein interfacePythonPackageSpecOrBuilder- Returns:
- The pythonModule.
-
getPythonModuleBytes
public 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];- Specified by:
getPythonModuleBytesin interfacePythonPackageSpecOrBuilder- Returns:
- The bytes for pythonModule.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()Command line arguments to be passed to the Python task.
repeated string args = 4;- Specified by:
getArgsListin interfacePythonPackageSpecOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()Command line arguments to be passed to the Python task.
repeated string args = 4;- Specified by:
getArgsCountin interfacePythonPackageSpecOrBuilder- Returns:
- The count of args.
-
getArgs
Command line arguments to be passed to the Python task.
repeated string args = 4;- Specified by:
getArgsin interfacePythonPackageSpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) Command line arguments to be passed to the Python task.
repeated string args = 4;- Specified by:
getArgsBytesin interfacePythonPackageSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
getEnvList
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;- Specified by:
getEnvListin interfacePythonPackageSpecOrBuilder
-
getEnvOrBuilderList
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;- Specified by:
getEnvOrBuilderListin interfacePythonPackageSpecOrBuilder
-
getEnvCount
public int getEnvCount()Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;- Specified by:
getEnvCountin interfacePythonPackageSpecOrBuilder
-
getEnv
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;- Specified by:
getEnvin interfacePythonPackageSpecOrBuilder
-
getEnvOrBuilder
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;- Specified by:
getEnvOrBuilderin interfacePythonPackageSpecOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PythonPackageSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PythonPackageSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PythonPackageSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PythonPackageSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PythonPackageSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PythonPackageSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PythonPackageSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PythonPackageSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PythonPackageSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PythonPackageSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PythonPackageSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-