Send feedback
  
   
 
  
    
      Class Webhook (0.89.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  Webhook   extends   GeneratedMessageV3   implements   WebhookOrBuilder  
   Webhooks host the developer's business logic. During a session, webhooks
 allow the developer to use the data extracted by Dialogflow's natural
 language processing to generate dynamic responses, validate collected data,
 or trigger actions on the backend.
 Protobuf type google.cloud.dialogflow.cx.v3.Webhook
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  DISABLED_FIELD_NUMBER 
  
    
public   static   final   int   DISABLED_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  DISPLAY_NAME_FIELD_NUMBER 
  
    
public   static   final   int   DISPLAY_NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  GENERIC_WEB_SERVICE_FIELD_NUMBER 
  
    
public   static   final   int   GENERIC_WEB_SERVICE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  NAME_FIELD_NUMBER 
  
    
public   static   final   int   NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  SERVICE_DIRECTORY_FIELD_NUMBER 
  
    
public   static   final   int   SERVICE_DIRECTORY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TIMEOUT_FIELD_NUMBER 
  
    
public   static   final   int   TIMEOUT_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Webhook   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Webhook . Builder   newBuilder ()  
  
  newBuilder(Webhook prototype) 
  
    
public   static   Webhook . Builder   newBuilder ( Webhook   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeWebhook  
     
  
  
  
    
public   static   Webhook   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Webhook   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   Webhook   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Webhook   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   Webhook   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Webhook   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Webhook   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Webhook   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Webhook   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Webhook   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Webhook   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Webhook   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<Webhook>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   Webhook   getDefaultInstanceForType ()  
  
  getDisabled() 
  
    
public   boolean   getDisabled ()  
   Indicates whether the webhook is disabled.
 bool disabled = 5;
    
      
        Returns  
      
        Type Description  
      
        boolean The disabled.
 
     
  
  getDisplayName() 
  
    
public   String   getDisplayName ()  
   Required. The human-readable name of the webhook, unique within the agent.
 string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        String The displayName.
 
     
  
  getDisplayNameBytes() 
  
    
public   ByteString   getDisplayNameBytes ()  
   Required. The human-readable name of the webhook, unique within the agent.
 string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for displayName.
 
     
  
  getGenericWebService() 
  
    
public   Webhook . GenericWebService   getGenericWebService ()  
   Configuration for a generic web service.
 .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;
getGenericWebServiceOrBuilder() 
  
    
public   Webhook . GenericWebServiceOrBuilder   getGenericWebServiceOrBuilder ()  
   Configuration for a generic web service.
 .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;
getName() 
  
   The unique identifier of the webhook.
 Required for the
 Webhooks.UpdateWebhook 
 method.
 Webhooks.CreateWebhook 
 populates the name automatically. Format:
 projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>.
 string name = 1;
    
      
        Returns  
      
        Type Description  
      
        String The name.
 
     
  
  getNameBytes() 
  
    
public   ByteString   getNameBytes ()  
   The unique identifier of the webhook.
 Required for the
 Webhooks.UpdateWebhook 
 method.
 Webhooks.CreateWebhook 
 populates the name automatically. Format:
 projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>.
 string name = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for name.
 
     
  
  getParserForType() 
  
    
public   Parser<Webhook>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getServiceDirectory() 
  
    
public   Webhook . ServiceDirectoryConfig   getServiceDirectory ()  
   Configuration for a Service
 Directory  service.
 .google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;
 
getServiceDirectoryOrBuilder() 
  
    
public   Webhook . ServiceDirectoryConfigOrBuilder   getServiceDirectoryOrBuilder ()  
   Configuration for a Service
 Directory  service.
 .google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;
 
getTimeout() 
  
    
public   Duration   getTimeout ()  
   Webhook execution timeout. Execution is considered failed if Dialogflow
 doesn't receive a response from webhook at the end of the timeout period.
 Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
 .google.protobuf.Duration timeout = 6;
    
      
        Returns  
      
        Type Description  
      
        Duration The timeout.
 
     
  
  getTimeoutOrBuilder() 
  
    
public   DurationOrBuilder   getTimeoutOrBuilder ()  
   Webhook execution timeout. Execution is considered failed if Dialogflow
 doesn't receive a response from webhook at the end of the timeout period.
 Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
 .google.protobuf.Duration timeout = 6;
getWebhookCase() 
  
    
public   Webhook . WebhookCase   getWebhookCase ()  
  
  hasGenericWebService() 
  
    
public   boolean   hasGenericWebService ()  
   Configuration for a generic web service.
 .google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the genericWebService field is set.
 
     
  
  hasServiceDirectory() 
  
    
public   boolean   hasServiceDirectory ()  
   Configuration for a Service
 Directory  service.
 .google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the serviceDirectory field is set.
 
     
  
  hasTimeout() 
  
    
public   boolean   hasTimeout ()  
   Webhook execution timeout. Execution is considered failed if Dialogflow
 doesn't receive a response from webhook at the end of the timeout period.
 Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
 .google.protobuf.Duration timeout = 6;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the timeout field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Webhook . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Webhook . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Webhook . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]