Package com.google.genai.types
Class WebhookConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.WebhookConfig
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 -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WebhookConfig.Builderbuilder()Instantiates a builder for WebhookConfig.static WebhookConfigDeserializes a JSON string to a WebhookConfig object.abstract WebhookConfig.BuilderCreates a builder with the same values as this instance.uris()The webhook URIs to receive notifications.User metadata that will be included in each webhook event notification.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
WebhookConfig
public WebhookConfig()
-
-
Method Details
-
uris
The webhook URIs to receive notifications. If set, these webhook URIs will be used instead of the registered webhooks. -
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
Instantiates a builder for WebhookConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a WebhookConfig object.
-