Package ai.wanaku.core.exchange.v1
Class CodeExecutionRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
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
public final class CodeExecutionRequest
extends com.google.protobuf.GeneratedMessageV3
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* The code execution request message.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsArguments(String key) * Optional map of execution arguments.boolean* Optional map of environment variables.booleanDeprecated.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 CodeExecutionRequeststatic final com.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.com.google.protobuf.Parser<CodeExecutionRequest> * Optional URI reference to secrets data.com.google.protobuf.ByteString* Optional URI reference to secrets data.intlong* Optional timeout in milliseconds.getUri()* The URI identifying the code execution capability.com.google.protobuf.ByteString* The URI identifying the code execution capability.inthashCode()boolean* Optional timeout in milliseconds.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic CodeExecutionRequest.Builderstatic CodeExecutionRequest.BuildernewBuilder(CodeExecutionRequest prototype) protected CodeExecutionRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static CodeExecutionRequestparseDelimitedFrom(InputStream input) static CodeExecutionRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CodeExecutionRequestparseFrom(byte[] data) static CodeExecutionRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CodeExecutionRequestparseFrom(com.google.protobuf.ByteString data) static CodeExecutionRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CodeExecutionRequestparseFrom(com.google.protobuf.CodedInputStream input) static CodeExecutionRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CodeExecutionRequestparseFrom(InputStream input) static CodeExecutionRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CodeExecutionRequestparseFrom(ByteBuffer data) static CodeExecutionRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CodeExecutionRequest> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER- See Also:
-
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER- See Also:
-
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER- See Also:
-
ARGUMENTS_FIELD_NUMBER
public static final int ARGUMENTS_FIELD_NUMBER- See Also:
-
CONFIGURATION_URI_FIELD_NUMBER
public static final int CONFIGURATION_URI_FIELD_NUMBER- See Also:
-
SECRETS_URI_FIELD_NUMBER
public static final int SECRETS_URI_FIELD_NUMBER- See Also:
-
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER- See Also:
-
ENVIRONMENT_FIELD_NUMBER
public static final int ENVIRONMENT_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static CodeExecutionRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CodeExecutionRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-