Class Action

    • Method Detail

      • actionId

        public final String actionId()

        The ID associated with the action.

        Returns:
        The ID associated with the action.
      • properties

        public final String properties()

        A string map of action-specific metadata. Each element in the map consists of a key-value pair. For example, {"value": "100"}.

        The keys use camel case names that match the fields in the schema for the Actions dataset. In the previous example, the value matches the 'VALUE' field defined in the Actions schema. For categorical string data, to include multiple categories for a single action, separate each category with a pipe separator ( |). For example, \"Deluxe|Premium\".

        Returns:
        A string map of action-specific metadata. Each element in the map consists of a key-value pair. For example, {"value": "100"}.

        The keys use camel case names that match the fields in the schema for the Actions dataset. In the previous example, the value matches the 'VALUE' field defined in the Actions schema. For categorical string data, to include multiple categories for a single action, separate each category with a pipe separator (|). For example, \"Deluxe|Premium\".

      • serializableBuilderClass

        public static Class<? extends Action.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)