Class CodeExecutionRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CodeExecutionRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<CodeExecutionRequest.Builder>
ai.wanaku.core.exchange.v1.CodeExecutionRequest.Builder
All Implemented Interfaces:
CodeExecutionRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CodeExecutionRequest

public static final class CodeExecutionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CodeExecutionRequest.Builder> implements CodeExecutionRequestOrBuilder
 *
 The code execution request message.
 Contains the code to execute along with optional execution parameters.
 
Protobuf type ai.wanaku.codeexecution.v1.CodeExecutionRequest
  • 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.Builder<CodeExecutionRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CodeExecutionRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CodeExecutionRequest.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<CodeExecutionRequest.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<CodeExecutionRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CodeExecutionRequest.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<CodeExecutionRequest.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<CodeExecutionRequest.Builder>
    • mergeFrom

      public CodeExecutionRequest.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<CodeExecutionRequest.Builder>
      Throws:
      IOException
    • 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.
    • setUri

      public CodeExecutionRequest.Builder setUri(String value)
       *
       The URI identifying the code execution capability.
       Format: code-execution-engine://${engine-type}/${language}
       
      string uri = 1;
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public CodeExecutionRequest.Builder clearUri()
       *
       The URI identifying the code execution capability.
       Format: code-execution-engine://${engine-type}/${language}
       
      string uri = 1;
      Returns:
      This builder for chaining.
    • setUriBytes

      public CodeExecutionRequest.Builder setUriBytes(com.google.protobuf.ByteString value)
       *
       The URI identifying the code execution capability.
       Format: code-execution-engine://${engine-type}/${language}
       
      string uri = 1;
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • 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.
    • setBody

      public CodeExecutionRequest.Builder setBody(String value)
       *
       The request body content.
       
      string body = 2;
      Parameters:
      value - The body to set.
      Returns:
      This builder for chaining.
    • clearBody

      public CodeExecutionRequest.Builder clearBody()
       *
       The request body content.
       
      string body = 2;
      Returns:
      This builder for chaining.
    • setBodyBytes

      public CodeExecutionRequest.Builder setBodyBytes(com.google.protobuf.ByteString value)
       *
       The request body content.
       
      string body = 2;
      Parameters:
      value - The bytes for body to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCode

      public CodeExecutionRequest.Builder setCode(String value)
       *
       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;
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public CodeExecutionRequest.Builder clearCode()
       *
       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;
      Returns:
      This builder for chaining.
    • setCodeBytes

      public CodeExecutionRequest.Builder setCodeBytes(com.google.protobuf.ByteString value)
       *
       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;
      Parameters:
      value - The bytes for code to set.
      Returns:
      This builder for chaining.
    • 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
    • clearArguments

      public CodeExecutionRequest.Builder clearArguments()
    • removeArguments

      public CodeExecutionRequest.Builder removeArguments(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;
    • getMutableArguments

      @Deprecated public Map<String,String> getMutableArguments()
      Deprecated.
      Use alternate mutation accessors instead.
    • putArguments

      public CodeExecutionRequest.Builder putArguments(String key, String value)
       *
       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;
    • putAllArguments

      public CodeExecutionRequest.Builder putAllArguments(Map<String,String> values)
       *
       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;
    • 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.
    • setConfigurationUri

      public CodeExecutionRequest.Builder setConfigurationUri(String value)
       *
       Optional URI reference to configuration data.
       Used to provide additional configuration for the execution environment.
       
      string configuration_uri = 5;
      Parameters:
      value - The configurationUri to set.
      Returns:
      This builder for chaining.
    • clearConfigurationUri

      public CodeExecutionRequest.Builder clearConfigurationUri()
       *
       Optional URI reference to configuration data.
       Used to provide additional configuration for the execution environment.
       
      string configuration_uri = 5;
      Returns:
      This builder for chaining.
    • setConfigurationUriBytes

      public CodeExecutionRequest.Builder setConfigurationUriBytes(com.google.protobuf.ByteString value)
       *
       Optional URI reference to configuration data.
       Used to provide additional configuration for the execution environment.
       
      string configuration_uri = 5;
      Parameters:
      value - The bytes for configurationUri to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSecretsUri

      public CodeExecutionRequest.Builder setSecretsUri(String value)
       *
       Optional URI reference to secrets data.
       Used to provide secure credentials or sensitive data needed for execution.
       
      string secrets_uri = 6;
      Parameters:
      value - The secretsUri to set.
      Returns:
      This builder for chaining.
    • clearSecretsUri

      public CodeExecutionRequest.Builder clearSecretsUri()
       *
       Optional URI reference to secrets data.
       Used to provide secure credentials or sensitive data needed for execution.
       
      string secrets_uri = 6;
      Returns:
      This builder for chaining.
    • setSecretsUriBytes

      public CodeExecutionRequest.Builder setSecretsUriBytes(com.google.protobuf.ByteString value)
       *
       Optional URI reference to secrets data.
       Used to provide secure credentials or sensitive data needed for execution.
       
      string secrets_uri = 6;
      Parameters:
      value - The bytes for secretsUri to set.
      Returns:
      This builder for chaining.
    • 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.
    • setTimeout

      public CodeExecutionRequest.Builder setTimeout(long value)
       *
       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;
      Parameters:
      value - The timeout to set.
      Returns:
      This builder for chaining.
    • clearTimeout

      public CodeExecutionRequest.Builder clearTimeout()
       *
       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;
      Returns:
      This builder for chaining.
    • 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
    • clearEnvironment

      public CodeExecutionRequest.Builder clearEnvironment()
    • removeEnvironment

      public CodeExecutionRequest.Builder removeEnvironment(String key)
       *
       Optional map of environment variables.
       These environment variables will be set in the execution context.
       
      map<string, string> environment = 8;
    • getMutableEnvironment

      @Deprecated public Map<String,String> getMutableEnvironment()
      Deprecated.
      Use alternate mutation accessors instead.
    • putEnvironment

      public CodeExecutionRequest.Builder putEnvironment(String key, String value)
       *
       Optional map of environment variables.
       These environment variables will be set in the execution context.
       
      map<string, string> environment = 8;
    • putAllEnvironment

      public CodeExecutionRequest.Builder putAllEnvironment(Map<String,String> values)
       *
       Optional map of environment variables.
       These environment variables will be set in the execution context.
       
      map<string, string> environment = 8;