Class TriggerCondition.Builder

    • 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.
      • setId

        public TriggerCondition.Builder setId​(java.lang.String value)
         uuid generated for each condition
         
        string id = 1 [json_name = "id"];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public TriggerCondition.Builder clearId()
         uuid generated for each condition
         
        string id = 1 [json_name = "id"];
        Returns:
        This builder for chaining.
      • setIdBytes

        public TriggerCondition.Builder setIdBytes​(com.google.protobuf.ByteString value)
         uuid generated for each condition
         
        string id = 1 [json_name = "id"];
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • 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.
      • setTriggerId

        public TriggerCondition.Builder setTriggerId​(java.lang.String value)
         owner id
         
        optional string trigger_id = 2 [json_name = "triggerId"];
        Parameters:
        value - The triggerId to set.
        Returns:
        This builder for chaining.
      • clearTriggerId

        public TriggerCondition.Builder clearTriggerId()
         owner id
         
        optional string trigger_id = 2 [json_name = "triggerId"];
        Returns:
        This builder for chaining.
      • setTriggerIdBytes

        public TriggerCondition.Builder setTriggerIdBytes​(com.google.protobuf.ByteString value)
         owner id
         
        optional string trigger_id = 2 [json_name = "triggerId"];
        Parameters:
        value - The bytes for triggerId to set.
        Returns:
        This builder for chaining.
      • 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.
      • setEvent

        public TriggerCondition.Builder setEvent​(java.lang.String value)
         name of event to be compared with
         
        optional string event = 3 [json_name = "event"];
        Parameters:
        value - The event to set.
        Returns:
        This builder for chaining.
      • clearEvent

        public TriggerCondition.Builder clearEvent()
         name of event to be compared with
         
        optional string event = 3 [json_name = "event"];
        Returns:
        This builder for chaining.
      • setEventBytes

        public TriggerCondition.Builder setEventBytes​(com.google.protobuf.ByteString value)
         name of event to be compared with
         
        optional string event = 3 [json_name = "event"];
        Parameters:
        value - The bytes for event to set.
        Returns:
        This builder for chaining.
      • 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.
      • setDatasource

        public TriggerCondition.Builder setDatasource​(java.lang.String value)
         scope of event
         
        optional string datasource = 4 [json_name = "datasource"];
        Parameters:
        value - The datasource to set.
        Returns:
        This builder for chaining.
      • clearDatasource

        public TriggerCondition.Builder clearDatasource()
         scope of event
         
        optional string datasource = 4 [json_name = "datasource"];
        Returns:
        This builder for chaining.
      • setDatasourceBytes

        public TriggerCondition.Builder setDatasourceBytes​(com.google.protobuf.ByteString value)
         scope of event
         
        optional string datasource = 4 [json_name = "datasource"];
        Parameters:
        value - The bytes for datasource to set.
        Returns:
        This builder for chaining.
      • 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.
      • setScope

        public TriggerCondition.Builder setScope​(java.lang.String value)
         scope of event
         
        optional string scope = 5 [json_name = "scope"];
        Parameters:
        value - The scope to set.
        Returns:
        This builder for chaining.
      • clearScope

        public TriggerCondition.Builder clearScope()
         scope of event
         
        optional string scope = 5 [json_name = "scope"];
        Returns:
        This builder for chaining.
      • setScopeBytes

        public TriggerCondition.Builder setScopeBytes​(com.google.protobuf.ByteString value)
         scope of event
         
        optional string scope = 5 [json_name = "scope"];
        Parameters:
        value - The bytes for scope to set.
        Returns:
        This builder for chaining.
      • 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.
      • setScopeId

        public TriggerCondition.Builder setScopeId​(java.lang.String value)
         scope identifier
         
        optional string scope_id = 6 [json_name = "scopeId"];
        Parameters:
        value - The scopeId to set.
        Returns:
        This builder for chaining.
      • clearScopeId

        public TriggerCondition.Builder clearScopeId()
         scope identifier
         
        optional string scope_id = 6 [json_name = "scopeId"];
        Returns:
        This builder for chaining.
      • setScopeIdBytes

        public TriggerCondition.Builder setScopeIdBytes​(com.google.protobuf.ByteString value)
         scope identifier
         
        optional string scope_id = 6 [json_name = "scopeId"];
        Parameters:
        value - The bytes for scopeId to set.
        Returns:
        This builder for chaining.
      • 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.
      • setCompare

        public TriggerCondition.Builder setCompare​(java.lang.String value)
         comparison operation, should be used to compare "current" and "target" and return a boolean
         
        optional string compare = 7 [json_name = "compare"];
        Parameters:
        value - The compare to set.
        Returns:
        This builder for chaining.
      • clearCompare

        public TriggerCondition.Builder clearCompare()
         comparison operation, should be used to compare "current" and "target" and return a boolean
         
        optional string compare = 7 [json_name = "compare"];
        Returns:
        This builder for chaining.
      • setCompareBytes

        public TriggerCondition.Builder setCompareBytes​(com.google.protobuf.ByteString value)
         comparison operation, should be used to compare "current" and "target" and return a boolean
         
        optional string compare = 7 [json_name = "compare"];
        Parameters:
        value - The bytes for compare to set.
        Returns:
        This builder for chaining.
      • 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.
      • setType

        public TriggerCondition.Builder setType​(java.lang.String value)
         type of condition
         
        optional string type = 8 [json_name = "type"];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public TriggerCondition.Builder clearType()
         type of condition
         
        optional string type = 8 [json_name = "type"];
        Returns:
        This builder for chaining.
      • setTypeBytes

        public TriggerCondition.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         type of condition
         
        optional string type = 8 [json_name = "type"];
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • 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.
      • setTargets

        public TriggerCondition.Builder setTargets​(int index,
                                                   java.lang.String value)
         target value of the event
         
        repeated string targets = 9 [json_name = "targets"];
        Parameters:
        index - The index to set the value at.
        value - The targets to set.
        Returns:
        This builder for chaining.
      • addTargets

        public TriggerCondition.Builder addTargets​(java.lang.String value)
         target value of the event
         
        repeated string targets = 9 [json_name = "targets"];
        Parameters:
        value - The targets to add.
        Returns:
        This builder for chaining.
      • addAllTargets

        public TriggerCondition.Builder addAllTargets​(java.lang.Iterable<java.lang.String> values)
         target value of the event
         
        repeated string targets = 9 [json_name = "targets"];
        Parameters:
        values - The targets to add.
        Returns:
        This builder for chaining.
      • clearTargets

        public TriggerCondition.Builder clearTargets()
         target value of the event
         
        repeated string targets = 9 [json_name = "targets"];
        Returns:
        This builder for chaining.
      • addTargetsBytes

        public TriggerCondition.Builder addTargetsBytes​(com.google.protobuf.ByteString value)
         target value of the event
         
        repeated string targets = 9 [json_name = "targets"];
        Parameters:
        value - The bytes of the targets to add.
        Returns:
        This builder for chaining.
      • 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.
      • setCurrent

        public TriggerCondition.Builder setCurrent​(java.lang.String value)
         current value read from event
         
        optional string current = 10 [json_name = "current"];
        Parameters:
        value - The current to set.
        Returns:
        This builder for chaining.
      • clearCurrent

        public TriggerCondition.Builder clearCurrent()
         current value read from event
         
        optional string current = 10 [json_name = "current"];
        Returns:
        This builder for chaining.
      • setCurrentBytes

        public TriggerCondition.Builder setCurrentBytes​(com.google.protobuf.ByteString value)
         current value read from event
         
        optional string current = 10 [json_name = "current"];
        Parameters:
        value - The bytes for current to set.
        Returns:
        This builder for chaining.
      • 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.
      • setActivated

        public TriggerCondition.Builder setActivated​(boolean value)
         true when compare(target, current) == true
         
        bool activated = 11 [json_name = "activated"];
        Parameters:
        value - The activated to set.
        Returns:
        This builder for chaining.
      • clearActivated

        public TriggerCondition.Builder clearActivated()
         true when compare(target, current) == true
         
        bool activated = 11 [json_name = "activated"];
        Returns:
        This builder for chaining.
      • 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.
      • setChainOrder

        public TriggerCondition.Builder setChainOrder​(int value)
         order of occurrence of condition in array of conditions
         
        optional int32 chain_order = 12 [json_name = "chainOrder"];
        Parameters:
        value - The chainOrder to set.
        Returns:
        This builder for chaining.
      • clearChainOrder

        public TriggerCondition.Builder clearChainOrder()
         order of occurrence of condition in array of conditions
         
        optional int32 chain_order = 12 [json_name = "chainOrder"];
        Returns:
        This builder for chaining.
      • 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.
      • setChainOperation

        public TriggerCondition.Builder setChainOperation​(java.lang.String value)
         logical operation on condition when combining multiple conditions together
         
        optional string chain_operation = 13 [json_name = "chainOperation"];
        Parameters:
        value - The chainOperation to set.
        Returns:
        This builder for chaining.
      • clearChainOperation

        public TriggerCondition.Builder clearChainOperation()
         logical operation on condition when combining multiple conditions together
         
        optional string chain_operation = 13 [json_name = "chainOperation"];
        Returns:
        This builder for chaining.
      • setChainOperationBytes

        public TriggerCondition.Builder setChainOperationBytes​(com.google.protobuf.ByteString value)
         logical operation on condition when combining multiple conditions together
         
        optional string chain_operation = 13 [json_name = "chainOperation"];
        Parameters:
        value - The bytes for chainOperation to set.
        Returns:
        This builder for chaining.
      • 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
      • 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
      • setLog

        public TriggerCondition.Builder setLog​(int index,
                                               Event value)
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
      • setLog

        public TriggerCondition.Builder setLog​(int index,
                                               Event.Builder builderForValue)
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
      • addLog

        public TriggerCondition.Builder addLog​(Event value)
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
      • addLog

        public TriggerCondition.Builder addLog​(int index,
                                               Event value)
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
      • addLog

        public TriggerCondition.Builder addLog​(Event.Builder builderForValue)
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
      • addLog

        public TriggerCondition.Builder addLog​(int index,
                                               Event.Builder builderForValue)
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
      • addAllLog

        public TriggerCondition.Builder addAllLog​(java.lang.Iterable<? extends Event> values)
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
      • clearLog

        public TriggerCondition.Builder clearLog()
         log of events consumed by condition
         
        repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
      • removeLog

        public TriggerCondition.Builder removeLog​(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
      • 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
      • setOptions

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

        public TriggerCondition.Builder setOptions​(int index,
                                                   TriggerConditionOption.Builder builderForValue)
         condition options, additional events required for condition to be activated
         
        repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
      • addOptions

        public TriggerCondition.Builder addOptions​(TriggerConditionOption value)
         condition options, additional events required for condition to be activated
         
        repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
      • addOptions

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

        public TriggerCondition.Builder addOptions​(TriggerConditionOption.Builder builderForValue)
         condition options, additional events required for condition to be activated
         
        repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
      • addOptions

        public TriggerCondition.Builder addOptions​(int index,
                                                   TriggerConditionOption.Builder builderForValue)
         condition options, additional events required for condition to be activated
         
        repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
      • addAllOptions

        public TriggerCondition.Builder addAllOptions​(java.lang.Iterable<? extends TriggerConditionOption> values)
         condition options, additional events required for condition to be activated
         
        repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
      • clearOptions

        public TriggerCondition.Builder clearOptions()
         condition options, additional events required for condition to be activated
         
        repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
      • removeOptions

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