Class Webhook.Builder

  • All Implemented Interfaces:
    com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, WebhookOrBuilder, java.lang.Cloneable
    Enclosing class:
    Webhook

    public static final class Webhook.Builder
    extends com.google.protobuf.GeneratedMessageLite.Builder<Webhook,​Webhook.Builder>
    implements WebhookOrBuilder
    Protobuf type streamlayer.sdkSettings.organization.webhooks.Webhook
    • Method Detail

      • getId

        public java.lang.String getId()
         endpoint_id of the created webhook
         
        string id = 1 [json_name = "id"];
        Specified by:
        getId in interface WebhookOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         endpoint_id of the created webhook
         
        string id = 1 [json_name = "id"];
        Specified by:
        getIdBytes in interface WebhookOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Webhook.Builder setId​(java.lang.String value)
         endpoint_id of the created webhook
         
        string id = 1 [json_name = "id"];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Webhook.Builder clearId()
         endpoint_id of the created webhook
         
        string id = 1 [json_name = "id"];
        Returns:
        This builder for chaining.
      • setIdBytes

        public Webhook.Builder setIdBytes​(com.google.protobuf.ByteString value)
         endpoint_id of the created webhook
         
        string id = 1 [json_name = "id"];
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getProjectId

        public java.lang.String getProjectId()
         Convoy project_id
         
        string project_id = 2 [json_name = "projectId"];
        Specified by:
        getProjectId in interface WebhookOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         Convoy project_id
         
        string project_id = 2 [json_name = "projectId"];
        Specified by:
        getProjectIdBytes in interface WebhookOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public Webhook.Builder setProjectId​(java.lang.String value)
         Convoy project_id
         
        string project_id = 2 [json_name = "projectId"];
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public Webhook.Builder clearProjectId()
         Convoy project_id
         
        string project_id = 2 [json_name = "projectId"];
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public Webhook.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         Convoy project_id
         
        string project_id = 2 [json_name = "projectId"];
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • getTitle

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.String getTargetUrl()
         webhook target EP
         
        string target_url = 6 [json_name = "targetUrl"];
        Specified by:
        getTargetUrl in interface WebhookOrBuilder
        Returns:
        The targetUrl.
      • getTargetUrlBytes

        public com.google.protobuf.ByteString getTargetUrlBytes()
         webhook target EP
         
        string target_url = 6 [json_name = "targetUrl"];
        Specified by:
        getTargetUrlBytes in interface WebhookOrBuilder
        Returns:
        The bytes for targetUrl.
      • setTargetUrl

        public Webhook.Builder setTargetUrl​(java.lang.String value)
         webhook target EP
         
        string target_url = 6 [json_name = "targetUrl"];
        Parameters:
        value - The targetUrl to set.
        Returns:
        This builder for chaining.
      • clearTargetUrl

        public Webhook.Builder clearTargetUrl()
         webhook target EP
         
        string target_url = 6 [json_name = "targetUrl"];
        Returns:
        This builder for chaining.
      • setTargetUrlBytes

        public Webhook.Builder setTargetUrlBytes​(com.google.protobuf.ByteString value)
         webhook target EP
         
        string target_url = 6 [json_name = "targetUrl"];
        Parameters:
        value - The bytes for targetUrl to set.
        Returns:
        This builder for chaining.
      • getHttpTimeout

        public int getHttpTimeout()
        uint32 http_timeout = 7 [json_name = "httpTimeout"];
        Specified by:
        getHttpTimeout in interface WebhookOrBuilder
        Returns:
        The httpTimeout.
      • setHttpTimeout

        public Webhook.Builder setHttpTimeout​(int value)
        uint32 http_timeout = 7 [json_name = "httpTimeout"];
        Parameters:
        value - The httpTimeout to set.
        Returns:
        This builder for chaining.
      • clearHttpTimeout

        public Webhook.Builder clearHttpTimeout()
        uint32 http_timeout = 7 [json_name = "httpTimeout"];
        Returns:
        This builder for chaining.
      • getRateLimit

        public int getRateLimit()
        uint32 rate_limit = 8 [json_name = "rateLimit"];
        Specified by:
        getRateLimit in interface WebhookOrBuilder
        Returns:
        The rateLimit.
      • setRateLimit

        public Webhook.Builder setRateLimit​(int value)
        uint32 rate_limit = 8 [json_name = "rateLimit"];
        Parameters:
        value - The rateLimit to set.
        Returns:
        This builder for chaining.
      • clearRateLimit

        public Webhook.Builder clearRateLimit()
        uint32 rate_limit = 8 [json_name = "rateLimit"];
        Returns:
        This builder for chaining.
      • getRateLimitDuration

        public int getRateLimitDuration()
        uint32 rate_limit_duration = 9 [json_name = "rateLimitDuration"];
        Specified by:
        getRateLimitDuration in interface WebhookOrBuilder
        Returns:
        The rateLimitDuration.
      • setRateLimitDuration

        public Webhook.Builder setRateLimitDuration​(int value)
        uint32 rate_limit_duration = 9 [json_name = "rateLimitDuration"];
        Parameters:
        value - The rateLimitDuration to set.
        Returns:
        This builder for chaining.
      • clearRateLimitDuration

        public Webhook.Builder clearRateLimitDuration()
        uint32 rate_limit_duration = 9 [json_name = "rateLimitDuration"];
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
        .streamlayer.sdkSettings.organization.webhooks.WebhookStatus status = 10 [json_name = "status"];
        Specified by:
        getStatusValue in interface WebhookOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public Webhook.Builder setStatusValue​(int value)
        .streamlayer.sdkSettings.organization.webhooks.WebhookStatus status = 10 [json_name = "status"];
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • getStatus

        public WebhookStatus getStatus()
        .streamlayer.sdkSettings.organization.webhooks.WebhookStatus status = 10 [json_name = "status"];
        Specified by:
        getStatus in interface WebhookOrBuilder
        Returns:
        The status.
      • setStatus

        public Webhook.Builder setStatus​(WebhookStatus value)
        .streamlayer.sdkSettings.organization.webhooks.WebhookStatus status = 10 [json_name = "status"];
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public Webhook.Builder clearStatus()
        .streamlayer.sdkSettings.organization.webhooks.WebhookStatus status = 10 [json_name = "status"];
        Returns:
        This builder for chaining.
      • hasApiKey

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

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

        public Webhook.Builder setApiKey​(ApiKey value)
         Target URL authentication
         
        .streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 11 [json_name = "apiKey"];
      • setApiKey

        public Webhook.Builder setApiKey​(ApiKey.Builder builderForValue)
         Target URL authentication
         
        .streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 11 [json_name = "apiKey"];
      • mergeApiKey

        public Webhook.Builder mergeApiKey​(ApiKey value)
         Target URL authentication
         
        .streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 11 [json_name = "apiKey"];
      • clearApiKey

        public Webhook.Builder clearApiKey()
         Target URL authentication
         
        .streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 11 [json_name = "apiKey"];
      • hasEventId

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

        public long getEventId()
        optional uint64 event_id = 12 [json_name = "eventId"];
        Specified by:
        getEventId in interface WebhookOrBuilder
        Returns:
        The eventId.
      • setEventId

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

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

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

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

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

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

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

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