Class ProtobufMessages.FactHandle.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ProtobufMessages.FactHandle.Builder>
org.drools.serialization.protobuf.ProtobufMessages.FactHandle.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,ProtobufMessages.FactHandleOrBuilder
- Enclosing class:
- ProtobufMessages.FactHandle
public static final class ProtobufMessages.FactHandle.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ProtobufMessages.FactHandle.Builder>
implements ProtobufMessages.FactHandleOrBuilder
a fact handleProtobuf type
org.drools.serialization.protobuf.FactHandle-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()optional int64 activations_count = 7;optional int64 duration = 5;the entry pointclearId()optional int64 id = 2;optional bool is_expired = 6;optional bool is_justified = 11;optional bytes object = 9;optional int32 otn_count = 12;optional int64 recency = 3;the actual object referenceevent only attributesoptional .org.drools.serialization.protobuf.FactHandle.HandleType type = 1;longoptional int64 activations_count = 7;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorlongoptional int64 duration = 5;the entry pointcom.google.protobuf.ByteStringthe entry pointlonggetId()optional int64 id = 2;booleanoptional bool is_expired = 6;booleanoptional bool is_justified = 11;com.google.protobuf.ByteStringoptional bytes object = 9;intoptional int32 otn_count = 12;longoptional int64 recency = 3;intthe actual object referencelongevent only attributesgetType()optional .org.drools.serialization.protobuf.FactHandle.HandleType type = 1;booleanoptional int64 activations_count = 7;booleanoptional int64 duration = 5;booleanthe entry pointbooleanhasId()optional int64 id = 2;booleanoptional bool is_expired = 6;booleanoptional bool is_justified = 11;booleanoptional bytes object = 9;booleanoptional int32 otn_count = 12;booleanoptional int64 recency = 3;booleanthe actual object referencebooleanevent only attributesbooleanhasType()optional .org.drools.serialization.protobuf.FactHandle.HandleType type = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setActivationsCount(long value) optional int64 activations_count = 7;setDuration(long value) optional int64 duration = 5;setEntryPoint(String value) the entry pointsetEntryPointBytes(com.google.protobuf.ByteString value) the entry pointsetId(long value) optional int64 id = 2;setIsExpired(boolean value) optional bool is_expired = 6;setIsJustified(boolean value) optional bool is_justified = 11;setObject(com.google.protobuf.ByteString value) optional bytes object = 9;setOtnCount(int value) optional int32 otn_count = 12;setRecency(long value) optional int64 recency = 3;setStrategyIndex(int value) the actual object referencesetTimestamp(long value) event only attributesoptional .org.drools.serialization.protobuf.FactHandle.HandleType type = 1;setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ProtobufMessages.FactHandle.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ProtobufMessages.FactHandle.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ProtobufMessages.FactHandle.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProtobufMessages.FactHandle.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ProtobufMessages.FactHandle.Builder>
-
mergeFrom
public ProtobufMessages.FactHandle.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProtobufMessages.FactHandle.Builder>- Throws:
IOException
-
hasType
public boolean hasType()optional .org.drools.serialization.protobuf.FactHandle.HandleType type = 1;- Specified by:
hasTypein interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the type field is set.
-
getType
optional .org.drools.serialization.protobuf.FactHandle.HandleType type = 1;- Specified by:
getTypein interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The type.
-
setType
optional .org.drools.serialization.protobuf.FactHandle.HandleType type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
optional .org.drools.serialization.protobuf.FactHandle.HandleType type = 1;- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()optional int64 id = 2;- Specified by:
hasIdin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()optional int64 id = 2;- Specified by:
getIdin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The id.
-
setId
optional int64 id = 2;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
optional int64 id = 2;- Returns:
- This builder for chaining.
-
hasRecency
public boolean hasRecency()optional int64 recency = 3;- Specified by:
hasRecencyin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the recency field is set.
-
getRecency
public long getRecency()optional int64 recency = 3;- Specified by:
getRecencyin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The recency.
-
setRecency
optional int64 recency = 3;- Parameters:
value- The recency to set.- Returns:
- This builder for chaining.
-
clearRecency
optional int64 recency = 3;- Returns:
- This builder for chaining.
-
hasTimestamp
public boolean hasTimestamp()event only attributes
optional int64 timestamp = 4;- Specified by:
hasTimestampin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public long getTimestamp()event only attributes
optional int64 timestamp = 4;- Specified by:
getTimestampin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The timestamp.
-
setTimestamp
event only attributes
optional int64 timestamp = 4;- Parameters:
value- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
event only attributes
optional int64 timestamp = 4;- Returns:
- This builder for chaining.
-
hasDuration
public boolean hasDuration()optional int64 duration = 5;- Specified by:
hasDurationin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public long getDuration()optional int64 duration = 5;- Specified by:
getDurationin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The duration.
-
setDuration
optional int64 duration = 5;- Parameters:
value- The duration to set.- Returns:
- This builder for chaining.
-
clearDuration
optional int64 duration = 5;- Returns:
- This builder for chaining.
-
hasIsExpired
public boolean hasIsExpired()optional bool is_expired = 6;- Specified by:
hasIsExpiredin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the isExpired field is set.
-
getIsExpired
public boolean getIsExpired()optional bool is_expired = 6;- Specified by:
getIsExpiredin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The isExpired.
-
setIsExpired
optional bool is_expired = 6;- Parameters:
value- The isExpired to set.- Returns:
- This builder for chaining.
-
clearIsExpired
optional bool is_expired = 6;- Returns:
- This builder for chaining.
-
hasActivationsCount
public boolean hasActivationsCount()optional int64 activations_count = 7;- Specified by:
hasActivationsCountin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the activationsCount field is set.
-
getActivationsCount
public long getActivationsCount()optional int64 activations_count = 7;- Specified by:
getActivationsCountin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The activationsCount.
-
setActivationsCount
optional int64 activations_count = 7;- Parameters:
value- The activationsCount to set.- Returns:
- This builder for chaining.
-
clearActivationsCount
optional int64 activations_count = 7;- Returns:
- This builder for chaining.
-
hasStrategyIndex
public boolean hasStrategyIndex()the actual object reference
optional int32 strategy_index = 8;- Specified by:
hasStrategyIndexin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the strategyIndex field is set.
-
getStrategyIndex
public int getStrategyIndex()the actual object reference
optional int32 strategy_index = 8;- Specified by:
getStrategyIndexin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The strategyIndex.
-
setStrategyIndex
the actual object reference
optional int32 strategy_index = 8;- Parameters:
value- The strategyIndex to set.- Returns:
- This builder for chaining.
-
clearStrategyIndex
the actual object reference
optional int32 strategy_index = 8;- Returns:
- This builder for chaining.
-
hasObject
public boolean hasObject()optional bytes object = 9;- Specified by:
hasObjectin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the object field is set.
-
getObject
public com.google.protobuf.ByteString getObject()optional bytes object = 9;- Specified by:
getObjectin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The object.
-
setObject
optional bytes object = 9;- Parameters:
value- The object to set.- Returns:
- This builder for chaining.
-
clearObject
optional bytes object = 9;- Returns:
- This builder for chaining.
-
hasEntryPoint
public boolean hasEntryPoint()the entry point
optional string entry_point = 10;- Specified by:
hasEntryPointin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the entryPoint field is set.
-
getEntryPoint
the entry point
optional string entry_point = 10;- Specified by:
getEntryPointin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The entryPoint.
-
getEntryPointBytes
public com.google.protobuf.ByteString getEntryPointBytes()the entry point
optional string entry_point = 10;- Specified by:
getEntryPointBytesin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The bytes for entryPoint.
-
setEntryPoint
the entry point
optional string entry_point = 10;- Parameters:
value- The entryPoint to set.- Returns:
- This builder for chaining.
-
clearEntryPoint
the entry point
optional string entry_point = 10;- Returns:
- This builder for chaining.
-
setEntryPointBytes
the entry point
optional string entry_point = 10;- Parameters:
value- The bytes for entryPoint to set.- Returns:
- This builder for chaining.
-
hasIsJustified
public boolean hasIsJustified()optional bool is_justified = 11;- Specified by:
hasIsJustifiedin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the isJustified field is set.
-
getIsJustified
public boolean getIsJustified()optional bool is_justified = 11;- Specified by:
getIsJustifiedin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The isJustified.
-
setIsJustified
optional bool is_justified = 11;- Parameters:
value- The isJustified to set.- Returns:
- This builder for chaining.
-
clearIsJustified
optional bool is_justified = 11;- Returns:
- This builder for chaining.
-
hasOtnCount
public boolean hasOtnCount()optional int32 otn_count = 12;- Specified by:
hasOtnCountin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- Whether the otnCount field is set.
-
getOtnCount
public int getOtnCount()optional int32 otn_count = 12;- Specified by:
getOtnCountin interfaceProtobufMessages.FactHandleOrBuilder- Returns:
- The otnCount.
-
setOtnCount
optional int32 otn_count = 12;- Parameters:
value- The otnCount to set.- Returns:
- This builder for chaining.
-
clearOtnCount
optional int32 otn_count = 12;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ProtobufMessages.FactHandle.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProtobufMessages.FactHandle.Builder>
-
mergeUnknownFields
public final ProtobufMessages.FactHandle.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProtobufMessages.FactHandle.Builder>
-