Package 

Class PromptRequest.Builder

  • 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
                        
    A request for a prompt - sending user input to the server.
    
    Protobuf type {@code gateway.v1.PromptRequest}
    • Method Summary

      Modifier and Type Method Description
      int getTemplateVariablesCount()
      The User prompt variables
      This is a hash-map of variables that should have the same keys as those contained by the PromptConfigResponse
      
      map<string, string> template_variables = 1;
      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 PromptConfigResponse
      
      map<string, string> template_variables = 1;
      PromptRequest.Builder clearTemplateVariables()
      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 PromptConfigResponse
      
      map<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 PromptConfigResponse
      
      map<string, string> template_variables = 1;
      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 PromptConfigResponse
      
      map<string, string> template_variables = 1;
      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 PromptConfigResponse
      
      map<string, string> template_variables = 1;
      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 PromptConfigResponse
      
      map<string, string> template_variables = 1;
      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 PromptConfigResponse
      
      map<string, string> template_variables = 1;
      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;
      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;
      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;
      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;
      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;
      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;
      • 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 PromptConfigResponse
        
        map<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 PromptConfigResponse
        
        map<string, string> template_variables = 1;
      • 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 PromptConfigResponse
        
        map<string, string> template_variables = 1;
      • 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 PromptConfigResponse
        
        map<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 PromptConfigResponse
        
        map<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 PromptConfigResponse
        
        map<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 PromptConfigResponse
        
        map<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.