Class ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder (3.79.0)

public static final class ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
Overrides

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.