Class WebhookConfig

  • All Implemented Interfaces:

    
    public abstract class WebhookConfig
    extends JsonSerializable
                        

    Configuration for webhook notifications.

    Used to configure webhook endpoints that will receive notifications when long-running operations (e.g., batch jobs, video generation) complete.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class WebhookConfig.Builder

      Builder for WebhookConfig.

    • Constructor Summary

      Constructors 
      Constructor Description
      WebhookConfig()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<List<String>> uris() The webhook URIs to receive notifications.
      abstract Optional<Map<String, Object>> userMetadata() User metadata that will be included in each webhook event notification.
      static WebhookConfig.Builder builder() Instantiates a builder for WebhookConfig.
      abstract WebhookConfig.Builder toBuilder() Creates a builder with the same values as this instance.
      static WebhookConfig fromJson(String jsonString) Deserializes a JSON string to a WebhookConfig object.
      • Methods inherited from class com.google.genai.JsonSerializable

        fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebhookConfig

        WebhookConfig()