Class Webhook.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Webhook,Webhook.Builder>
-
- com.streamlayer.sdkSettings.organization.webhooks.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 typestreamlayer.sdkSettings.organization.webhooks.Webhook
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Webhook.BuilderclearApiKey()Target URL authenticationWebhook.BuilderclearDescription()Webhook descriptionWebhook.BuilderclearEventId()optional uint64 event_id = 12 [json_name = "eventId"];Webhook.BuilderclearHttpTimeout()uint32 http_timeout = 7 [json_name = "httpTimeout"];Webhook.BuilderclearId()endpoint_id of the created webhookWebhook.BuilderclearOrganizationId()owner_idWebhook.BuilderclearProjectId()Convoy project_idWebhook.BuilderclearQuestionId()optional string question_id = 13 [json_name = "questionId"];Webhook.BuilderclearRateLimit()uint32 rate_limit = 8 [json_name = "rateLimit"];Webhook.BuilderclearRateLimitDuration()uint32 rate_limit_duration = 9 [json_name = "rateLimitDuration"];Webhook.BuilderclearStatus().streamlayer.sdkSettings.organization.webhooks.WebhookStatus status = 10 [json_name = "status"];Webhook.BuilderclearTargetUrl()webhook target EPWebhook.BuilderclearTitle()Webhook nameApiKeygetApiKey()Target URL authenticationjava.lang.StringgetDescription()Webhook descriptioncom.google.protobuf.ByteStringgetDescriptionBytes()Webhook descriptionlonggetEventId()optional uint64 event_id = 12 [json_name = "eventId"];intgetHttpTimeout()uint32 http_timeout = 7 [json_name = "httpTimeout"];java.lang.StringgetId()endpoint_id of the created webhookcom.google.protobuf.ByteStringgetIdBytes()endpoint_id of the created webhookjava.lang.StringgetOrganizationId()owner_idcom.google.protobuf.ByteStringgetOrganizationIdBytes()owner_idjava.lang.StringgetProjectId()Convoy project_idcom.google.protobuf.ByteStringgetProjectIdBytes()Convoy project_idjava.lang.StringgetQuestionId()optional string question_id = 13 [json_name = "questionId"];com.google.protobuf.ByteStringgetQuestionIdBytes()optional string question_id = 13 [json_name = "questionId"];intgetRateLimit()uint32 rate_limit = 8 [json_name = "rateLimit"];intgetRateLimitDuration()uint32 rate_limit_duration = 9 [json_name = "rateLimitDuration"];WebhookStatusgetStatus().streamlayer.sdkSettings.organization.webhooks.WebhookStatus status = 10 [json_name = "status"];intgetStatusValue().streamlayer.sdkSettings.organization.webhooks.WebhookStatus status = 10 [json_name = "status"];java.lang.StringgetTargetUrl()webhook target EPcom.google.protobuf.ByteStringgetTargetUrlBytes()webhook target EPjava.lang.StringgetTitle()Webhook namecom.google.protobuf.ByteStringgetTitleBytes()Webhook namebooleanhasApiKey()Target URL authenticationbooleanhasEventId()optional uint64 event_id = 12 [json_name = "eventId"];booleanhasQuestionId()optional string question_id = 13 [json_name = "questionId"];Webhook.BuildermergeApiKey(ApiKey value)Target URL authenticationWebhook.BuildersetApiKey(ApiKey value)Target URL authenticationWebhook.BuildersetApiKey(ApiKey.Builder builderForValue)Target URL authenticationWebhook.BuildersetDescription(java.lang.String value)Webhook descriptionWebhook.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Webhook descriptionWebhook.BuildersetEventId(long value)optional uint64 event_id = 12 [json_name = "eventId"];Webhook.BuildersetHttpTimeout(int value)uint32 http_timeout = 7 [json_name = "httpTimeout"];Webhook.BuildersetId(java.lang.String value)endpoint_id of the created webhookWebhook.BuildersetIdBytes(com.google.protobuf.ByteString value)endpoint_id of the created webhookWebhook.BuildersetOrganizationId(java.lang.String value)owner_idWebhook.BuildersetOrganizationIdBytes(com.google.protobuf.ByteString value)owner_idWebhook.BuildersetProjectId(java.lang.String value)Convoy project_idWebhook.BuildersetProjectIdBytes(com.google.protobuf.ByteString value)Convoy project_idWebhook.BuildersetQuestionId(java.lang.String value)optional string question_id = 13 [json_name = "questionId"];Webhook.BuildersetQuestionIdBytes(com.google.protobuf.ByteString value)optional string question_id = 13 [json_name = "questionId"];Webhook.BuildersetRateLimit(int value)uint32 rate_limit = 8 [json_name = "rateLimit"];Webhook.BuildersetRateLimitDuration(int value)uint32 rate_limit_duration = 9 [json_name = "rateLimitDuration"];Webhook.BuildersetStatus(WebhookStatus value).streamlayer.sdkSettings.organization.webhooks.WebhookStatus status = 10 [json_name = "status"];Webhook.BuildersetStatusValue(int value).streamlayer.sdkSettings.organization.webhooks.WebhookStatus status = 10 [json_name = "status"];Webhook.BuildersetTargetUrl(java.lang.String value)webhook target EPWebhook.BuildersetTargetUrlBytes(com.google.protobuf.ByteString value)webhook target EPWebhook.BuildersetTitle(java.lang.String value)Webhook nameWebhook.BuildersetTitleBytes(com.google.protobuf.ByteString value)Webhook name-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getId
public java.lang.String getId()
endpoint_id of the created webhook
string id = 1 [json_name = "id"];- Specified by:
getIdin interfaceWebhookOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
endpoint_id of the created webhook
string id = 1 [json_name = "id"];- Specified by:
getIdBytesin interfaceWebhookOrBuilder- 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:
getProjectIdin interfaceWebhookOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()
Convoy project_id
string project_id = 2 [json_name = "projectId"];- Specified by:
getProjectIdBytesin interfaceWebhookOrBuilder- 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:
getTitlein interfaceWebhookOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()
Webhook name
string title = 3 [json_name = "title"];- Specified by:
getTitleBytesin interfaceWebhookOrBuilder- 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:
getDescriptionin interfaceWebhookOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Webhook description
string description = 4 [json_name = "description"];- Specified by:
getDescriptionBytesin interfaceWebhookOrBuilder- 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:
getOrganizationIdin interfaceWebhookOrBuilder- Returns:
- The organizationId.
-
getOrganizationIdBytes
public com.google.protobuf.ByteString getOrganizationIdBytes()
owner_id
string organization_id = 5 [json_name = "organizationId"];- Specified by:
getOrganizationIdBytesin interfaceWebhookOrBuilder- 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:
getTargetUrlin interfaceWebhookOrBuilder- Returns:
- The targetUrl.
-
getTargetUrlBytes
public com.google.protobuf.ByteString getTargetUrlBytes()
webhook target EP
string target_url = 6 [json_name = "targetUrl"];- Specified by:
getTargetUrlBytesin interfaceWebhookOrBuilder- 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:
getHttpTimeoutin interfaceWebhookOrBuilder- 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:
getRateLimitin interfaceWebhookOrBuilder- 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:
getRateLimitDurationin interfaceWebhookOrBuilder- 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:
getStatusValuein interfaceWebhookOrBuilder- 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:
getStatusin interfaceWebhookOrBuilder- 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:
hasApiKeyin interfaceWebhookOrBuilder- 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:
getApiKeyin interfaceWebhookOrBuilder- 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:
hasEventIdin interfaceWebhookOrBuilder- Returns:
- Whether the eventId field is set.
-
getEventId
public long getEventId()
optional uint64 event_id = 12 [json_name = "eventId"];- Specified by:
getEventIdin interfaceWebhookOrBuilder- 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:
hasQuestionIdin interfaceWebhookOrBuilder- Returns:
- Whether the questionId field is set.
-
getQuestionId
public java.lang.String getQuestionId()
optional string question_id = 13 [json_name = "questionId"];- Specified by:
getQuestionIdin interfaceWebhookOrBuilder- Returns:
- The questionId.
-
getQuestionIdBytes
public com.google.protobuf.ByteString getQuestionIdBytes()
optional string question_id = 13 [json_name = "questionId"];- Specified by:
getQuestionIdBytesin interfaceWebhookOrBuilder- 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.
-
-