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 Summary
Modifier and TypeMethodDescriptionbuild()clear()* The request body content.* The source code to execute as a text blob.* Optional URI reference to configuration data.* Optional URI reference to secrets data.* Optional timeout in milliseconds.clearUri()* The URI identifying the code execution capability.booleancontainsArguments(String key) * Optional map of execution arguments.boolean* Optional map of environment variables.Deprecated.int* Optional map of execution arguments.* Optional map of execution arguments.getArgumentsOrDefault(String key, String defaultValue) * Optional map of execution arguments.* Optional map of execution arguments.getBody()* The request body content.com.google.protobuf.ByteString* The request body content.getCode()* The source code to execute as a text blob.com.google.protobuf.ByteString* The source code to execute as a text blob.* Optional URI reference to configuration data.com.google.protobuf.ByteString* Optional URI reference to configuration data.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.int* Optional map of environment variables.* Optional map of environment variables.getEnvironmentOrDefault(String key, String defaultValue) * Optional map of environment variables.* Optional map of environment variables.Deprecated.Deprecated.* Optional URI reference to secrets data.com.google.protobuf.ByteString* Optional URI reference to secrets data.long* Optional timeout in milliseconds.getUri()* The URI identifying the code execution capability.com.google.protobuf.ByteString* The URI identifying the code execution capability.boolean* Optional timeout in milliseconds.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(CodeExecutionRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllArguments(Map<String, String> values) * Optional map of execution arguments.putAllEnvironment(Map<String, String> values) * Optional map of environment variables.putArguments(String key, String value) * Optional map of execution arguments.putEnvironment(String key, String value) * Optional map of environment variables.removeArguments(String key) * Optional map of execution arguments.removeEnvironment(String key) * Optional map of environment variables.* The request body content.setBodyBytes(com.google.protobuf.ByteString value) * The request body content.* The source code to execute as a text blob.setCodeBytes(com.google.protobuf.ByteString value) * The source code to execute as a text blob.setConfigurationUri(String value) * Optional URI reference to configuration data.setConfigurationUriBytes(com.google.protobuf.ByteString value) * Optional URI reference to configuration data.setSecretsUri(String value) * Optional URI reference to secrets data.setSecretsUriBytes(com.google.protobuf.ByteString value) * Optional URI reference to secrets data.setTimeout(long value) * Optional timeout in milliseconds.* The URI identifying the code execution capability.setUriBytes(com.google.protobuf.ByteString value) * The URI identifying the code execution capability.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, internalGetMutableMapField, 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 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CodeExecutionRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CodeExecutionRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CodeExecutionRequest.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<CodeExecutionRequest.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<CodeExecutionRequest.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CodeExecutionRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CodeExecutionRequest.Builder>- Throws:
IOException
-
getUri
* The URI identifying the code execution capability. Format: code-execution-engine://${engine-type}/${language}string uri = 1;- Specified by:
getUriin interfaceCodeExecutionRequestOrBuilder- 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:
getUriBytesin interfaceCodeExecutionRequestOrBuilder- Returns:
- The bytes for uri.
-
setUri
* 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
* The URI identifying the code execution capability. Format: code-execution-engine://${engine-type}/${language}string uri = 1;- Returns:
- This builder for chaining.
-
setUriBytes
* 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
* The request body content.
string body = 2;- Specified by:
getBodyin interfaceCodeExecutionRequestOrBuilder- Returns:
- The body.
-
getBodyBytes
public com.google.protobuf.ByteString getBodyBytes()* The request body content.
string body = 2;- Specified by:
getBodyBytesin interfaceCodeExecutionRequestOrBuilder- Returns:
- The bytes for body.
-
setBody
* The request body content.
string body = 2;- Parameters:
value- The body to set.- Returns:
- This builder for chaining.
-
clearBody
* The request body content.
string body = 2;- Returns:
- This builder for chaining.
-
setBodyBytes
* The request body content.
string body = 2;- Parameters:
value- The bytes for body to set.- Returns:
- This builder for chaining.
-
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:
getCodein interfaceCodeExecutionRequestOrBuilder- 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:
getCodeBytesin interfaceCodeExecutionRequestOrBuilder- Returns:
- The bytes for code.
-
setCode
* 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
* 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
* 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:
getArgumentsCountin interfaceCodeExecutionRequestOrBuilder
-
containsArguments
* 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:
containsArgumentsin interfaceCodeExecutionRequestOrBuilder
-
getArguments
Deprecated.UsegetArgumentsMap()instead.- Specified by:
getArgumentsin interfaceCodeExecutionRequestOrBuilder
-
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:
getArgumentsMapin interfaceCodeExecutionRequestOrBuilder
-
getArgumentsOrDefault
* 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:
getArgumentsOrDefaultin interfaceCodeExecutionRequestOrBuilder
-
getArgumentsOrThrow
* 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:
getArgumentsOrThrowin interfaceCodeExecutionRequestOrBuilder
-
clearArguments
-
removeArguments
* 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.Use alternate mutation accessors instead. -
putArguments
* 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
* 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
* Optional URI reference to configuration data. Used to provide additional configuration for the execution environment.
string configuration_uri = 5;- Specified by:
getConfigurationUriin interfaceCodeExecutionRequestOrBuilder- 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:
getConfigurationUriBytesin interfaceCodeExecutionRequestOrBuilder- Returns:
- The bytes for configurationUri.
-
setConfigurationUri
* 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
* 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
* 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
* Optional URI reference to secrets data. Used to provide secure credentials or sensitive data needed for execution.
string secrets_uri = 6;- Specified by:
getSecretsUriin interfaceCodeExecutionRequestOrBuilder- 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:
getSecretsUriBytesin interfaceCodeExecutionRequestOrBuilder- Returns:
- The bytes for secretsUri.
-
setSecretsUri
* 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
* 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
* 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:
hasTimeoutin interfaceCodeExecutionRequestOrBuilder- 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:
getTimeoutin interfaceCodeExecutionRequestOrBuilder- Returns:
- The timeout.
-
setTimeout
* 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
* 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:
getEnvironmentCountin interfaceCodeExecutionRequestOrBuilder
-
containsEnvironment
* Optional map of environment variables. These environment variables will be set in the execution context.
map<string, string> environment = 8;- Specified by:
containsEnvironmentin interfaceCodeExecutionRequestOrBuilder
-
getEnvironment
Deprecated.UsegetEnvironmentMap()instead.- Specified by:
getEnvironmentin interfaceCodeExecutionRequestOrBuilder
-
getEnvironmentMap
* Optional map of environment variables. These environment variables will be set in the execution context.
map<string, string> environment = 8;- Specified by:
getEnvironmentMapin interfaceCodeExecutionRequestOrBuilder
-
getEnvironmentOrDefault
* Optional map of environment variables. These environment variables will be set in the execution context.
map<string, string> environment = 8;- Specified by:
getEnvironmentOrDefaultin interfaceCodeExecutionRequestOrBuilder
-
getEnvironmentOrThrow
* Optional map of environment variables. These environment variables will be set in the execution context.
map<string, string> environment = 8;- Specified by:
getEnvironmentOrThrowin interfaceCodeExecutionRequestOrBuilder
-
clearEnvironment
-
removeEnvironment
* Optional map of environment variables. These environment variables will be set in the execution context.
map<string, string> environment = 8; -
getMutableEnvironment
Deprecated.Use alternate mutation accessors instead. -
putEnvironment
* Optional map of environment variables. These environment variables will be set in the execution context.
map<string, string> environment = 8; -
putAllEnvironment
* Optional map of environment variables. These environment variables will be set in the execution context.
map<string, string> environment = 8;
-