-
- All Implemented Interfaces:
-
ai.basemind.grpc.PromptRequestOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,java.lang.Cloneable
public final class PromptRequest.Builder extends GeneratedMessageLite.Builder<PromptRequest, PromptRequest.Builder> implements PromptRequestOrBuilder
Protobuf typeA request for a prompt - sending user input to the server.{@code gateway.v1.PromptRequest}
-
-
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;PromptRequest.BuilderclearTemplateVariables()PromptRequest.BuilderremoveTemplateVariables(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;PromptRequest.BuilderputTemplateVariables(String key, String value)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;PromptRequest.BuilderputAllTemplateVariables(Map<String, String> values)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;PromptRequest.BuildersetPromptConfigId(String value)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;PromptRequest.BuilderclearPromptConfigId()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;PromptRequest.BuildersetPromptConfigIdBytes(ByteString value)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;-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, getDefaultInstanceForType, isInitialized, mergeFrom -
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeDelimitedFrom -
Methods inherited from class com.google.protobuf.MessageLite.Builder
build, buildPartial, clear, clone, mergeFrom -
Methods inherited from class com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType -
Methods inherited from class ai.basemind.grpc.PromptRequestOrBuilder
containsTemplateVariables, getTemplateVariablesOrDefault, getTemplateVariablesOrThrow -
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;
-
clearTemplateVariables
PromptRequest.Builder clearTemplateVariables()
-
removeTemplateVariables
PromptRequest.Builder removeTemplateVariables(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;
-
putTemplateVariables
PromptRequest.Builder putTemplateVariables(String key, String value)
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;
-
putAllTemplateVariables
PromptRequest.Builder putAllTemplateVariables(Map<String, String> values)
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;
-
setPromptConfigId
PromptRequest.Builder setPromptConfigId(String value)
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;- Parameters:
value- The promptConfigId to set.
-
clearPromptConfigId
PromptRequest.Builder clearPromptConfigId()
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;
-
setPromptConfigIdBytes
PromptRequest.Builder setPromptConfigIdBytes(ByteString value)
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;- Parameters:
value- The bytes for promptConfigId to set.
-
-
-
-