Class WebhookSubscribedEvent
java.lang.Object
com.google.genai.gaos.models.webhooks.WebhookSubscribedEvent
Wrapper for an "open" enum that can handle unknown values from API responses
without runtime errors. Instances are immutable singletons with reference equality.
Use
asEnum() for switch expressions.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WebhookSubscribedEventstatic final WebhookSubscribedEventstatic final WebhookSubscribedEventstatic final WebhookSubscribedEventstatic final WebhookSubscribedEventstatic final WebhookSubscribedEventstatic final WebhookSubscribedEvent -
Method Summary
Modifier and TypeMethodDescriptionasEnum()booleaninthashCode()booleanisKnown()static WebhookSubscribedEventReturns a WebhookSubscribedEvent with the given value.toString()value()static WebhookSubscribedEvent[]values()
-
Field Details
-
BATCH_SUCCEEDED
-
BATCH_EXPIRED
-
BATCH_FAILED
-
INTERACTION_REQUIRES_ACTION
-
INTERACTION_COMPLETED
-
INTERACTION_FAILED
-
VIDEO_GENERATED
-
-
Method Details
-
of
Returns a WebhookSubscribedEvent with the given value. For a specific value the returned object will always be a singleton so reference equality is satisfied when the values are the same.- Parameters:
value- value to be wrapped as WebhookSubscribedEvent
-
value
-
asEnum
-
isKnown
public boolean isKnown() -
hashCode
public int hashCode() -
equals
-
toString
-
values
-