Class CodeExecutionRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.wanaku.core.exchange.v1.CodeExecutionRequest
All Implemented Interfaces:
CodeExecutionRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CodeExecutionRequest extends com.google.protobuf.GeneratedMessage implements CodeExecutionRequestOrBuilder
*
The code execution request message.
Contains the code to execute along with optional execution parameters.
Protobuf type ai.wanaku.codeexecution.v1.CodeExecutionRequest
See Also:
  • Field Details

  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getUri

      public String getUri()
      *
      The URI identifying the code execution capability.
      Format: code-execution-engine://${engine-type}/${language}
      
      string uri = 1;
      Specified by:
      getUri in interface CodeExecutionRequestOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
      *
      The URI identifying the code execution capability.
      Format: code-execution-engine://${engine-type}/${language}
      
      string uri = 1;
      Specified by:
      getUriBytes in interface CodeExecutionRequestOrBuilder
      Returns:
      The bytes for uri.
    • getBody

      public String getBody()
      *
      The request body content.
      
      string body = 2;
      Specified by:
      getBody in interface CodeExecutionRequestOrBuilder
      Returns:
      The body.
    • getBodyBytes

      public com.google.protobuf.ByteString getBodyBytes()
      *
      The request body content.
      
      string body = 2;
      Specified by:
      getBodyBytes in interface CodeExecutionRequestOrBuilder
      Returns:
      The bytes for body.
    • getCode

      public String getCode()
      *
      The source code to execute as a text blob.
      This field contains the actual code that will be executed by the engine.
      
      string code = 3;
      Specified by:
      getCode in interface CodeExecutionRequestOrBuilder
      Returns:
      The code.
    • getCodeBytes

      public com.google.protobuf.ByteString getCodeBytes()
      *
      The source code to execute as a text blob.
      This field contains the actual code that will be executed by the engine.
      
      string code = 3;
      Specified by:
      getCodeBytes in interface CodeExecutionRequestOrBuilder
      Returns:
      The bytes for code.
    • getArgumentsCount

      public int getArgumentsCount()
      Description copied from interface: CodeExecutionRequestOrBuilder
      *
      Optional map of execution arguments.
      These are command-line arguments or parameters passed to the code execution.
      Key-value pairs where both key and value are strings.
      
      map<string, string> arguments = 4;
      Specified by:
      getArgumentsCount in interface CodeExecutionRequestOrBuilder
    • containsArguments

      public boolean containsArguments(String key)
      *
      Optional map of execution arguments.
      These are command-line arguments or parameters passed to the code execution.
      Key-value pairs where both key and value are strings.
      
      map<string, string> arguments = 4;
      Specified by:
      containsArguments in interface CodeExecutionRequestOrBuilder
    • getArguments

      @Deprecated public Map<String,String> getArguments()
      Deprecated.
      Use getArgumentsMap() instead.
      Specified by:
      getArguments in interface CodeExecutionRequestOrBuilder
    • getArgumentsMap

      public Map<String,String> getArgumentsMap()
      *
      Optional map of execution arguments.
      These are command-line arguments or parameters passed to the code execution.
      Key-value pairs where both key and value are strings.
      
      map<string, string> arguments = 4;
      Specified by:
      getArgumentsMap in interface CodeExecutionRequestOrBuilder
    • getArgumentsOrDefault

      public String getArgumentsOrDefault(String key, String defaultValue)
      *
      Optional map of execution arguments.
      These are command-line arguments or parameters passed to the code execution.
      Key-value pairs where both key and value are strings.
      
      map<string, string> arguments = 4;
      Specified by:
      getArgumentsOrDefault in interface CodeExecutionRequestOrBuilder
    • getArgumentsOrThrow

      public String getArgumentsOrThrow(String key)
      *
      Optional map of execution arguments.
      These are command-line arguments or parameters passed to the code execution.
      Key-value pairs where both key and value are strings.
      
      map<string, string> arguments = 4;
      Specified by:
      getArgumentsOrThrow in interface CodeExecutionRequestOrBuilder
    • getConfigurationUri

      public String getConfigurationUri()
      *
      Optional URI reference to configuration data.
      Used to provide additional configuration for the execution environment.
      
      string configuration_uri = 5;
      Specified by:
      getConfigurationUri in interface CodeExecutionRequestOrBuilder
      Returns:
      The configurationUri.
    • getConfigurationUriBytes

      public com.google.protobuf.ByteString getConfigurationUriBytes()
      *
      Optional URI reference to configuration data.
      Used to provide additional configuration for the execution environment.
      
      string configuration_uri = 5;
      Specified by:
      getConfigurationUriBytes in interface CodeExecutionRequestOrBuilder
      Returns:
      The bytes for configurationUri.
    • getSecretsUri

      public String getSecretsUri()
      *
      Optional URI reference to secrets data.
      Used to provide secure credentials or sensitive data needed for execution.
      
      string secrets_uri = 6;
      Specified by:
      getSecretsUri in interface CodeExecutionRequestOrBuilder
      Returns:
      The secretsUri.
    • getSecretsUriBytes

      public com.google.protobuf.ByteString getSecretsUriBytes()
      *
      Optional URI reference to secrets data.
      Used to provide secure credentials or sensitive data needed for execution.
      
      string secrets_uri = 6;
      Specified by:
      getSecretsUriBytes in interface CodeExecutionRequestOrBuilder
      Returns:
      The bytes for secretsUri.
    • hasTimeout

      public boolean hasTimeout()
      *
      Optional timeout in milliseconds.
      Maximum time allowed for code execution before termination.
      If not specified, a default timeout will be applied.
      
      optional int64 timeout = 7;
      Specified by:
      hasTimeout in interface CodeExecutionRequestOrBuilder
      Returns:
      Whether the timeout field is set.
    • getTimeout

      public long getTimeout()
      *
      Optional timeout in milliseconds.
      Maximum time allowed for code execution before termination.
      If not specified, a default timeout will be applied.
      
      optional int64 timeout = 7;
      Specified by:
      getTimeout in interface CodeExecutionRequestOrBuilder
      Returns:
      The timeout.
    • getEnvironmentCount

      public int getEnvironmentCount()
      Description copied from interface: CodeExecutionRequestOrBuilder
      *
      Optional map of environment variables.
      These environment variables will be set in the execution context.
      
      map<string, string> environment = 8;
      Specified by:
      getEnvironmentCount in interface CodeExecutionRequestOrBuilder
    • containsEnvironment

      public boolean containsEnvironment(String key)
      *
      Optional map of environment variables.
      These environment variables will be set in the execution context.
      
      map<string, string> environment = 8;
      Specified by:
      containsEnvironment in interface CodeExecutionRequestOrBuilder
    • getEnvironment

      @Deprecated public Map<String,String> getEnvironment()
      Deprecated.
      Use getEnvironmentMap() instead.
      Specified by:
      getEnvironment in interface CodeExecutionRequestOrBuilder
    • getEnvironmentMap

      public Map<String,String> getEnvironmentMap()
      *
      Optional map of environment variables.
      These environment variables will be set in the execution context.
      
      map<string, string> environment = 8;
      Specified by:
      getEnvironmentMap in interface CodeExecutionRequestOrBuilder
    • getEnvironmentOrDefault

      public String getEnvironmentOrDefault(String key, String defaultValue)
      *
      Optional map of environment variables.
      These environment variables will be set in the execution context.
      
      map<string, string> environment = 8;
      Specified by:
      getEnvironmentOrDefault in interface CodeExecutionRequestOrBuilder
    • getEnvironmentOrThrow

      public String getEnvironmentOrThrow(String key)
      *
      Optional map of environment variables.
      These environment variables will be set in the execution context.
      
      map<string, string> environment = 8;
      Specified by:
      getEnvironmentOrThrow in interface CodeExecutionRequestOrBuilder
    • 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 CodeExecutionRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static CodeExecutionRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static CodeExecutionRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

      public CodeExecutionRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CodeExecutionRequest.Builder newBuilder()
    • newBuilder

      public static CodeExecutionRequest.Builder newBuilder(CodeExecutionRequest prototype)
    • toBuilder

      public CodeExecutionRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static CodeExecutionRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CodeExecutionRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<CodeExecutionRequest> 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 CodeExecutionRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder