-
- All Implemented Interfaces:
-
ai.basemind.grpc.PromptRequestOrBuilder,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder
public final class PromptRequest extends GeneratedMessageLite<PromptRequest, PromptRequest.Builder> implements PromptRequestOrBuilder
Protobuf typeA request for a prompt - sending user input to the server.{@code gateway.v1.PromptRequest}
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptRequest.Builder
Protobuf typeA request for a prompt - sending user input to the server.{@code gateway.v1.PromptRequest}
-
Field Summary
Fields Modifier and Type Field Description public final static intTEMPLATE_VARIABLES_FIELD_NUMBERpublic final static intPROMPT_CONFIG_ID_FIELD_NUMBER
-
Method Summary
Modifier and Type Method Description intgetTemplateVariablesCount()The User prompt variables This is a hash-map of variables that should have the same keys as those contained by the PromptConfigResponsemap<string, string> template_variables = 1;booleancontainsTemplateVariables(String key)The User prompt variables This is a hash-map of variables that should have the same keys as those contained by the PromptConfigResponsemap<string, string> template_variables = 1;Map<String, String>getTemplateVariables()Use getTemplateVariablesMap instead. Map<String, String>getTemplateVariablesMap()The User prompt variables This is a hash-map of variables that should have the same keys as those contained by the PromptConfigResponsemap<string, string> template_variables = 1;StringgetTemplateVariablesOrDefault(String key, String defaultValue)The User prompt variables This is a hash-map of variables that should have the same keys as those contained by the PromptConfigResponsemap<string, string> template_variables = 1;StringgetTemplateVariablesOrThrow(String key)The User prompt variables This is a hash-map of variables that should have the same keys as those contained by the PromptConfigResponsemap<string, string> template_variables = 1;booleanhasPromptConfigId()Optional Identifier designating the prompt config ID to use. If not set, the default prompt config will be used.optional string prompt_config_id = 2;StringgetPromptConfigId()Optional Identifier designating the prompt config ID to use. If not set, the default prompt config will be used.optional string prompt_config_id = 2;ByteStringgetPromptConfigIdBytes()Optional Identifier designating the prompt config ID to use. If not set, the default prompt config will be used.optional string prompt_config_id = 2;static PromptRequestparseFrom(ByteBuffer data)static PromptRequestparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)static PromptRequestparseFrom(ByteString data)static PromptRequestparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static PromptRequestparseFrom(Array<byte> data)static PromptRequestparseFrom(Array<byte> data, ExtensionRegistryLite extensionRegistry)static PromptRequestparseFrom(InputStream input)static PromptRequestparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static PromptRequestparseDelimitedFrom(InputStream input)static PromptRequestparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static PromptRequestparseFrom(CodedInputStream input)static PromptRequestparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static PromptRequest.BuildernewBuilder()static PromptRequest.BuildernewBuilder(PromptRequest prototype)static PromptRequestgetDefaultInstance()static Parser<PromptRequest>parser()-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
equals, getDefaultInstanceForType, getParserForType, hashCode, isInitialized, newBuilderForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, toBuilder, toString, writeTo -
Methods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo -
Methods inherited from class com.google.protobuf.MessageLite
getParserForType, newBuilderForType, toBuilder -
Methods inherited from class com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getTemplateVariablesCount
int getTemplateVariablesCount()
The User prompt variables This is a hash-map of variables that should have the same keys as those contained by the PromptConfigResponsemap<string, string> template_variables = 1;
-
containsTemplateVariables
boolean containsTemplateVariables(String key)
The User prompt variables This is a hash-map of variables that should have the same keys as those contained by the PromptConfigResponsemap<string, string> template_variables = 1;
-
getTemplateVariables
@Deprecated() Map<String, String> getTemplateVariables()
Use getTemplateVariablesMap instead.
-
getTemplateVariablesMap
Map<String, String> getTemplateVariablesMap()
The User prompt variables This is a hash-map of variables that should have the same keys as those contained by the PromptConfigResponsemap<string, string> template_variables = 1;
-
getTemplateVariablesOrDefault
String getTemplateVariablesOrDefault(String key, String defaultValue)
The User prompt variables This is a hash-map of variables that should have the same keys as those contained by the PromptConfigResponsemap<string, string> template_variables = 1;
-
getTemplateVariablesOrThrow
String getTemplateVariablesOrThrow(String key)
The User prompt variables This is a hash-map of variables that should have the same keys as those contained by the PromptConfigResponsemap<string, string> template_variables = 1;
-
hasPromptConfigId
boolean hasPromptConfigId()
Optional Identifier designating the prompt config ID to use. If not set, the default prompt config will be used.optional string prompt_config_id = 2;
-
getPromptConfigId
String getPromptConfigId()
Optional Identifier designating the prompt config ID to use. If not set, the default prompt config will be used.optional string prompt_config_id = 2;
-
getPromptConfigIdBytes
ByteString getPromptConfigIdBytes()
Optional Identifier designating the prompt config ID to use. If not set, the default prompt config will be used.optional string prompt_config_id = 2;
-
parseFrom
static PromptRequest parseFrom(ByteBuffer data)
-
parseFrom
static PromptRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static PromptRequest parseFrom(ByteString data)
-
parseFrom
static PromptRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static PromptRequest parseFrom(Array<byte> data)
-
parseFrom
static PromptRequest parseFrom(Array<byte> data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static PromptRequest parseFrom(InputStream input)
-
parseFrom
static PromptRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
-
parseDelimitedFrom
static PromptRequest parseDelimitedFrom(InputStream input)
-
parseDelimitedFrom
static PromptRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static PromptRequest parseFrom(CodedInputStream input)
-
parseFrom
static PromptRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
-
newBuilder
static PromptRequest.Builder newBuilder()
-
newBuilder
static PromptRequest.Builder newBuilder(PromptRequest prototype)
-
getDefaultInstance
static PromptRequest getDefaultInstance()
-
parser
static Parser<PromptRequest> parser()
-
-
-
-