Class SendWebhookEventRequest.EventData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<SendWebhookEventRequest.EventData,SendWebhookEventRequest.EventData.Builder>
-
- com.streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,SendWebhookEventRequest.EventDataOrBuilder,java.lang.Cloneable
- Enclosing class:
- SendWebhookEventRequest.EventData
public static final class SendWebhookEventRequest.EventData.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<SendWebhookEventRequest.EventData,SendWebhookEventRequest.EventData.Builder> implements SendWebhookEventRequest.EventDataOrBuilder
Protobuf typestreamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SendWebhookEventRequest.EventData.BuilderclearAction()[sets by SDK client].SendWebhookEventRequest.EventData.BuilderclearCustomFields()SendWebhookEventRequest.EventData.BuilderclearDescription()[sets by SDK client].SendWebhookEventRequest.EventData.BuilderclearEvent()[sets by SDK client] (AD event context)SendWebhookEventRequest.EventData.BuilderclearMetadata()SendWebhookEventRequest.EventData.BuilderclearNotificationType()[sets by SDK client]SendWebhookEventRequest.EventData.BuilderclearUserId()[sets by grpc-proxy] from JWT.booleancontainsCustomFields(java.lang.String key)[sets by SDK client].booleancontainsMetadata(java.lang.String key)[sets by grpc-proxy] Metadata for the eventjava.lang.StringgetAction()[sets by SDK client].com.google.protobuf.ByteStringgetActionBytes()[sets by SDK client].java.util.Map<java.lang.String,java.lang.String>getCustomFields()Deprecated.intgetCustomFieldsCount()[sets by SDK client].java.util.Map<java.lang.String,java.lang.String>getCustomFieldsMap()[sets by SDK client].java.lang.StringgetCustomFieldsOrDefault(java.lang.String key, java.lang.String defaultValue)[sets by SDK client].java.lang.StringgetCustomFieldsOrThrow(java.lang.String key)[sets by SDK client].java.lang.StringgetDescription()[sets by SDK client].com.google.protobuf.ByteStringgetDescriptionBytes()[sets by SDK client].WebhookEventgetEvent()[sets by SDK client] (AD event context)intgetEventValue()[sets by SDK client] (AD event context)java.util.Map<java.lang.String,java.lang.String>getMetadata()Deprecated.intgetMetadataCount()[sets by grpc-proxy] Metadata for the eventjava.util.Map<java.lang.String,java.lang.String>getMetadataMap()[sets by grpc-proxy] Metadata for the eventjava.lang.StringgetMetadataOrDefault(java.lang.String key, java.lang.String defaultValue)[sets by grpc-proxy] Metadata for the eventjava.lang.StringgetMetadataOrThrow(java.lang.String key)[sets by grpc-proxy] Metadata for the eventWebhookNotificationTypegetNotificationType()[sets by SDK client]intgetNotificationTypeValue()[sets by SDK client]java.lang.StringgetUserId()[sets by grpc-proxy] from JWT.com.google.protobuf.ByteStringgetUserIdBytes()[sets by grpc-proxy] from JWT.booleanhasAction()[sets by SDK client].booleanhasUserId()[sets by grpc-proxy] from JWT.SendWebhookEventRequest.EventData.BuilderputAllCustomFields(java.util.Map<java.lang.String,java.lang.String> values)[sets by SDK client].SendWebhookEventRequest.EventData.BuilderputAllMetadata(java.util.Map<java.lang.String,java.lang.String> values)[sets by grpc-proxy] Metadata for the eventSendWebhookEventRequest.EventData.BuilderputCustomFields(java.lang.String key, java.lang.String value)[sets by SDK client].SendWebhookEventRequest.EventData.BuilderputMetadata(java.lang.String key, java.lang.String value)[sets by grpc-proxy] Metadata for the eventSendWebhookEventRequest.EventData.BuilderremoveCustomFields(java.lang.String key)[sets by SDK client].SendWebhookEventRequest.EventData.BuilderremoveMetadata(java.lang.String key)[sets by grpc-proxy] Metadata for the eventSendWebhookEventRequest.EventData.BuildersetAction(java.lang.String value)[sets by SDK client].SendWebhookEventRequest.EventData.BuildersetActionBytes(com.google.protobuf.ByteString value)[sets by SDK client].SendWebhookEventRequest.EventData.BuildersetDescription(java.lang.String value)[sets by SDK client].SendWebhookEventRequest.EventData.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)[sets by SDK client].SendWebhookEventRequest.EventData.BuildersetEvent(WebhookEvent value)[sets by SDK client] (AD event context)SendWebhookEventRequest.EventData.BuildersetEventValue(int value)[sets by SDK client] (AD event context)SendWebhookEventRequest.EventData.BuildersetNotificationType(WebhookNotificationType value)[sets by SDK client]SendWebhookEventRequest.EventData.BuildersetNotificationTypeValue(int value)[sets by SDK client]SendWebhookEventRequest.EventData.BuildersetUserId(java.lang.String value)[sets by grpc-proxy] from JWT.SendWebhookEventRequest.EventData.BuildersetUserIdBytes(com.google.protobuf.ByteString value)[sets by grpc-proxy] from JWT.-
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
-
getEventValue
public int getEventValue()
[sets by SDK client] (AD event context)
.streamlayer.sdkSettings.organization.webhooks.WebhookEvent event = 1 [json_name = "event"];- Specified by:
getEventValuein interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- The enum numeric value on the wire for event.
-
setEventValue
public SendWebhookEventRequest.EventData.Builder setEventValue(int value)
[sets by SDK client] (AD event context)
.streamlayer.sdkSettings.organization.webhooks.WebhookEvent event = 1 [json_name = "event"];- Parameters:
value- The event to set.- Returns:
- This builder for chaining.
-
getEvent
public WebhookEvent getEvent()
[sets by SDK client] (AD event context)
.streamlayer.sdkSettings.organization.webhooks.WebhookEvent event = 1 [json_name = "event"];- Specified by:
getEventin interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- The event.
-
setEvent
public SendWebhookEventRequest.EventData.Builder setEvent(WebhookEvent value)
[sets by SDK client] (AD event context)
.streamlayer.sdkSettings.organization.webhooks.WebhookEvent event = 1 [json_name = "event"];- Parameters:
value- The enum numeric value on the wire for event to set.- Returns:
- This builder for chaining.
-
clearEvent
public SendWebhookEventRequest.EventData.Builder clearEvent()
[sets by SDK client] (AD event context)
.streamlayer.sdkSettings.organization.webhooks.WebhookEvent event = 1 [json_name = "event"];- Returns:
- This builder for chaining.
-
getNotificationTypeValue
public int getNotificationTypeValue()
[sets by SDK client]
.streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType notification_type = 2 [json_name = "notificationType"];- Specified by:
getNotificationTypeValuein interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- The enum numeric value on the wire for notificationType.
-
setNotificationTypeValue
public SendWebhookEventRequest.EventData.Builder setNotificationTypeValue(int value)
[sets by SDK client]
.streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType notification_type = 2 [json_name = "notificationType"];- Parameters:
value- The notificationType to set.- Returns:
- This builder for chaining.
-
getNotificationType
public WebhookNotificationType getNotificationType()
[sets by SDK client]
.streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType notification_type = 2 [json_name = "notificationType"];- Specified by:
getNotificationTypein interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- The notificationType.
-
setNotificationType
public SendWebhookEventRequest.EventData.Builder setNotificationType(WebhookNotificationType value)
[sets by SDK client]
.streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType notification_type = 2 [json_name = "notificationType"];- Parameters:
value- The enum numeric value on the wire for notificationType to set.- Returns:
- This builder for chaining.
-
clearNotificationType
public SendWebhookEventRequest.EventData.Builder clearNotificationType()
[sets by SDK client]
.streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType notification_type = 2 [json_name = "notificationType"];- Returns:
- This builder for chaining.
-
hasUserId
public boolean hasUserId()
[sets by grpc-proxy] from JWT. External client user ID. SL bypass flow should be used: https://github.com/makeomatic/ms-users/blob/master/rfcs/streamlayer-bypass-provider.md#streamlayer-internal-bypass-provider
optional string user_id = 3 [json_name = "userId"];- Specified by:
hasUserIdin interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- Whether the userId field is set.
-
getUserId
public java.lang.String getUserId()
[sets by grpc-proxy] from JWT. External client user ID. SL bypass flow should be used: https://github.com/makeomatic/ms-users/blob/master/rfcs/streamlayer-bypass-provider.md#streamlayer-internal-bypass-provider
optional string user_id = 3 [json_name = "userId"];- Specified by:
getUserIdin interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- The userId.
-
getUserIdBytes
public com.google.protobuf.ByteString getUserIdBytes()
[sets by grpc-proxy] from JWT. External client user ID. SL bypass flow should be used: https://github.com/makeomatic/ms-users/blob/master/rfcs/streamlayer-bypass-provider.md#streamlayer-internal-bypass-provider
optional string user_id = 3 [json_name = "userId"];- Specified by:
getUserIdBytesin interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- The bytes for userId.
-
setUserId
public SendWebhookEventRequest.EventData.Builder setUserId(java.lang.String value)
[sets by grpc-proxy] from JWT. External client user ID. SL bypass flow should be used: https://github.com/makeomatic/ms-users/blob/master/rfcs/streamlayer-bypass-provider.md#streamlayer-internal-bypass-provider
optional string user_id = 3 [json_name = "userId"];- Parameters:
value- The userId to set.- Returns:
- This builder for chaining.
-
clearUserId
public SendWebhookEventRequest.EventData.Builder clearUserId()
[sets by grpc-proxy] from JWT. External client user ID. SL bypass flow should be used: https://github.com/makeomatic/ms-users/blob/master/rfcs/streamlayer-bypass-provider.md#streamlayer-internal-bypass-provider
optional string user_id = 3 [json_name = "userId"];- Returns:
- This builder for chaining.
-
setUserIdBytes
public SendWebhookEventRequest.EventData.Builder setUserIdBytes(com.google.protobuf.ByteString value)
[sets by grpc-proxy] from JWT. External client user ID. SL bypass flow should be used: https://github.com/makeomatic/ms-users/blob/master/rfcs/streamlayer-bypass-provider.md#streamlayer-internal-bypass-provider
optional string user_id = 3 [json_name = "userId"];- Parameters:
value- The bytes for userId to set.- Returns:
- This builder for chaining.
-
hasAction
public boolean hasAction()
[sets by SDK client]. Action, e.g., CLICK_SECONDARY_BUTTON
optional string action = 4 [json_name = "action"];- Specified by:
hasActionin interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- Whether the action field is set.
-
getAction
public java.lang.String getAction()
[sets by SDK client]. Action, e.g., CLICK_SECONDARY_BUTTON
optional string action = 4 [json_name = "action"];- Specified by:
getActionin interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()
[sets by SDK client]. Action, e.g., CLICK_SECONDARY_BUTTON
optional string action = 4 [json_name = "action"];- Specified by:
getActionBytesin interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- The bytes for action.
-
setAction
public SendWebhookEventRequest.EventData.Builder setAction(java.lang.String value)
[sets by SDK client]. Action, e.g., CLICK_SECONDARY_BUTTON
optional string action = 4 [json_name = "action"];- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
public SendWebhookEventRequest.EventData.Builder clearAction()
[sets by SDK client]. Action, e.g., CLICK_SECONDARY_BUTTON
optional string action = 4 [json_name = "action"];- Returns:
- This builder for chaining.
-
setActionBytes
public SendWebhookEventRequest.EventData.Builder setActionBytes(com.google.protobuf.ByteString value)
[sets by SDK client]. Action, e.g., CLICK_SECONDARY_BUTTON
optional string action = 4 [json_name = "action"];- Parameters:
value- The bytes for action to set.- Returns:
- This builder for chaining.
-
getDescription
public java.lang.String getDescription()
[sets by SDK client]. Event description, e.g. "User clicked on a secondary button"
string description = 5 [json_name = "description"];- Specified by:
getDescriptionin interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
[sets by SDK client]. Event description, e.g. "User clicked on a secondary button"
string description = 5 [json_name = "description"];- Specified by:
getDescriptionBytesin interfaceSendWebhookEventRequest.EventDataOrBuilder- Returns:
- The bytes for description.
-
setDescription
public SendWebhookEventRequest.EventData.Builder setDescription(java.lang.String value)
[sets by SDK client]. Event description, e.g. "User clicked on a secondary button"
string description = 5 [json_name = "description"];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public SendWebhookEventRequest.EventData.Builder clearDescription()
[sets by SDK client]. Event description, e.g. "User clicked on a secondary button"
string description = 5 [json_name = "description"];- Returns:
- This builder for chaining.
-
setDescriptionBytes
public SendWebhookEventRequest.EventData.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
[sets by SDK client]. Event description, e.g. "User clicked on a secondary button"
string description = 5 [json_name = "description"];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:SendWebhookEventRequest.EventDataOrBuilder[sets by grpc-proxy] Metadata for the event
map<string, string> metadata = 6 [json_name = "metadata"];- Specified by:
getMetadataCountin interfaceSendWebhookEventRequest.EventDataOrBuilder
-
containsMetadata
public boolean containsMetadata(java.lang.String key)
[sets by grpc-proxy] Metadata for the event
map<string, string> metadata = 6 [json_name = "metadata"];- Specified by:
containsMetadatain interfaceSendWebhookEventRequest.EventDataOrBuilder
-
clearMetadata
public SendWebhookEventRequest.EventData.Builder clearMetadata()
-
removeMetadata
public SendWebhookEventRequest.EventData.Builder removeMetadata(java.lang.String key)
[sets by grpc-proxy] Metadata for the event
map<string, string> metadata = 6 [json_name = "metadata"];
-
getMetadata
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceSendWebhookEventRequest.EventDataOrBuilder
-
getMetadataMap
public java.util.Map<java.lang.String,java.lang.String> getMetadataMap()
[sets by grpc-proxy] Metadata for the event
map<string, string> metadata = 6 [json_name = "metadata"];- Specified by:
getMetadataMapin interfaceSendWebhookEventRequest.EventDataOrBuilder
-
getMetadataOrDefault
public java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue)[sets by grpc-proxy] Metadata for the event
map<string, string> metadata = 6 [json_name = "metadata"];- Specified by:
getMetadataOrDefaultin interfaceSendWebhookEventRequest.EventDataOrBuilder
-
getMetadataOrThrow
public java.lang.String getMetadataOrThrow(java.lang.String key)
[sets by grpc-proxy] Metadata for the event
map<string, string> metadata = 6 [json_name = "metadata"];- Specified by:
getMetadataOrThrowin interfaceSendWebhookEventRequest.EventDataOrBuilder
-
putMetadata
public SendWebhookEventRequest.EventData.Builder putMetadata(java.lang.String key, java.lang.String value)
[sets by grpc-proxy] Metadata for the event
map<string, string> metadata = 6 [json_name = "metadata"];
-
putAllMetadata
public SendWebhookEventRequest.EventData.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> values)
[sets by grpc-proxy] Metadata for the event
map<string, string> metadata = 6 [json_name = "metadata"];
-
getCustomFieldsCount
public int getCustomFieldsCount()
Description copied from interface:SendWebhookEventRequest.EventDataOrBuilder[sets by SDK client]. Clients custom fields for the AD event, e.g. { "promo_code": "SUMMER2024", "campaign": "BeachSale" }map<string, string> custom_fields = 7 [json_name = "customFields"];- Specified by:
getCustomFieldsCountin interfaceSendWebhookEventRequest.EventDataOrBuilder
-
containsCustomFields
public boolean containsCustomFields(java.lang.String key)
[sets by SDK client]. Clients custom fields for the AD event, e.g. { "promo_code": "SUMMER2024", "campaign": "BeachSale" }map<string, string> custom_fields = 7 [json_name = "customFields"];- Specified by:
containsCustomFieldsin interfaceSendWebhookEventRequest.EventDataOrBuilder
-
clearCustomFields
public SendWebhookEventRequest.EventData.Builder clearCustomFields()
-
removeCustomFields
public SendWebhookEventRequest.EventData.Builder removeCustomFields(java.lang.String key)
[sets by SDK client]. Clients custom fields for the AD event, e.g. { "promo_code": "SUMMER2024", "campaign": "BeachSale" }map<string, string> custom_fields = 7 [json_name = "customFields"];
-
getCustomFields
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getCustomFields()
Deprecated.UsegetCustomFieldsMap()instead.- Specified by:
getCustomFieldsin interfaceSendWebhookEventRequest.EventDataOrBuilder
-
getCustomFieldsMap
public java.util.Map<java.lang.String,java.lang.String> getCustomFieldsMap()
[sets by SDK client]. Clients custom fields for the AD event, e.g. { "promo_code": "SUMMER2024", "campaign": "BeachSale" }map<string, string> custom_fields = 7 [json_name = "customFields"];- Specified by:
getCustomFieldsMapin interfaceSendWebhookEventRequest.EventDataOrBuilder
-
getCustomFieldsOrDefault
public java.lang.String getCustomFieldsOrDefault(java.lang.String key, java.lang.String defaultValue)[sets by SDK client]. Clients custom fields for the AD event, e.g. { "promo_code": "SUMMER2024", "campaign": "BeachSale" }map<string, string> custom_fields = 7 [json_name = "customFields"];- Specified by:
getCustomFieldsOrDefaultin interfaceSendWebhookEventRequest.EventDataOrBuilder
-
getCustomFieldsOrThrow
public java.lang.String getCustomFieldsOrThrow(java.lang.String key)
[sets by SDK client]. Clients custom fields for the AD event, e.g. { "promo_code": "SUMMER2024", "campaign": "BeachSale" }map<string, string> custom_fields = 7 [json_name = "customFields"];- Specified by:
getCustomFieldsOrThrowin interfaceSendWebhookEventRequest.EventDataOrBuilder
-
putCustomFields
public SendWebhookEventRequest.EventData.Builder putCustomFields(java.lang.String key, java.lang.String value)
[sets by SDK client]. Clients custom fields for the AD event, e.g. { "promo_code": "SUMMER2024", "campaign": "BeachSale" }map<string, string> custom_fields = 7 [json_name = "customFields"];
-
putAllCustomFields
public SendWebhookEventRequest.EventData.Builder putAllCustomFields(java.util.Map<java.lang.String,java.lang.String> values)
[sets by SDK client]. Clients custom fields for the AD event, e.g. { "promo_code": "SUMMER2024", "campaign": "BeachSale" }map<string, string> custom_fields = 7 [json_name = "customFields"];
-
-