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 class
PythonPackageSpec.Builder
The 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 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(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 PythonPackageSpec
parseFrom(ByteBuffer data)
static PythonPackageSpec
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<PythonPackageSpec>
parser()
PythonPackageSpec.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getExecutorImageUri
in 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:
getExecutorImageUriBytes
in 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:
getPackageUrisList
in 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:
getPackageUrisCount
in 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:
getPackageUris
in 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:
getPackageUrisBytes
in 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:
getPythonModule
in 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:
getPythonModuleBytes
in 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:
getArgsList
in 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:
getArgsCount
in 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:
getArgs
in 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:
getArgsBytes
in 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:
getEnvList
in 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:
getEnvOrBuilderList
in 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:
getEnvCount
in 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:
getEnv
in 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:
getEnvOrBuilder
in interfacePythonPackageSpecOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PythonPackageSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PythonPackageSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-