Class TriggerCondition

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TriggerCondition.Builder
      Protobuf type streamlayer.triggers.TriggerCondition
      • 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 Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object dynamicMethod​(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)  
      boolean getActivated()
      true when compare(target, current) == true
      java.lang.String getChainOperation()
      logical operation on condition when combining multiple conditions together
      com.google.protobuf.ByteString getChainOperationBytes()
      logical operation on condition when combining multiple conditions together
      int getChainOrder()
      order of occurrence of condition in array of conditions
      java.lang.String getCompare()
      comparison operation, should be used to compare "current" and "target" and return a boolean
      com.google.protobuf.ByteString getCompareBytes()
      comparison operation, should be used to compare "current" and "target" and return a boolean
      java.lang.String getCurrent()
      current value read from event
      com.google.protobuf.ByteString getCurrentBytes()
      current value read from event
      java.lang.String getDatasource()
      scope of event
      com.google.protobuf.ByteString getDatasourceBytes()
      scope of event
      static TriggerCondition getDefaultInstance()  
      java.lang.String getEvent()
      name of event to be compared with
      com.google.protobuf.ByteString getEventBytes()
      name of event to be compared with
      java.lang.String getId()
      uuid generated for each condition
      com.google.protobuf.ByteString getIdBytes()
      uuid generated for each condition
      Event getLog​(int index)
      log of events consumed by condition
      int getLogCount()
      log of events consumed by condition
      java.util.List<Event> getLogList()
      log of events consumed by condition
      EventOrBuilder getLogOrBuilder​(int index)
      log of events consumed by condition
      java.util.List<? extends EventOrBuilder> getLogOrBuilderList()
      log of events consumed by condition
      TriggerConditionOption getOptions​(int index)
      condition options, additional events required for condition to be activated
      int getOptionsCount()
      condition options, additional events required for condition to be activated
      java.util.List<TriggerConditionOption> getOptionsList()
      condition options, additional events required for condition to be activated
      TriggerConditionOptionOrBuilder getOptionsOrBuilder​(int index)
      condition options, additional events required for condition to be activated
      java.util.List<? extends TriggerConditionOptionOrBuilder> getOptionsOrBuilderList()
      condition options, additional events required for condition to be activated
      java.lang.String getScope()
      scope of event
      com.google.protobuf.ByteString getScopeBytes()
      scope of event
      java.lang.String getScopeId()
      scope identifier
      com.google.protobuf.ByteString getScopeIdBytes()
      scope identifier
      java.lang.String getTargets​(int index)
      target value of the event
      com.google.protobuf.ByteString getTargetsBytes​(int index)
      target value of the event
      int getTargetsCount()
      target value of the event
      java.util.List<java.lang.String> getTargetsList()
      target value of the event
      java.lang.String getTriggerId()
      owner id
      com.google.protobuf.ByteString getTriggerIdBytes()
      owner id
      java.lang.String getType()
      type of condition
      com.google.protobuf.ByteString getTypeBytes()
      type of condition
      boolean hasChainOperation()
      logical operation on condition when combining multiple conditions together
      boolean hasChainOrder()
      order of occurrence of condition in array of conditions
      boolean hasCompare()
      comparison operation, should be used to compare "current" and "target" and return a boolean
      boolean hasCurrent()
      current value read from event
      boolean hasDatasource()
      scope of event
      boolean hasEvent()
      name of event to be compared with
      boolean hasScope()
      scope of event
      boolean hasScopeId()
      scope identifier
      boolean hasTriggerId()
      owner id
      boolean hasType()
      type of condition
      static TriggerCondition.Builder newBuilder()  
      static TriggerCondition.Builder newBuilder​(TriggerCondition prototype)  
      static TriggerCondition parseDelimitedFrom​(java.io.InputStream input)  
      static TriggerCondition parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static TriggerCondition parseFrom​(byte[] data)  
      static TriggerCondition parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static TriggerCondition parseFrom​(com.google.protobuf.ByteString data)  
      static TriggerCondition parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static TriggerCondition parseFrom​(com.google.protobuf.CodedInputStream input)  
      static TriggerCondition parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static TriggerCondition parseFrom​(java.io.InputStream input)  
      static TriggerCondition parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static TriggerCondition parseFrom​(java.nio.ByteBuffer data)  
      static TriggerCondition parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<TriggerCondition> 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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        getDefaultInstanceForType, isInitialized
    • Method Detail

      • getId

        public java.lang.String getId()
         uuid generated for each condition
         
        string id = 1 [json_name = "id"];
        Specified by:
        getId in interface TriggerConditionOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         uuid generated for each condition
         
        string id = 1 [json_name = "id"];
        Specified by:
        getIdBytes in interface TriggerConditionOrBuilder
        Returns:
        The bytes for id.
      • hasTriggerId

        public boolean hasTriggerId()
         owner id
         
        optional string trigger_id = 2 [json_name = "triggerId"];
        Specified by:
        hasTriggerId in interface TriggerConditionOrBuilder
        Returns:
        Whether the triggerId field is set.
      • getTriggerId

        public java.lang.String getTriggerId()
         owner id
         
        optional string trigger_id = 2 [json_name = "triggerId"];
        Specified by:
        getTriggerId in interface TriggerConditionOrBuilder
        Returns:
        The triggerId.
      • getTriggerIdBytes

        public com.google.protobuf.ByteString getTriggerIdBytes()
         owner id
         
        optional string trigger_id = 2 [json_name = "triggerId"];
        Specified by:
        getTriggerIdBytes in interface TriggerConditionOrBuilder
        Returns:
        The bytes for triggerId.
      • hasEvent

        public boolean hasEvent()
         name of event to be compared with
         
        optional string event = 3 [json_name = "event"];
        Specified by:
        hasEvent in interface TriggerConditionOrBuilder
        Returns:
        Whether the event field is set.
      • getEvent

        public java.lang.String getEvent()
         name of event to be compared with
         
        optional string event = 3 [json_name = "event"];
        Specified by:
        getEvent in interface TriggerConditionOrBuilder
        Returns:
        The event.
      • getEventBytes

        public com.google.protobuf.ByteString getEventBytes()
         name of event to be compared with
         
        optional string event = 3 [json_name = "event"];
        Specified by:
        getEventBytes in interface TriggerConditionOrBuilder
        Returns:
        The bytes for event.
      • hasDatasource

        public boolean hasDatasource()
         scope of event
         
        optional string datasource = 4 [json_name = "datasource"];
        Specified by:
        hasDatasource in interface TriggerConditionOrBuilder
        Returns:
        Whether the datasource field is set.
      • getDatasource

        public java.lang.String getDatasource()
         scope of event
         
        optional string datasource = 4 [json_name = "datasource"];
        Specified by:
        getDatasource in interface TriggerConditionOrBuilder
        Returns:
        The datasource.
      • getDatasourceBytes

        public com.google.protobuf.ByteString getDatasourceBytes()
         scope of event
         
        optional string datasource = 4 [json_name = "datasource"];
        Specified by:
        getDatasourceBytes in interface TriggerConditionOrBuilder
        Returns:
        The bytes for datasource.
      • hasScope

        public boolean hasScope()
         scope of event
         
        optional string scope = 5 [json_name = "scope"];
        Specified by:
        hasScope in interface TriggerConditionOrBuilder
        Returns:
        Whether the scope field is set.
      • getScope

        public java.lang.String getScope()
         scope of event
         
        optional string scope = 5 [json_name = "scope"];
        Specified by:
        getScope in interface TriggerConditionOrBuilder
        Returns:
        The scope.
      • getScopeBytes

        public com.google.protobuf.ByteString getScopeBytes()
         scope of event
         
        optional string scope = 5 [json_name = "scope"];
        Specified by:
        getScopeBytes in interface TriggerConditionOrBuilder
        Returns:
        The bytes for scope.
      • hasScopeId

        public boolean hasScopeId()
         scope identifier
         
        optional string scope_id = 6 [json_name = "scopeId"];
        Specified by:
        hasScopeId in interface TriggerConditionOrBuilder
        Returns:
        Whether the scopeId field is set.
      • getScopeId

        public java.lang.String getScopeId()
         scope identifier
         
        optional string scope_id = 6 [json_name = "scopeId"];
        Specified by:
        getScopeId in interface TriggerConditionOrBuilder
        Returns:
        The scopeId.
      • getScopeIdBytes

        public com.google.protobuf.ByteString getScopeIdBytes()
         scope identifier
         
        optional string scope_id = 6 [json_name = "scopeId"];
        Specified by:
        getScopeIdBytes in interface TriggerConditionOrBuilder
        Returns:
        The bytes for scopeId.
      • hasCompare

        public boolean hasCompare()
         comparison operation, should be used to compare "current" and "target" and return a boolean
         
        optional string compare = 7 [json_name = "compare"];
        Specified by:
        hasCompare in interface TriggerConditionOrBuilder
        Returns:
        Whether the compare field is set.
      • getCompare

        public java.lang.String getCompare()
         comparison operation, should be used to compare "current" and "target" and return a boolean
         
        optional string compare = 7 [json_name = "compare"];
        Specified by:
        getCompare in interface TriggerConditionOrBuilder
        Returns:
        The compare.
      • getCompareBytes

        public com.google.protobuf.ByteString getCompareBytes()
         comparison operation, should be used to compare "current" and "target" and return a boolean
         
        optional string compare = 7 [json_name = "compare"];
        Specified by:
        getCompareBytes in interface TriggerConditionOrBuilder
        Returns:
        The bytes for compare.
      • hasType

        public boolean hasType()
         type of condition
         
        optional string type = 8 [json_name = "type"];
        Specified by:
        hasType in interface TriggerConditionOrBuilder
        Returns:
        Whether the type field is set.
      • getType

        public java.lang.String getType()
         type of condition
         
        optional string type = 8 [json_name = "type"];
        Specified by:
        getType in interface TriggerConditionOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         type of condition
         
        optional string type = 8 [json_name = "type"];
        Specified by:
        getTypeBytes in interface TriggerConditionOrBuilder
        Returns:
        The bytes for type.
      • getTargetsList

        public java.util.List<java.lang.String> getTargetsList()
         target value of the event
         
        repeated string targets = 9 [json_name = "targets"];
        Specified by:
        getTargetsList in interface TriggerConditionOrBuilder
        Returns:
        A list containing the targets.
      • getTargetsCount

        public int getTargetsCount()
         target value of the event
         
        repeated string targets = 9 [json_name = "targets"];
        Specified by:
        getTargetsCount in interface TriggerConditionOrBuilder
        Returns:
        The count of targets.
      • getTargets

        public java.lang.String getTargets​(int index)
         target value of the event
         
        repeated string targets = 9 [json_name = "targets"];
        Specified by:
        getTargets in interface TriggerConditionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The targets at the given index.
      • getTargetsBytes

        public com.google.protobuf.ByteString getTargetsBytes​(int index)
         target value of the event
         
        repeated string targets = 9 [json_name = "targets"];
        Specified by:
        getTargetsBytes in interface TriggerConditionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the targets at the given index.
      • hasCurrent

        public boolean hasCurrent()
         current value read from event
         
        optional string current = 10 [json_name = "current"];
        Specified by:
        hasCurrent in interface TriggerConditionOrBuilder
        Returns:
        Whether the current field is set.
      • getCurrent

        public java.lang.String getCurrent()
         current value read from event
         
        optional string current = 10 [json_name = "current"];
        Specified by:
        getCurrent in interface TriggerConditionOrBuilder
        Returns:
        The current.
      • getCurrentBytes

        public com.google.protobuf.ByteString getCurrentBytes()
         current value read from event
         
        optional string current = 10 [json_name = "current"];
        Specified by:
        getCurrentBytes in interface TriggerConditionOrBuilder
        Returns:
        The bytes for current.
      • getActivated

        public boolean getActivated()
         true when compare(target, current) == true
         
        bool activated = 11 [json_name = "activated"];
        Specified by:
        getActivated in interface TriggerConditionOrBuilder
        Returns:
        The activated.
      • hasChainOrder

        public boolean hasChainOrder()
         order of occurrence of condition in array of conditions
         
        optional int32 chain_order = 12 [json_name = "chainOrder"];
        Specified by:
        hasChainOrder in interface TriggerConditionOrBuilder
        Returns:
        Whether the chainOrder field is set.
      • getChainOrder

        public int getChainOrder()
         order of occurrence of condition in array of conditions
         
        optional int32 chain_order = 12 [json_name = "chainOrder"];
        Specified by:
        getChainOrder in interface TriggerConditionOrBuilder
        Returns:
        The chainOrder.
      • hasChainOperation

        public boolean hasChainOperation()
         logical operation on condition when combining multiple conditions together
         
        optional string chain_operation = 13 [json_name = "chainOperation"];
        Specified by:
        hasChainOperation in interface TriggerConditionOrBuilder
        Returns:
        Whether the chainOperation field is set.
      • getChainOperation

        public java.lang.String getChainOperation()
         logical operation on condition when combining multiple conditions together
         
        optional string chain_operation = 13 [json_name = "chainOperation"];
        Specified by:
        getChainOperation in interface TriggerConditionOrBuilder
        Returns:
        The chainOperation.
      • getChainOperationBytes

        public com.google.protobuf.ByteString getChainOperationBytes()
         logical operation on condition when combining multiple conditions together
         
        optional string chain_operation = 13 [json_name = "chainOperation"];
        Specified by:
        getChainOperationBytes in interface TriggerConditionOrBuilder
        Returns:
        The bytes for chainOperation.
      • getLogList

        public java.util.List<Event> getLogList()
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
        Specified by:
        getLogList in interface TriggerConditionOrBuilder
      • getLogOrBuilderList

        public java.util.List<? extends EventOrBuilder> getLogOrBuilderList()
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
      • getLogCount

        public int getLogCount()
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
        Specified by:
        getLogCount in interface TriggerConditionOrBuilder
      • getLog

        public Event getLog​(int index)
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
        Specified by:
        getLog in interface TriggerConditionOrBuilder
      • getLogOrBuilder

        public EventOrBuilder getLogOrBuilder​(int index)
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
      • getOptionsList

        public java.util.List<TriggerConditionOption> getOptionsList()
         condition options, additional events required for condition to be activated
         
        repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
        Specified by:
        getOptionsList in interface TriggerConditionOrBuilder
      • getOptionsOrBuilderList

        public java.util.List<? extends TriggerConditionOptionOrBuilder> getOptionsOrBuilderList()
         condition options, additional events required for condition to be activated
         
        repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
      • getOptionsCount

        public int getOptionsCount()
         condition options, additional events required for condition to be activated
         
        repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
        Specified by:
        getOptionsCount in interface TriggerConditionOrBuilder
      • getOptions

        public TriggerConditionOption getOptions​(int index)
         condition options, additional events required for condition to be activated
         
        repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
        Specified by:
        getOptions in interface TriggerConditionOrBuilder
      • getOptionsOrBuilder

        public TriggerConditionOptionOrBuilder getOptionsOrBuilder​(int index)
         condition options, additional events required for condition to be activated
         
        repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
      • parseFrom

        public static TriggerCondition parseFrom​(java.nio.ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TriggerCondition parseFrom​(java.nio.ByteBuffer data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TriggerCondition parseFrom​(com.google.protobuf.ByteString data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TriggerCondition parseFrom​(com.google.protobuf.ByteString data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TriggerCondition parseFrom​(byte[] data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TriggerCondition parseFrom​(byte[] data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TriggerCondition parseFrom​(java.io.InputStream input)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static TriggerCondition parseFrom​(java.io.InputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static TriggerCondition parseDelimitedFrom​(java.io.InputStream input)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static TriggerCondition parseDelimitedFrom​(java.io.InputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static TriggerCondition parseFrom​(com.google.protobuf.CodedInputStream input)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static TriggerCondition parseFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • dynamicMethod

        protected final java.lang.Object dynamicMethod​(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
                                                       java.lang.Object arg0,
                                                       java.lang.Object arg1)
        Specified by:
        dynamicMethod in class com.google.protobuf.GeneratedMessageLite<TriggerCondition,​TriggerCondition.Builder>