Package com.google.cloud.aiplatform.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEntrypointModule(String value) Optional.setEntrypointModuleBytes(com.google.protobuf.ByteString value) Optional.setEntrypointObject(String value) Optional.setEntrypointObjectBytes(com.google.protobuf.ByteString value) Optional.setRequirementsFile(String value) Optional.setRequirementsFileBytes(com.google.protobuf.ByteString value) Optional.setVersion(String value) Optional.setVersionBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>
-
mergeFrom
public ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder mergeFrom(ReasoningEngineSpec.SourceCodeSpec.PythonSpec other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder>- Throws:
IOException
-
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:
getVersionin interfaceReasoningEngineSpec.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:
getVersionBytesin interfaceReasoningEngineSpec.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
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:
getEntrypointModulein interfaceReasoningEngineSpec.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:
getEntrypointModuleBytesin interfaceReasoningEngineSpec.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
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:
getEntrypointObjectin interfaceReasoningEngineSpec.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:
getEntrypointObjectBytesin interfaceReasoningEngineSpec.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
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:
getRequirementsFilein interfaceReasoningEngineSpec.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:
getRequirementsFileBytesin interfaceReasoningEngineSpec.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.
-