Class UpsertWebhookRequest.Builder

    • Method Detail

      • getOrganizationId

        public java.lang.String getOrganizationId()
        string organization_id = 1 [json_name = "organizationId"];
        Specified by:
        getOrganizationId in interface UpsertWebhookRequestOrBuilder
        Returns:
        The organizationId.
      • getOrganizationIdBytes

        public com.google.protobuf.ByteString getOrganizationIdBytes()
        string organization_id = 1 [json_name = "organizationId"];
        Specified by:
        getOrganizationIdBytes in interface UpsertWebhookRequestOrBuilder
        Returns:
        The bytes for organizationId.
      • setOrganizationId

        public UpsertWebhookRequest.Builder setOrganizationId​(java.lang.String value)
        string organization_id = 1 [json_name = "organizationId"];
        Parameters:
        value - The organizationId to set.
        Returns:
        This builder for chaining.
      • clearOrganizationId

        public UpsertWebhookRequest.Builder clearOrganizationId()
        string organization_id = 1 [json_name = "organizationId"];
        Returns:
        This builder for chaining.
      • setOrganizationIdBytes

        public UpsertWebhookRequest.Builder setOrganizationIdBytes​(com.google.protobuf.ByteString value)
        string organization_id = 1 [json_name = "organizationId"];
        Parameters:
        value - The bytes for organizationId to set.
        Returns:
        This builder for chaining.
      • hasEventId

        public boolean hasEventId()
        optional uint64 event_id = 2 [json_name = "eventId"];
        Specified by:
        hasEventId in interface UpsertWebhookRequestOrBuilder
        Returns:
        Whether the eventId field is set.
      • setEventId

        public UpsertWebhookRequest.Builder setEventId​(long value)
        optional uint64 event_id = 2 [json_name = "eventId"];
        Parameters:
        value - The eventId to set.
        Returns:
        This builder for chaining.
      • clearEventId

        public UpsertWebhookRequest.Builder clearEventId()
        optional uint64 event_id = 2 [json_name = "eventId"];
        Returns:
        This builder for chaining.
      • hasQuestionId

        public boolean hasQuestionId()
        optional string question_id = 3 [json_name = "questionId"];
        Specified by:
        hasQuestionId in interface UpsertWebhookRequestOrBuilder
        Returns:
        Whether the questionId field is set.
      • getQuestionId

        public java.lang.String getQuestionId()
        optional string question_id = 3 [json_name = "questionId"];
        Specified by:
        getQuestionId in interface UpsertWebhookRequestOrBuilder
        Returns:
        The questionId.
      • getQuestionIdBytes

        public com.google.protobuf.ByteString getQuestionIdBytes()
        optional string question_id = 3 [json_name = "questionId"];
        Specified by:
        getQuestionIdBytes in interface UpsertWebhookRequestOrBuilder
        Returns:
        The bytes for questionId.
      • setQuestionId

        public UpsertWebhookRequest.Builder setQuestionId​(java.lang.String value)
        optional string question_id = 3 [json_name = "questionId"];
        Parameters:
        value - The questionId to set.
        Returns:
        This builder for chaining.
      • clearQuestionId

        public UpsertWebhookRequest.Builder clearQuestionId()
        optional string question_id = 3 [json_name = "questionId"];
        Returns:
        This builder for chaining.
      • setQuestionIdBytes

        public UpsertWebhookRequest.Builder setQuestionIdBytes​(com.google.protobuf.ByteString value)
        optional string question_id = 3 [json_name = "questionId"];
        Parameters:
        value - The bytes for questionId to set.
        Returns:
        This builder for chaining.
      • getTitle

        public java.lang.String getTitle()
         Webhook name
         
        string title = 4 [json_name = "title"];
        Specified by:
        getTitle in interface UpsertWebhookRequestOrBuilder
        Returns:
        The title.
      • getTitleBytes

        public com.google.protobuf.ByteString getTitleBytes()
         Webhook name
         
        string title = 4 [json_name = "title"];
        Specified by:
        getTitleBytes in interface UpsertWebhookRequestOrBuilder
        Returns:
        The bytes for title.
      • setTitle

        public UpsertWebhookRequest.Builder setTitle​(java.lang.String value)
         Webhook name
         
        string title = 4 [json_name = "title"];
        Parameters:
        value - The title to set.
        Returns:
        This builder for chaining.
      • clearTitle

        public UpsertWebhookRequest.Builder clearTitle()
         Webhook name
         
        string title = 4 [json_name = "title"];
        Returns:
        This builder for chaining.
      • setTitleBytes

        public UpsertWebhookRequest.Builder setTitleBytes​(com.google.protobuf.ByteString value)
         Webhook name
         
        string title = 4 [json_name = "title"];
        Parameters:
        value - The bytes for title to set.
        Returns:
        This builder for chaining.
      • hasDescription

        public boolean hasDescription()
         Webhook description
         
        optional string description = 5 [json_name = "description"];
        Specified by:
        hasDescription in interface UpsertWebhookRequestOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public java.lang.String getDescription()
         Webhook description
         
        optional string description = 5 [json_name = "description"];
        Specified by:
        getDescription in interface UpsertWebhookRequestOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Webhook description
         
        optional string description = 5 [json_name = "description"];
        Specified by:
        getDescriptionBytes in interface UpsertWebhookRequestOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public UpsertWebhookRequest.Builder setDescription​(java.lang.String value)
         Webhook description
         
        optional string description = 5 [json_name = "description"];
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public UpsertWebhookRequest.Builder clearDescription()
         Webhook description
         
        optional string description = 5 [json_name = "description"];
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public UpsertWebhookRequest.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Webhook description
         
        optional string description = 5 [json_name = "description"];
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getEventsList

        public java.util.List<WebhookEvent> getEventsList()
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Specified by:
        getEventsList in interface UpsertWebhookRequestOrBuilder
        Returns:
        A list containing the events.
      • getEventsCount

        public int getEventsCount()
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Specified by:
        getEventsCount in interface UpsertWebhookRequestOrBuilder
        Returns:
        The count of events.
      • getEvents

        public WebhookEvent getEvents​(int index)
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Specified by:
        getEvents in interface UpsertWebhookRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The events at the given index.
      • setEvents

        public UpsertWebhookRequest.Builder setEvents​(int index,
                                                      WebhookEvent value)
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Parameters:
        index - The index to set the value at.
        value - The events to set.
        Returns:
        This builder for chaining.
      • addEvents

        public UpsertWebhookRequest.Builder addEvents​(WebhookEvent value)
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Parameters:
        value - The events to add.
        Returns:
        This builder for chaining.
      • addAllEvents

        public UpsertWebhookRequest.Builder addAllEvents​(java.lang.Iterable<? extends WebhookEvent> values)
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Parameters:
        values - The events to add.
        Returns:
        This builder for chaining.
      • clearEvents

        public UpsertWebhookRequest.Builder clearEvents()
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Returns:
        This builder for chaining.
      • getEventsValueList

        public java.util.List<java.lang.Integer> getEventsValueList()
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Specified by:
        getEventsValueList in interface UpsertWebhookRequestOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for events.
      • getEventsValue

        public int getEventsValue​(int index)
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Specified by:
        getEventsValue in interface UpsertWebhookRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of events at the given index.
      • setEventsValue

        public UpsertWebhookRequest.Builder setEventsValue​(int index,
                                                           int value)
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for events to set.
        Returns:
        This builder for chaining.
      • addEventsValue

        public UpsertWebhookRequest.Builder addEventsValue​(int value)
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Parameters:
        value - The enum numeric value on the wire for events to add.
        Returns:
        This builder for chaining.
      • addAllEventsValue

        public UpsertWebhookRequest.Builder addAllEventsValue​(java.lang.Iterable<java.lang.Integer> values)
         Events to trigger the webhook
         
        repeated .streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6 [json_name = "events"];
        Parameters:
        values - The enum numeric values on the wire for events to add.
        Returns:
        This builder for chaining.
      • getTargetUrl

        public java.lang.String getTargetUrl()
         Target endpoint for webhook delivery
         
        string target_url = 7 [json_name = "targetUrl"];
        Specified by:
        getTargetUrl in interface UpsertWebhookRequestOrBuilder
        Returns:
        The targetUrl.
      • getTargetUrlBytes

        public com.google.protobuf.ByteString getTargetUrlBytes()
         Target endpoint for webhook delivery
         
        string target_url = 7 [json_name = "targetUrl"];
        Specified by:
        getTargetUrlBytes in interface UpsertWebhookRequestOrBuilder
        Returns:
        The bytes for targetUrl.
      • setTargetUrl

        public UpsertWebhookRequest.Builder setTargetUrl​(java.lang.String value)
         Target endpoint for webhook delivery
         
        string target_url = 7 [json_name = "targetUrl"];
        Parameters:
        value - The targetUrl to set.
        Returns:
        This builder for chaining.
      • clearTargetUrl

        public UpsertWebhookRequest.Builder clearTargetUrl()
         Target endpoint for webhook delivery
         
        string target_url = 7 [json_name = "targetUrl"];
        Returns:
        This builder for chaining.
      • setTargetUrlBytes

        public UpsertWebhookRequest.Builder setTargetUrlBytes​(com.google.protobuf.ByteString value)
         Target endpoint for webhook delivery
         
        string target_url = 7 [json_name = "targetUrl"];
        Parameters:
        value - The bytes for targetUrl to set.
        Returns:
        This builder for chaining.
      • hasApiKey

        public boolean hasApiKey()
         Target endpoint authentication
         
        optional .streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 8 [json_name = "apiKey"];
        Specified by:
        hasApiKey in interface UpsertWebhookRequestOrBuilder
        Returns:
        Whether the apiKey field is set.
      • getApiKey

        public ApiKey getApiKey()
         Target endpoint authentication
         
        optional .streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 8 [json_name = "apiKey"];
        Specified by:
        getApiKey in interface UpsertWebhookRequestOrBuilder
        Returns:
        The apiKey.
      • setApiKey

        public UpsertWebhookRequest.Builder setApiKey​(ApiKey value)
         Target endpoint authentication
         
        optional .streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 8 [json_name = "apiKey"];
      • setApiKey

        public UpsertWebhookRequest.Builder setApiKey​(ApiKey.Builder builderForValue)
         Target endpoint authentication
         
        optional .streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 8 [json_name = "apiKey"];
      • mergeApiKey

        public UpsertWebhookRequest.Builder mergeApiKey​(ApiKey value)
         Target endpoint authentication
         
        optional .streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 8 [json_name = "apiKey"];
      • clearApiKey

        public UpsertWebhookRequest.Builder clearApiKey()
         Target endpoint authentication
         
        optional .streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 8 [json_name = "apiKey"];
      • hasDuration

        public boolean hasDuration()
         Duration in seconds for which the webhook is valid
         
        optional uint32 duration = 9 [json_name = "duration"];
        Specified by:
        hasDuration in interface UpsertWebhookRequestOrBuilder
        Returns:
        Whether the duration field is set.
      • getDuration

        public int getDuration()
         Duration in seconds for which the webhook is valid
         
        optional uint32 duration = 9 [json_name = "duration"];
        Specified by:
        getDuration in interface UpsertWebhookRequestOrBuilder
        Returns:
        The duration.
      • setDuration

        public UpsertWebhookRequest.Builder setDuration​(int value)
         Duration in seconds for which the webhook is valid
         
        optional uint32 duration = 9 [json_name = "duration"];
        Parameters:
        value - The duration to set.
        Returns:
        This builder for chaining.
      • clearDuration

        public UpsertWebhookRequest.Builder clearDuration()
         Duration in seconds for which the webhook is valid
         
        optional uint32 duration = 9 [json_name = "duration"];
        Returns:
        This builder for chaining.
      • hasLimit

        public boolean hasLimit()
         Rate limit for webhook requests
         
        optional uint32 limit = 10 [json_name = "limit"];
        Specified by:
        hasLimit in interface UpsertWebhookRequestOrBuilder
        Returns:
        Whether the limit field is set.
      • getLimit

        public int getLimit()
         Rate limit for webhook requests
         
        optional uint32 limit = 10 [json_name = "limit"];
        Specified by:
        getLimit in interface UpsertWebhookRequestOrBuilder
        Returns:
        The limit.
      • setLimit

        public UpsertWebhookRequest.Builder setLimit​(int value)
         Rate limit for webhook requests
         
        optional uint32 limit = 10 [json_name = "limit"];
        Parameters:
        value - The limit to set.
        Returns:
        This builder for chaining.
      • clearLimit

        public UpsertWebhookRequest.Builder clearLimit()
         Rate limit for webhook requests
         
        optional uint32 limit = 10 [json_name = "limit"];
        Returns:
        This builder for chaining.
      • hasWebhookToggle

        public boolean hasWebhookToggle()
        optional .streamlayer.sdkSettings.organization.webhooks.WebhookToggle webhook_toggle = 11 [json_name = "webhookToggle"];
        Specified by:
        hasWebhookToggle in interface UpsertWebhookRequestOrBuilder
        Returns:
        Whether the webhookToggle field is set.
      • getWebhookToggleValue

        public int getWebhookToggleValue()
        optional .streamlayer.sdkSettings.organization.webhooks.WebhookToggle webhook_toggle = 11 [json_name = "webhookToggle"];
        Specified by:
        getWebhookToggleValue in interface UpsertWebhookRequestOrBuilder
        Returns:
        The enum numeric value on the wire for webhookToggle.
      • setWebhookToggleValue

        public UpsertWebhookRequest.Builder setWebhookToggleValue​(int value)
        optional .streamlayer.sdkSettings.organization.webhooks.WebhookToggle webhook_toggle = 11 [json_name = "webhookToggle"];
        Parameters:
        value - The webhookToggle to set.
        Returns:
        This builder for chaining.
      • setWebhookToggle

        public UpsertWebhookRequest.Builder setWebhookToggle​(WebhookToggle value)
        optional .streamlayer.sdkSettings.organization.webhooks.WebhookToggle webhook_toggle = 11 [json_name = "webhookToggle"];
        Parameters:
        value - The enum numeric value on the wire for webhookToggle to set.
        Returns:
        This builder for chaining.
      • clearWebhookToggle

        public UpsertWebhookRequest.Builder clearWebhookToggle()
        optional .streamlayer.sdkSettings.organization.webhooks.WebhookToggle webhook_toggle = 11 [json_name = "webhookToggle"];
        Returns:
        This builder for chaining.