Class SendWebhookEventRequest.EventData
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<SendWebhookEventRequest.EventData,SendWebhookEventRequest.EventData.Builder>
-
- com.streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,SendWebhookEventRequest.EventDataOrBuilder
- Enclosing class:
- SendWebhookEventRequest
public static final class SendWebhookEventRequest.EventData extends com.google.protobuf.GeneratedMessageLite<SendWebhookEventRequest.EventData,SendWebhookEventRequest.EventData.Builder> implements SendWebhookEventRequest.EventDataOrBuilder
Protobuf typestreamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSendWebhookEventRequest.EventData.BuilderProtobuf typestreamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends java.lang.Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
-
-
Field Summary
Fields Modifier and Type Field Description static intACTION_FIELD_NUMBERstatic intCUSTOM_FIELDS_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intEVENT_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intNOTIFICATION_TYPE_FIELD_NUMBERstatic intUSER_ID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsCustomFields(java.lang.String key)[sets by SDK client].booleancontainsMetadata(java.lang.String key)[sets by grpc-proxy] Metadata for the eventprotected java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)java.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].static SendWebhookEventRequest.EventDatagetDefaultInstance()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.static SendWebhookEventRequest.EventData.BuildernewBuilder()static SendWebhookEventRequest.EventData.BuildernewBuilder(SendWebhookEventRequest.EventData prototype)static SendWebhookEventRequest.EventDataparseDelimitedFrom(java.io.InputStream input)static SendWebhookEventRequest.EventDataparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SendWebhookEventRequest.EventDataparseFrom(byte[] data)static SendWebhookEventRequest.EventDataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SendWebhookEventRequest.EventDataparseFrom(com.google.protobuf.ByteString data)static SendWebhookEventRequest.EventDataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SendWebhookEventRequest.EventDataparseFrom(com.google.protobuf.CodedInputStream input)static SendWebhookEventRequest.EventDataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SendWebhookEventRequest.EventDataparseFrom(java.io.InputStream input)static SendWebhookEventRequest.EventDataparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SendWebhookEventRequest.EventDataparseFrom(java.nio.ByteBuffer data)static SendWebhookEventRequest.EventDataparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<SendWebhookEventRequest.EventData>parser()-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
-
-
-
Field Detail
-
EVENT_FIELD_NUMBER
public static final int EVENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOTIFICATION_TYPE_FIELD_NUMBER
public static final int NOTIFICATION_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USER_ID_FIELD_NUMBER
public static final int USER_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CUSTOM_FIELDS_FIELD_NUMBER
public static final int CUSTOM_FIELDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
parseFrom
public static SendWebhookEventRequest.EventData parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SendWebhookEventRequest.EventData parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SendWebhookEventRequest.EventData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SendWebhookEventRequest.EventData parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SendWebhookEventRequest.EventData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SendWebhookEventRequest.EventData parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SendWebhookEventRequest.EventData parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static SendWebhookEventRequest.EventData parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static SendWebhookEventRequest.EventData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static SendWebhookEventRequest.EventData parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static SendWebhookEventRequest.EventData parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static SendWebhookEventRequest.EventData parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static SendWebhookEventRequest.EventData.Builder newBuilder()
-
newBuilder
public static SendWebhookEventRequest.EventData.Builder newBuilder(SendWebhookEventRequest.EventData prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)- Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<SendWebhookEventRequest.EventData,SendWebhookEventRequest.EventData.Builder>
-
getDefaultInstance
public static SendWebhookEventRequest.EventData getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SendWebhookEventRequest.EventData> parser()
-
-