Package com.google.cloud.chronicle.v1
Class RuleDeployment
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.chronicle.v1.RuleDeployment
- All Implemented Interfaces:
RuleDeploymentOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class RuleDeployment
extends com.google.protobuf.GeneratedMessage
implements RuleDeploymentOrBuilder
The RuleDeployment resource represents the deployment state of a Rule.Protobuf type
google.cloud.chronicle.v1.RuleDeployment- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe RuleDeployment resource represents the deployment state of a Rule.static enumThe possible execution states the rule deployment can be in.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhether detections resulting from this deployment should be considered alerts.booleanThe archive state of the rule deployment.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getConsumerRules(int index) Output only.com.google.protobuf.ByteStringgetConsumerRulesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.static RuleDeploymentstatic final com.google.protobuf.Descriptors.DescriptorbooleanWhether the rule is currently deployed continuously against incoming data.Output only.intOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<RuleDeployment>getProducerRules(int index) Output only.com.google.protobuf.ByteStringgetProducerRulesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.The run frequency of the rule deployment.intThe run frequency of the rule deployment.intbooleanOutput only.inthashCode()booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic RuleDeployment.Builderstatic RuleDeployment.BuildernewBuilder(RuleDeployment prototype) protected RuleDeployment.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RuleDeploymentparseDelimitedFrom(InputStream input) static RuleDeploymentparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleDeploymentparseFrom(byte[] data) static RuleDeploymentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleDeploymentparseFrom(com.google.protobuf.ByteString data) static RuleDeploymentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleDeploymentparseFrom(com.google.protobuf.CodedInputStream input) static RuleDeploymentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleDeploymentparseFrom(InputStream input) static RuleDeploymentparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleDeploymentparseFrom(ByteBuffer data) static RuleDeploymentparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RuleDeployment>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER- See Also:
-
ALERTING_FIELD_NUMBER
public static final int ALERTING_FIELD_NUMBER- See Also:
-
ARCHIVED_FIELD_NUMBER
public static final int ARCHIVED_FIELD_NUMBER- See Also:
-
ARCHIVE_TIME_FIELD_NUMBER
public static final int ARCHIVE_TIME_FIELD_NUMBER- See Also:
-
RUN_FREQUENCY_FIELD_NUMBER
public static final int RUN_FREQUENCY_FIELD_NUMBER- See Also:
-
EXECUTION_STATE_FIELD_NUMBER
public static final int EXECUTION_STATE_FIELD_NUMBER- See Also:
-
PRODUCER_RULES_FIELD_NUMBER
public static final int PRODUCER_RULES_FIELD_NUMBER- See Also:
-
CONSUMER_RULES_FIELD_NUMBER
public static final int CONSUMER_RULES_FIELD_NUMBER- See Also:
-
LAST_ALERT_STATUS_CHANGE_TIME_FIELD_NUMBER
public static final int LAST_ALERT_STATUS_CHANGE_TIME_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Required. The resource name of the rule deployment. Note that RuleDeployment is a child of the overall Rule, not any individual revision, so the resource ID segment for the Rule resource must not reference a specific revision. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment`string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceRuleDeploymentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The resource name of the rule deployment. Note that RuleDeployment is a child of the overall Rule, not any individual revision, so the resource ID segment for the Rule resource must not reference a specific revision. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment`string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceRuleDeploymentOrBuilder- Returns:
- The bytes for name.
-
getEnabled
public boolean getEnabled()Whether the rule is currently deployed continuously against incoming data.
bool enabled = 2;- Specified by:
getEnabledin interfaceRuleDeploymentOrBuilder- Returns:
- The enabled.
-
getAlerting
public boolean getAlerting()Whether detections resulting from this deployment should be considered alerts.
bool alerting = 3;- Specified by:
getAlertingin interfaceRuleDeploymentOrBuilder- Returns:
- The alerting.
-
getArchived
public boolean getArchived()The archive state of the rule deployment. Cannot be set to true unless enabled is set to false. If set to true, alerting will automatically be set to false. If currently set to true, enabled, alerting, and run_frequency cannot be updated.
bool archived = 4;- Specified by:
getArchivedin interfaceRuleDeploymentOrBuilder- Returns:
- The archived.
-
hasArchiveTime
public boolean hasArchiveTime()Output only. The timestamp when the rule deployment archive state was last set to true. If the rule deployment's current archive state is not set to true, the field will be empty.
.google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasArchiveTimein interfaceRuleDeploymentOrBuilder- Returns:
- Whether the archiveTime field is set.
-
getArchiveTime
public com.google.protobuf.Timestamp getArchiveTime()Output only. The timestamp when the rule deployment archive state was last set to true. If the rule deployment's current archive state is not set to true, the field will be empty.
.google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getArchiveTimein interfaceRuleDeploymentOrBuilder- Returns:
- The archiveTime.
-
getArchiveTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getArchiveTimeOrBuilder()Output only. The timestamp when the rule deployment archive state was last set to true. If the rule deployment's current archive state is not set to true, the field will be empty.
.google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getArchiveTimeOrBuilderin interfaceRuleDeploymentOrBuilder
-
getRunFrequencyValue
public int getRunFrequencyValue()The run frequency of the rule deployment.
.google.cloud.chronicle.v1.RunFrequency run_frequency = 6;- Specified by:
getRunFrequencyValuein interfaceRuleDeploymentOrBuilder- Returns:
- The enum numeric value on the wire for runFrequency.
-
getRunFrequency
The run frequency of the rule deployment.
.google.cloud.chronicle.v1.RunFrequency run_frequency = 6;- Specified by:
getRunFrequencyin interfaceRuleDeploymentOrBuilder- Returns:
- The runFrequency.
-
getExecutionStateValue
public int getExecutionStateValue()Output only. The execution state of the rule deployment.
.google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExecutionStateValuein interfaceRuleDeploymentOrBuilder- Returns:
- The enum numeric value on the wire for executionState.
-
getExecutionState
Output only. The execution state of the rule deployment.
.google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExecutionStatein interfaceRuleDeploymentOrBuilder- Returns:
- The executionState.
-
getProducerRulesList
public com.google.protobuf.ProtocolStringList getProducerRulesList()Output only. The names of the associated/chained producer rules. Rules are considered producers for this rule if this rule explicitly filters on their ruleid. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}`repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getProducerRulesListin interfaceRuleDeploymentOrBuilder- Returns:
- A list containing the producerRules.
-
getProducerRulesCount
public int getProducerRulesCount()Output only. The names of the associated/chained producer rules. Rules are considered producers for this rule if this rule explicitly filters on their ruleid. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}`repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getProducerRulesCountin interfaceRuleDeploymentOrBuilder- Returns:
- The count of producerRules.
-
getProducerRules
Output only. The names of the associated/chained producer rules. Rules are considered producers for this rule if this rule explicitly filters on their ruleid. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}`repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getProducerRulesin interfaceRuleDeploymentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The producerRules at the given index.
-
getProducerRulesBytes
public com.google.protobuf.ByteString getProducerRulesBytes(int index) Output only. The names of the associated/chained producer rules. Rules are considered producers for this rule if this rule explicitly filters on their ruleid. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}`repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getProducerRulesBytesin interfaceRuleDeploymentOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the producerRules at the given index.
-
getConsumerRulesList
public com.google.protobuf.ProtocolStringList getConsumerRulesList()Output only. The names of the associated/chained consumer rules. Rules are considered consumers of this rule if their rule text explicitly filters on this rule's ruleid. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}`repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getConsumerRulesListin interfaceRuleDeploymentOrBuilder- Returns:
- A list containing the consumerRules.
-
getConsumerRulesCount
public int getConsumerRulesCount()Output only. The names of the associated/chained consumer rules. Rules are considered consumers of this rule if their rule text explicitly filters on this rule's ruleid. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}`repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getConsumerRulesCountin interfaceRuleDeploymentOrBuilder- Returns:
- The count of consumerRules.
-
getConsumerRules
Output only. The names of the associated/chained consumer rules. Rules are considered consumers of this rule if their rule text explicitly filters on this rule's ruleid. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}`repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getConsumerRulesin interfaceRuleDeploymentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The consumerRules at the given index.
-
getConsumerRulesBytes
public com.google.protobuf.ByteString getConsumerRulesBytes(int index) Output only. The names of the associated/chained consumer rules. Rules are considered consumers of this rule if their rule text explicitly filters on this rule's ruleid. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}`repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getConsumerRulesBytesin interfaceRuleDeploymentOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the consumerRules at the given index.
-
hasLastAlertStatusChangeTime
public boolean hasLastAlertStatusChangeTime()Output only. The timestamp when the rule deployment alert state was lastly changed. This is filled regardless of the current alert state. E.g. if the current alert status is false, this timestamp will be the timestamp when the alert status was changed to false.
.google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasLastAlertStatusChangeTimein interfaceRuleDeploymentOrBuilder- Returns:
- Whether the lastAlertStatusChangeTime field is set.
-
getLastAlertStatusChangeTime
public com.google.protobuf.Timestamp getLastAlertStatusChangeTime()Output only. The timestamp when the rule deployment alert state was lastly changed. This is filled regardless of the current alert state. E.g. if the current alert status is false, this timestamp will be the timestamp when the alert status was changed to false.
.google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastAlertStatusChangeTimein interfaceRuleDeploymentOrBuilder- Returns:
- The lastAlertStatusChangeTime.
-
getLastAlertStatusChangeTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastAlertStatusChangeTimeOrBuilder()Output only. The timestamp when the rule deployment alert state was lastly changed. This is filled regardless of the current alert state. E.g. if the current alert status is false, this timestamp will be the timestamp when the alert status was changed to false.
.google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastAlertStatusChangeTimeOrBuilderin interfaceRuleDeploymentOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RuleDeployment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RuleDeployment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RuleDeployment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RuleDeployment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RuleDeployment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RuleDeployment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RuleDeployment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RuleDeployment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RuleDeployment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RuleDeployment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RuleDeployment.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-