Class WebhookConfig

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.WebhookConfig

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.

  • Constructor Details

    • WebhookConfig

      public WebhookConfig()
  • Method Details

    • uris

      public abstract Optional<List<String>> uris()
      The webhook URIs to receive notifications. If set, these webhook URIs will be used instead of the registered webhooks.
    • userMetadata

      public abstract Optional<Map<String,Object>> userMetadata()
      User metadata that will be included in each webhook event notification. Use this to attach custom key-value data to correlate webhook events with your internal systems.
    • builder

      public static WebhookConfig.Builder builder()
      Instantiates a builder for WebhookConfig.
    • toBuilder

      public abstract WebhookConfig.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static WebhookConfig fromJson(String jsonString)
      Deserializes a JSON string to a WebhookConfig object.