Class ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder (3.84.0)

public static final class ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder extends GeneratedMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder> implements ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder

Specification for running a Python application from source.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder clear()
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
Overrides

clearEntrypointModule()

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder clearEntrypointModule()

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
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.

clearEntrypointObject()

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder clearEntrypointObject()

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
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.

clearRequirementsFile()

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder clearRequirementsFile()

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
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.

clearVersion()

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder clearVersion()

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
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReasoningEngineSpec.SourceCodeSpec.PythonSpec other)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder mergeFrom(ReasoningEngineSpec.SourceCodeSpec.PythonSpec other)
Parameter
Name Description
other ReasoningEngineSpec.SourceCodeSpec.PythonSpec
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
Overrides

setEntrypointModule(String value)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setEntrypointModule(String value)

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];

Parameter
Name Description
value String

The entrypointModule to set.

Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.

setEntrypointModuleBytes(ByteString value)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setEntrypointModuleBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for entrypointModule to set.

Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.

setEntrypointObject(String value)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setEntrypointObject(String value)

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];

Parameter
Name Description
value String

The entrypointObject to set.

Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.

setEntrypointObjectBytes(ByteString value)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setEntrypointObjectBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for entrypointObject to set.

Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.

setRequirementsFile(String value)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setRequirementsFile(String value)

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];

Parameter
Name Description
value String

The requirementsFile to set.

Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.

setRequirementsFileBytes(ByteString value)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setRequirementsFileBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for requirementsFile to set.

Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.

setVersion(String value)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setVersion(String value)

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];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setVersionBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

This builder for chaining.