Class PythonPackageSpec
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.aiplatform.v1beta1.PythonPackageSpec
-
- All Implemented Interfaces:
PythonPackageSpecOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class PythonPackageSpec extends com.google.protobuf.GeneratedMessageV3 implements PythonPackageSpecOrBuilder
The spec of a Python packaged code.
Protobuf typegoogle.cloud.aiplatform.v1beta1.PythonPackageSpec- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPythonPackageSpec.BuilderThe spec of a Python packaged code.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intARGS_FIELD_NUMBERstatic intENV_FIELD_NUMBERstatic intEXECUTOR_IMAGE_URI_FIELD_NUMBERstatic intPACKAGE_URIS_FIELD_NUMBERstatic intPYTHON_MODULE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetArgs(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.intgetArgsCount()Command line arguments to be passed to the Python task.com.google.protobuf.ProtocolStringListgetArgsList()Command line arguments to be passed to the Python task.static PythonPackageSpecgetDefaultInstance()PythonPackageSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()EnvVargetEnv(int index)Environment variables to be passed to the python module.intgetEnvCount()Environment variables to be passed to the python module.List<EnvVar>getEnvList()Environment variables to be passed to the python module.EnvVarOrBuildergetEnvOrBuilder(int index)Environment variables to be passed to the python module.List<? extends EnvVarOrBuilder>getEnvOrBuilderList()Environment variables to be passed to the python module.StringgetExecutorImageUri()Required.com.google.protobuf.ByteStringgetExecutorImageUriBytes()Required.StringgetPackageUris(int index)Required.com.google.protobuf.ByteStringgetPackageUrisBytes(int index)Required.intgetPackageUrisCount()Required.com.google.protobuf.ProtocolStringListgetPackageUrisList()Required.com.google.protobuf.Parser<PythonPackageSpec>getParserForType()StringgetPythonModule()Required.com.google.protobuf.ByteStringgetPythonModuleBytes()Required.intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PythonPackageSpec.BuildernewBuilder()static PythonPackageSpec.BuildernewBuilder(PythonPackageSpec prototype)PythonPackageSpec.BuildernewBuilderForType()protected PythonPackageSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()PythonPackageSpec.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
EXECUTOR_IMAGE_URI_FIELD_NUMBER
public static final int EXECUTOR_IMAGE_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PACKAGE_URIS_FIELD_NUMBER
public static final int PACKAGE_URIS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PYTHON_MODULE_FIELD_NUMBER
public static final int PYTHON_MODULE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENV_FIELD_NUMBER
public static final int ENV_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getExecutorImageUri
public 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];- 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
public 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];- 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
public String 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
public String getArgs(int index)
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
public List<EnvVar> getEnvList()
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5;- Specified by:
getEnvListin interfacePythonPackageSpecOrBuilder
-
getEnvOrBuilderList
public List<? extends EnvVarOrBuilder> getEnvOrBuilderList()
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1beta1.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.v1beta1.EnvVar env = 5;- Specified by:
getEnvCountin interfacePythonPackageSpecOrBuilder
-
getEnv
public EnvVar getEnv(int index)
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5;- Specified by:
getEnvin interfacePythonPackageSpecOrBuilder
-
getEnvOrBuilder
public EnvVarOrBuilder getEnvOrBuilder(int index)
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 5;- Specified by:
getEnvOrBuilderin interfacePythonPackageSpecOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static PythonPackageSpec parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PythonPackageSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PythonPackageSpec parseDelimitedFrom(InputStream input) throws IOException
- 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
public PythonPackageSpec.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PythonPackageSpec.Builder newBuilder()
-
newBuilder
public static PythonPackageSpec.Builder newBuilder(PythonPackageSpec prototype)
-
toBuilder
public PythonPackageSpec.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PythonPackageSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static PythonPackageSpec getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PythonPackageSpec> parser()
-
getParserForType
public com.google.protobuf.Parser<PythonPackageSpec> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PythonPackageSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-