Class ReasoningEngineSpec.SourceCodeSpec.PythonSpec

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

public static final class ReasoningEngineSpec.SourceCodeSpec.PythonSpec extends com.google.protobuf.GeneratedMessage implements ReasoningEngineSpec.SourceCodeSpec.PythonSpecOrBuilder
 Specification for running a Python application from source.
 
Protobuf type google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec
See Also:
  • Field Details

    • VERSION_FIELD_NUMBER

      public static final int VERSION_FIELD_NUMBER
      See Also:
    • ENTRYPOINT_MODULE_FIELD_NUMBER

      public static final int ENTRYPOINT_MODULE_FIELD_NUMBER
      See Also:
    • ENTRYPOINT_OBJECT_FIELD_NUMBER

      public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER
      See Also:
    • REQUIREMENTS_FILE_FIELD_NUMBER

      public static final int REQUIREMENTS_FILE_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      Throws:
      IOException
    • parseFrom

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ReasoningEngineSpec.SourceCodeSpec.PythonSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ReasoningEngineSpec.SourceCodeSpec.PythonSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<ReasoningEngineSpec.SourceCodeSpec.PythonSpec> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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