Package com.streamlayer.triggers
Interface TriggerConditionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
TriggerCondition,TriggerCondition.Builder
public interface TriggerConditionOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetActivated()true when compare(target, current) == truejava.lang.StringgetChainOperation()logical operation on condition when combining multiple conditions togethercom.google.protobuf.ByteStringgetChainOperationBytes()logical operation on condition when combining multiple conditions togetherintgetChainOrder()order of occurrence of condition in array of conditionsjava.lang.StringgetCompare()comparison operation, should be used to compare "current" and "target" and return a booleancom.google.protobuf.ByteStringgetCompareBytes()comparison operation, should be used to compare "current" and "target" and return a booleanjava.lang.StringgetCurrent()current value read from eventcom.google.protobuf.ByteStringgetCurrentBytes()current value read from eventjava.lang.StringgetDatasource()scope of eventcom.google.protobuf.ByteStringgetDatasourceBytes()scope of eventjava.lang.StringgetEvent()name of event to be compared withcom.google.protobuf.ByteStringgetEventBytes()name of event to be compared withjava.lang.StringgetId()uuid generated for each conditioncom.google.protobuf.ByteStringgetIdBytes()uuid generated for each conditionEventgetLog(int index)log of events consumed by conditionintgetLogCount()log of events consumed by conditionjava.util.List<Event>getLogList()log of events consumed by conditionTriggerConditionOptiongetOptions(int index)condition options, additional events required for condition to be activatedintgetOptionsCount()condition options, additional events required for condition to be activatedjava.util.List<TriggerConditionOption>getOptionsList()condition options, additional events required for condition to be activatedjava.lang.StringgetScope()scope of eventcom.google.protobuf.ByteStringgetScopeBytes()scope of eventjava.lang.StringgetScopeId()scope identifiercom.google.protobuf.ByteStringgetScopeIdBytes()scope identifierjava.lang.StringgetTargets(int index)target value of the eventcom.google.protobuf.ByteStringgetTargetsBytes(int index)target value of the eventintgetTargetsCount()target value of the eventjava.util.List<java.lang.String>getTargetsList()target value of the eventjava.lang.StringgetTriggerId()owner idcom.google.protobuf.ByteStringgetTriggerIdBytes()owner idjava.lang.StringgetType()type of conditioncom.google.protobuf.ByteStringgetTypeBytes()type of conditionbooleanhasChainOperation()logical operation on condition when combining multiple conditions togetherbooleanhasChainOrder()order of occurrence of condition in array of conditionsbooleanhasCompare()comparison operation, should be used to compare "current" and "target" and return a booleanbooleanhasCurrent()current value read from eventbooleanhasDatasource()scope of eventbooleanhasEvent()name of event to be compared withbooleanhasScope()scope of eventbooleanhasScopeId()scope identifierbooleanhasTriggerId()owner idbooleanhasType()type of condition
-
-
-
Method Detail
-
getId
java.lang.String getId()
uuid generated for each condition
string id = 1 [json_name = "id"];- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()
uuid generated for each condition
string id = 1 [json_name = "id"];- Returns:
- The bytes for id.
-
hasTriggerId
boolean hasTriggerId()
owner id
optional string trigger_id = 2 [json_name = "triggerId"];- Returns:
- Whether the triggerId field is set.
-
getTriggerId
java.lang.String getTriggerId()
owner id
optional string trigger_id = 2 [json_name = "triggerId"];- Returns:
- The triggerId.
-
getTriggerIdBytes
com.google.protobuf.ByteString getTriggerIdBytes()
owner id
optional string trigger_id = 2 [json_name = "triggerId"];- Returns:
- The bytes for triggerId.
-
hasEvent
boolean hasEvent()
name of event to be compared with
optional string event = 3 [json_name = "event"];- Returns:
- Whether the event field is set.
-
getEvent
java.lang.String getEvent()
name of event to be compared with
optional string event = 3 [json_name = "event"];- Returns:
- The event.
-
getEventBytes
com.google.protobuf.ByteString getEventBytes()
name of event to be compared with
optional string event = 3 [json_name = "event"];- Returns:
- The bytes for event.
-
hasDatasource
boolean hasDatasource()
scope of event
optional string datasource = 4 [json_name = "datasource"];- Returns:
- Whether the datasource field is set.
-
getDatasource
java.lang.String getDatasource()
scope of event
optional string datasource = 4 [json_name = "datasource"];- Returns:
- The datasource.
-
getDatasourceBytes
com.google.protobuf.ByteString getDatasourceBytes()
scope of event
optional string datasource = 4 [json_name = "datasource"];- Returns:
- The bytes for datasource.
-
hasScope
boolean hasScope()
scope of event
optional string scope = 5 [json_name = "scope"];- Returns:
- Whether the scope field is set.
-
getScope
java.lang.String getScope()
scope of event
optional string scope = 5 [json_name = "scope"];- Returns:
- The scope.
-
getScopeBytes
com.google.protobuf.ByteString getScopeBytes()
scope of event
optional string scope = 5 [json_name = "scope"];- Returns:
- The bytes for scope.
-
hasScopeId
boolean hasScopeId()
scope identifier
optional string scope_id = 6 [json_name = "scopeId"];- Returns:
- Whether the scopeId field is set.
-
getScopeId
java.lang.String getScopeId()
scope identifier
optional string scope_id = 6 [json_name = "scopeId"];- Returns:
- The scopeId.
-
getScopeIdBytes
com.google.protobuf.ByteString getScopeIdBytes()
scope identifier
optional string scope_id = 6 [json_name = "scopeId"];- Returns:
- The bytes for scopeId.
-
hasCompare
boolean hasCompare()
comparison operation, should be used to compare "current" and "target" and return a boolean
optional string compare = 7 [json_name = "compare"];- Returns:
- Whether the compare field is set.
-
getCompare
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"];- Returns:
- The compare.
-
getCompareBytes
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"];- Returns:
- The bytes for compare.
-
hasType
boolean hasType()
type of condition
optional string type = 8 [json_name = "type"];- Returns:
- Whether the type field is set.
-
getType
java.lang.String getType()
type of condition
optional string type = 8 [json_name = "type"];- Returns:
- The type.
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()
type of condition
optional string type = 8 [json_name = "type"];- Returns:
- The bytes for type.
-
getTargetsList
java.util.List<java.lang.String> getTargetsList()
target value of the event
repeated string targets = 9 [json_name = "targets"];- Returns:
- A list containing the targets.
-
getTargetsCount
int getTargetsCount()
target value of the event
repeated string targets = 9 [json_name = "targets"];- Returns:
- The count of targets.
-
getTargets
java.lang.String getTargets(int index)
target value of the event
repeated string targets = 9 [json_name = "targets"];- Parameters:
index- The index of the element to return.- Returns:
- The targets at the given index.
-
getTargetsBytes
com.google.protobuf.ByteString getTargetsBytes(int index)
target value of the event
repeated string targets = 9 [json_name = "targets"];- Parameters:
index- The index of the element to return.- Returns:
- The targets at the given index.
-
hasCurrent
boolean hasCurrent()
current value read from event
optional string current = 10 [json_name = "current"];- Returns:
- Whether the current field is set.
-
getCurrent
java.lang.String getCurrent()
current value read from event
optional string current = 10 [json_name = "current"];- Returns:
- The current.
-
getCurrentBytes
com.google.protobuf.ByteString getCurrentBytes()
current value read from event
optional string current = 10 [json_name = "current"];- Returns:
- The bytes for current.
-
getActivated
boolean getActivated()
true when compare(target, current) == true
bool activated = 11 [json_name = "activated"];- Returns:
- The activated.
-
hasChainOrder
boolean hasChainOrder()
order of occurrence of condition in array of conditions
optional int32 chain_order = 12 [json_name = "chainOrder"];- Returns:
- Whether the chainOrder field is set.
-
getChainOrder
int getChainOrder()
order of occurrence of condition in array of conditions
optional int32 chain_order = 12 [json_name = "chainOrder"];- Returns:
- The chainOrder.
-
hasChainOperation
boolean hasChainOperation()
logical operation on condition when combining multiple conditions together
optional string chain_operation = 13 [json_name = "chainOperation"];- Returns:
- Whether the chainOperation field is set.
-
getChainOperation
java.lang.String getChainOperation()
logical operation on condition when combining multiple conditions together
optional string chain_operation = 13 [json_name = "chainOperation"];- Returns:
- The chainOperation.
-
getChainOperationBytes
com.google.protobuf.ByteString getChainOperationBytes()
logical operation on condition when combining multiple conditions together
optional string chain_operation = 13 [json_name = "chainOperation"];- Returns:
- The bytes for chainOperation.
-
getLogList
java.util.List<Event> getLogList()
log of events consumed by condition
repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
-
getLog
Event getLog(int index)
log of events consumed by condition
repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
-
getLogCount
int getLogCount()
log of events consumed by condition
repeated .streamlayer.triggers.Event log = 14 [json_name = "log"];
-
getOptionsList
java.util.List<TriggerConditionOption> getOptionsList()
condition options, additional events required for condition to be activated
repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
-
getOptions
TriggerConditionOption getOptions(int index)
condition options, additional events required for condition to be activated
repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
-
getOptionsCount
int getOptionsCount()
condition options, additional events required for condition to be activated
repeated .streamlayer.triggers.TriggerConditionOption options = 15 [json_name = "options"];
-
-