Class AutomatedAgentReply.Builder (4.6.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 4.6.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  AutomatedAgentReply . Builder   extends   GeneratedMessageV3 . Builder<AutomatedAgentReply . Builder >  implements   AutomatedAgentReplyOrBuilder  
   
   Represents a response from an automated agent.
 Protobuf type google.cloud.dialogflow.v2.AutomatedAgentReply
 
  
  
  
  Static Methods
   
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
  Methods
   
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   AutomatedAgentReply . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  build() 
  
    
public   AutomatedAgentReply   build ()  
   
  Returns 
  
   
  buildPartial() 
  
    
public   AutomatedAgentReply   buildPartial ()  
   
  Returns 
  
   
  clear() 
  
    
public   AutomatedAgentReply . Builder   clear ()  
   
  Returns 
  
  Overrides 
  
   
  clearAllowCancellation() 
  
    
public   AutomatedAgentReply . Builder   clearAllowCancellation ()  
   
   Indicates whether the partial automated agent reply is interruptible when a
 later reply message arrives. e.g. if the agent specified some music as
 partial response, it can be cancelled.
 bool allow_cancellation = 8;
 
  Returns 
  
   
  clearAutomatedAgentReplyType() 
  
    
public   AutomatedAgentReply . Builder   clearAutomatedAgentReplyType ()  
   
   AutomatedAgentReply type.
 
 .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
 
 
  Returns 
  
   
  clearDetectIntentResponse() 
  
    
public   AutomatedAgentReply . Builder   clearDetectIntentResponse ()  
   
   Response of the Dialogflow Sessions.DetectIntent  call.
 .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
 
  Returns 
  
   
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   AutomatedAgentReply . Builder   clearField ( Descriptors . FieldDescriptor   field )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   AutomatedAgentReply . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  clone() 
  
    
public   AutomatedAgentReply . Builder   clone ()  
   
  Returns 
  
  Overrides 
  
   
  getAllowCancellation() 
  
    
public   boolean   getAllowCancellation ()  
   
   Indicates whether the partial automated agent reply is interruptible when a
 later reply message arrives. e.g. if the agent specified some music as
 partial response, it can be cancelled.
 bool allow_cancellation = 8;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        The allowCancellation.
 
       
     
  
   
  getAutomatedAgentReplyType() 
  
    
public   AutomatedAgentReply . AutomatedAgentReplyType   getAutomatedAgentReplyType ()  
   
   AutomatedAgentReply type.
 
 .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
 
 
  Returns 
  
   
  getAutomatedAgentReplyTypeValue() 
  
    
public   int   getAutomatedAgentReplyTypeValue ()  
   
   AutomatedAgentReply type.
 
 .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
 
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        int  
        The enum numeric value on the wire for automatedAgentReplyType.
 
       
     
  
   
  getDefaultInstanceForType() 
  
    
public   AutomatedAgentReply   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
   
  Returns 
  
  Overrides 
  
   
  getDetectIntentResponse() 
  
    
public   DetectIntentResponse   getDetectIntentResponse ()  
   
   Response of the Dialogflow Sessions.DetectIntent  call.
 .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
 
  Returns 
  
   
  getDetectIntentResponseBuilder() 
  
    
public   DetectIntentResponse . Builder   getDetectIntentResponseBuilder ()  
   
   Response of the Dialogflow Sessions.DetectIntent  call.
 .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
 
  Returns 
  
   
  getDetectIntentResponseOrBuilder() 
  
    
public   DetectIntentResponseOrBuilder   getDetectIntentResponseOrBuilder ()  
   
   Response of the Dialogflow Sessions.DetectIntent  call.
 .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
 
  Returns 
  
   
  hasDetectIntentResponse() 
  
    
public   boolean   hasDetectIntentResponse ()  
   
   Response of the Dialogflow Sessions.DetectIntent  call.
 .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the detectIntentResponse field is set.
 
       
     
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  mergeDetectIntentResponse(DetectIntentResponse value) 
  
    
public   AutomatedAgentReply . Builder   mergeDetectIntentResponse ( DetectIntentResponse   value )  
   
   Response of the Dialogflow Sessions.DetectIntent  call.
 .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
 
  Parameter 
  
  Returns 
  
   
  mergeFrom(AutomatedAgentReply other) 
  
    
public   AutomatedAgentReply . Builder   mergeFrom ( AutomatedAgentReply   other )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   AutomatedAgentReply . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
  Exceptions 
  
   
  mergeFrom(Message other) 
  
    
public   AutomatedAgentReply . Builder   mergeFrom ( Message   other )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   AutomatedAgentReply . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  setAllowCancellation(boolean value) 
  
    
public   AutomatedAgentReply . Builder   setAllowCancellation ( boolean   value )  
   
   Indicates whether the partial automated agent reply is interruptible when a
 later reply message arrives. e.g. if the agent specified some music as
 partial response, it can be cancelled.
 bool allow_cancellation = 8;
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        value  
        boolean The allowCancellation to set.
 
       
     
  
  Returns 
  
   
  setAutomatedAgentReplyType(AutomatedAgentReply.AutomatedAgentReplyType value) 
  
    
public   AutomatedAgentReply . Builder   setAutomatedAgentReplyType ( AutomatedAgentReply . AutomatedAgentReplyType   value )  
   
   AutomatedAgentReply type.
 
 .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
 
 
  Parameter 
  
  Returns 
  
   
  setAutomatedAgentReplyTypeValue(int value) 
  
    
public   AutomatedAgentReply . Builder   setAutomatedAgentReplyTypeValue ( int   value )  
   
   AutomatedAgentReply type.
 
 .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
 
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        value  
        int The enum numeric value on the wire for automatedAgentReplyType to set.
 
       
     
  
  Returns 
  
   
  setDetectIntentResponse(DetectIntentResponse value) 
  
    
public   AutomatedAgentReply . Builder   setDetectIntentResponse ( DetectIntentResponse   value )  
   
   Response of the Dialogflow Sessions.DetectIntent  call.
 .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
 
  Parameter 
  
  Returns 
  
   
  setDetectIntentResponse(DetectIntentResponse.Builder builderForValue) 
  
    
public   AutomatedAgentReply . Builder   setDetectIntentResponse ( DetectIntentResponse . Builder   builderForValue )  
   
   Response of the Dialogflow Sessions.DetectIntent  call.
 .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1;
 
  Parameter 
  
  Returns 
  
   
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   AutomatedAgentReply . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   AutomatedAgentReply . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   AutomatedAgentReply . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
   
  Parameter 
  
  Returns 
  
  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-30 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-30 UTC."],[],[]]