Class SendWebhookEventRequest.EventData

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SendWebhookEventRequest.EventData.Builder
      Protobuf type streamlayer.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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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:
        getEventValue in interface SendWebhookEventRequest.EventDataOrBuilder
        Returns:
        The enum numeric value on the wire for event.
      • getNotificationTypeValue

        public int getNotificationTypeValue()
         [sets by SDK client]
         
        .streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType notification_type = 2 [json_name = "notificationType"];
        Specified by:
        getNotificationTypeValue in interface SendWebhookEventRequest.EventDataOrBuilder
        Returns:
        The enum numeric value on the wire for 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:
        hasUserId in interface SendWebhookEventRequest.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:
        getUserId in interface SendWebhookEventRequest.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:
        getUserIdBytes in interface SendWebhookEventRequest.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:
        hasAction in interface SendWebhookEventRequest.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:
        getAction in interface SendWebhookEventRequest.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:
        getActionBytes in interface SendWebhookEventRequest.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:
        getDescription in interface SendWebhookEventRequest.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:
        getDescriptionBytes in interface SendWebhookEventRequest.EventDataOrBuilder
        Returns:
        The bytes for description.
      • 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:
        getMetadataMap in interface SendWebhookEventRequest.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:
        getMetadataOrDefault in interface SendWebhookEventRequest.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:
        containsCustomFields in interface SendWebhookEventRequest.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:
        getCustomFieldsMap in interface SendWebhookEventRequest.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:
        getCustomFieldsOrDefault in interface SendWebhookEventRequest.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:
        getCustomFieldsOrThrow in interface SendWebhookEventRequest.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,
                                                                  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