Class ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>
com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder
All Implemented Interfaces:
ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ReasoningEngineSpec.SourceCodeSpec.PythonSpec

public static final class ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder> implements ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder
 Specification for running a Python application from source.
 
Protobuf type google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>
    • getDefaultInstanceForType

      public ReasoningEngineSpec.SourceCodeSpec.PythonSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>
    • mergeFrom

      public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getVersion in interface ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.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];
      Specified by:
      getVersionBytes in interface ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder
      Returns:
      The bytes for version.
    • setVersion

       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];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setVersionBytes

      public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setVersionBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getEntrypointModule in interface ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder
      Returns:
      The entrypointModule.
    • getEntrypointModuleBytes

      public com.google.protobuf.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];
      Specified by:
      getEntrypointModuleBytes in interface ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder
      Returns:
      The bytes for entrypointModule.
    • setEntrypointModule

       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];
      Parameters:
      value - The entrypointModule to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setEntrypointModuleBytes

      public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setEntrypointModuleBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for entrypointModule to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getEntrypointObject in interface ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder
      Returns:
      The entrypointObject.
    • getEntrypointObjectBytes

      public com.google.protobuf.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];
      Specified by:
      getEntrypointObjectBytes in interface ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder
      Returns:
      The bytes for entrypointObject.
    • setEntrypointObject

       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];
      Parameters:
      value - The entrypointObject to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setEntrypointObjectBytes

      public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setEntrypointObjectBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for entrypointObject to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getRequirementsFile in interface ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder
      Returns:
      The requirementsFile.
    • getRequirementsFileBytes

      public com.google.protobuf.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];
      Specified by:
      getRequirementsFileBytes in interface ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder
      Returns:
      The bytes for requirementsFile.
    • setRequirementsFile

       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];
      Parameters:
      value - The requirementsFile to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setRequirementsFileBytes

      public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder setRequirementsFileBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for requirementsFile to set.
      Returns:
      This builder for chaining.