Class ReasoningEngineSpec.SourceCodeSpec.PythonSpec (3.79.0)

public static final class ReasoningEngineSpec.SourceCodeSpec.PythonSpec extends GeneratedMessageV3 implements ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder

Specification for running a Python application from source.

Protobuf type google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ReasoningEngineSpec.SourceCodeSpec.PythonSpec

Static Fields

ENTRYPOINT_MODULE_FIELD_NUMBER

public static final int ENTRYPOINT_MODULE_FIELD_NUMBER
Field Value
Type Description
int

ENTRYPOINT_OBJECT_FIELD_NUMBER

public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER
Field Value
Type Description
int

REQUIREMENTS_FILE_FIELD_NUMBER

public static final int REQUIREMENTS_FILE_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec getDefaultInstance()
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder newBuilder()
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

newBuilder(ReasoningEngineSpec.SourceCodeSpec.PythonSpec prototype)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder newBuilder(ReasoningEngineSpec.SourceCodeSpec.PythonSpec prototype)
Parameter
Name Description
prototype ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

parseDelimitedFrom(InputStream input)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ReasoningEngineSpec.SourceCodeSpec.PythonSpec> parser()
Returns
Type Description
Parser<PythonSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec getDefaultInstanceForType()
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec

getEntrypointModule()

public String getEntrypointModule()

Optional. The Python module to load as the entrypoint, specified as a fully qualified module name. For example: path.to.agent. If not specified, defaults to "agent".

The project root will be added to Python sys.path, allowing imports to be specified relative to the root.

string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The entrypointModule.

getEntrypointModuleBytes()

public ByteString getEntrypointModuleBytes()

Optional. The Python module to load as the entrypoint, specified as a fully qualified module name. For example: path.to.agent. If not specified, defaults to "agent".

The project root will be added to Python sys.path, allowing imports to be specified relative to the root.

string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for entrypointModule.

getEntrypointObject()

public String getEntrypointObject()

Optional. The name of the callable object within the entrypoint_module to use as the application If not specified, defaults to "root_agent".

string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The entrypointObject.

getEntrypointObjectBytes()

public ByteString getEntrypointObjectBytes()

Optional. The name of the callable object within the entrypoint_module to use as the application If not specified, defaults to "root_agent".

string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for entrypointObject.

getParserForType()

public Parser<ReasoningEngineSpec.SourceCodeSpec.PythonSpec> getParserForType()
Returns
Type Description
Parser<PythonSpec>
Overrides

getRequirementsFile()

public String getRequirementsFile()

Optional. The path to the requirements file, relative to the source root. If not specified, defaults to "requirements.txt".

string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The requirementsFile.

getRequirementsFileBytes()

public ByteString getRequirementsFileBytes()

Optional. The path to the requirements file, relative to the source root. If not specified, defaults to "requirements.txt".

string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for requirementsFile.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getVersion()

public String getVersion()

Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, default value is 3.10.

string version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, default value is 3.10.

string version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for version.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder newBuilderForType()
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder toBuilder()
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException