Class GenerativeSettings.FallbackSettings.PromptTemplate.Builder (0.54.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.54.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  GenerativeSettings . FallbackSettings . PromptTemplate . Builder   extends   GeneratedMessageV3 . Builder<GenerativeSettings . FallbackSettings . PromptTemplate . Builder >  implements   GenerativeSettings . FallbackSettings . PromptTemplateOrBuilder  
   Prompt template.
 Protobuf type 
 google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate   build ()  
  
  buildPartial() 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate   buildPartial ()  
  
  clear() 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   clear ()  
  
  Overrides 
  
  clearDisplayName() 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   clearDisplayName ()  
   Prompt name.
 string display_name = 1;
clearField(Descriptors.FieldDescriptor field) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearFrozen() 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   clearFrozen ()  
   If the flag is true, the prompt is frozen and cannot be modified by
 users.
 bool frozen = 3;
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearPromptText() 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   clearPromptText ()  
   Prompt text that is sent to a LLM on no-match default, placeholders are
 filled downstream. For example: "Here is a conversation $conversation,
 a response is: "
 string prompt_text = 2;
clone() 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getDisplayName() 
  
    
public   String   getDisplayName ()  
   Prompt name.
 string display_name = 1;
    
      
        Returns  
      
        Type Description  
      
        String The displayName.
 
     
  
  getDisplayNameBytes() 
  
    
public   ByteString   getDisplayNameBytes ()  
   Prompt name.
 string display_name = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for displayName.
 
     
  
  getFrozen() 
  
    
public   boolean   getFrozen ()  
   If the flag is true, the prompt is frozen and cannot be modified by
 users.
 bool frozen = 3;
    
      
        Returns  
      
        Type Description  
      
        boolean The frozen.
 
     
  
  getPromptText() 
  
    
public   String   getPromptText ()  
   Prompt text that is sent to a LLM on no-match default, placeholders are
 filled downstream. For example: "Here is a conversation $conversation,
 a response is: "
 string prompt_text = 2;
    
      
        Returns  
      
        Type Description  
      
        String The promptText.
 
     
  
  getPromptTextBytes() 
  
    
public   ByteString   getPromptTextBytes ()  
   Prompt text that is sent to a LLM on no-match default, placeholders are
 filled downstream. For example: "Here is a conversation $conversation,
 a response is: "
 string prompt_text = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for promptText.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(GenerativeSettings.FallbackSettings.PromptTemplate other) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   mergeFrom ( GenerativeSettings . FallbackSettings . PromptTemplate   other )  
  
  
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setDisplayName(String value) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   setDisplayName ( String   value )  
   Prompt name.
 string display_name = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueString The displayName to set.
 
     
  
  
  setDisplayNameBytes(ByteString value) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   setDisplayNameBytes ( ByteString   value )  
   Prompt name.
 string display_name = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for displayName to set.
 
     
  
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setFrozen(boolean value) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   setFrozen ( boolean   value )  
   If the flag is true, the prompt is frozen and cannot be modified by
 users.
 bool frozen = 3;
    
      
        Parameter  
      
        Name Description  
      
        valueboolean The frozen to set.
 
     
  
  
  setPromptText(String value) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   setPromptText ( String   value )  
   Prompt text that is sent to a LLM on no-match default, placeholders are
 filled downstream. For example: "Here is a conversation $conversation,
 a response is: "
 string prompt_text = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueString The promptText to set.
 
     
  
  
  setPromptTextBytes(ByteString value) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   setPromptTextBytes ( ByteString   value )  
   Prompt text that is sent to a LLM on no-match default, placeholders are
 filled downstream. For example: "Here is a conversation $conversation,
 a response is: "
 string prompt_text = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for promptText to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   GenerativeSettings . FallbackSettings . PromptTemplate . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]