Class RuleDeployment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RuleDeployment.Builder>
com.google.cloud.chronicle.v1.RuleDeployment.Builder
All Implemented Interfaces:
RuleDeploymentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RuleDeployment

public static final class RuleDeployment.Builder extends com.google.protobuf.GeneratedMessage.Builder<RuleDeployment.Builder> implements RuleDeploymentOrBuilder
 The RuleDeployment resource represents the deployment state of a Rule.
 
Protobuf type google.cloud.chronicle.v1.RuleDeployment
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RuleDeployment.Builder>
    • clear

      public RuleDeployment.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RuleDeployment.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RuleDeployment.Builder>
    • getDefaultInstanceForType

      public RuleDeployment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public RuleDeployment build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RuleDeployment buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RuleDeployment.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RuleDeployment.Builder>
    • mergeFrom

      public RuleDeployment.Builder mergeFrom(RuleDeployment other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RuleDeployment.Builder>
    • mergeFrom

      public RuleDeployment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RuleDeployment.Builder>
      Throws:
      IOException
    • getName

      public String 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:
      getName in interface RuleDeploymentOrBuilder
      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:
      getNameBytes in interface RuleDeploymentOrBuilder
      Returns:
      The bytes for name.
    • setName

      public RuleDeployment.Builder setName(String value)
       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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public RuleDeployment.Builder clearName()
       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];
      Returns:
      This builder for chaining.
    • setNameBytes

      public RuleDeployment.Builder setNameBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getEnabled

      public boolean getEnabled()
       Whether the rule is currently deployed continuously against incoming data.
       
      bool enabled = 2;
      Specified by:
      getEnabled in interface RuleDeploymentOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public RuleDeployment.Builder setEnabled(boolean value)
       Whether the rule is currently deployed continuously against incoming data.
       
      bool enabled = 2;
      Parameters:
      value - The enabled to set.
      Returns:
      This builder for chaining.
    • clearEnabled

      public RuleDeployment.Builder clearEnabled()
       Whether the rule is currently deployed continuously against incoming data.
       
      bool enabled = 2;
      Returns:
      This builder for chaining.
    • getAlerting

      public boolean getAlerting()
       Whether detections resulting from this deployment should be considered
       alerts.
       
      bool alerting = 3;
      Specified by:
      getAlerting in interface RuleDeploymentOrBuilder
      Returns:
      The alerting.
    • setAlerting

      public RuleDeployment.Builder setAlerting(boolean value)
       Whether detections resulting from this deployment should be considered
       alerts.
       
      bool alerting = 3;
      Parameters:
      value - The alerting to set.
      Returns:
      This builder for chaining.
    • clearAlerting

      public RuleDeployment.Builder clearAlerting()
       Whether detections resulting from this deployment should be considered
       alerts.
       
      bool alerting = 3;
      Returns:
      This builder for chaining.
    • 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:
      getArchived in interface RuleDeploymentOrBuilder
      Returns:
      The archived.
    • setArchived

      public RuleDeployment.Builder setArchived(boolean value)
       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;
      Parameters:
      value - The archived to set.
      Returns:
      This builder for chaining.
    • clearArchived

      public RuleDeployment.Builder clearArchived()
       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;
      Returns:
      This builder for chaining.
    • 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:
      hasArchiveTime in interface RuleDeploymentOrBuilder
      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:
      getArchiveTime in interface RuleDeploymentOrBuilder
      Returns:
      The archiveTime.
    • setArchiveTime

      public RuleDeployment.Builder setArchiveTime(com.google.protobuf.Timestamp value)
       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];
    • setArchiveTime

      public RuleDeployment.Builder setArchiveTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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];
    • mergeArchiveTime

      public RuleDeployment.Builder mergeArchiveTime(com.google.protobuf.Timestamp value)
       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];
    • clearArchiveTime

      public RuleDeployment.Builder clearArchiveTime()
       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];
    • getArchiveTimeBuilder

      public com.google.protobuf.Timestamp.Builder getArchiveTimeBuilder()
       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];
    • 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:
      getArchiveTimeOrBuilder in interface RuleDeploymentOrBuilder
    • getRunFrequencyValue

      public int getRunFrequencyValue()
       The run frequency of the rule deployment.
       
      .google.cloud.chronicle.v1.RunFrequency run_frequency = 6;
      Specified by:
      getRunFrequencyValue in interface RuleDeploymentOrBuilder
      Returns:
      The enum numeric value on the wire for runFrequency.
    • setRunFrequencyValue

      public RuleDeployment.Builder setRunFrequencyValue(int value)
       The run frequency of the rule deployment.
       
      .google.cloud.chronicle.v1.RunFrequency run_frequency = 6;
      Parameters:
      value - The enum numeric value on the wire for runFrequency to set.
      Returns:
      This builder for chaining.
    • getRunFrequency

      public RunFrequency getRunFrequency()
       The run frequency of the rule deployment.
       
      .google.cloud.chronicle.v1.RunFrequency run_frequency = 6;
      Specified by:
      getRunFrequency in interface RuleDeploymentOrBuilder
      Returns:
      The runFrequency.
    • setRunFrequency

      public RuleDeployment.Builder setRunFrequency(RunFrequency value)
       The run frequency of the rule deployment.
       
      .google.cloud.chronicle.v1.RunFrequency run_frequency = 6;
      Parameters:
      value - The runFrequency to set.
      Returns:
      This builder for chaining.
    • clearRunFrequency

      public RuleDeployment.Builder clearRunFrequency()
       The run frequency of the rule deployment.
       
      .google.cloud.chronicle.v1.RunFrequency run_frequency = 6;
      Returns:
      This builder for chaining.
    • 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:
      getExecutionStateValue in interface RuleDeploymentOrBuilder
      Returns:
      The enum numeric value on the wire for executionState.
    • setExecutionStateValue

      public RuleDeployment.Builder setExecutionStateValue(int value)
       Output only. The execution state of the rule deployment.
       
      .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for executionState to set.
      Returns:
      This builder for chaining.
    • getExecutionState

      public RuleDeployment.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:
      getExecutionState in interface RuleDeploymentOrBuilder
      Returns:
      The executionState.
    • setExecutionState

      public RuleDeployment.Builder setExecutionState(RuleDeployment.ExecutionState value)
       Output only. The execution state of the rule deployment.
       
      .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The executionState to set.
      Returns:
      This builder for chaining.
    • clearExecutionState

      public RuleDeployment.Builder clearExecutionState()
       Output only. The execution state of the rule deployment.
       
      .google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • 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:
      getProducerRulesList in interface RuleDeploymentOrBuilder
      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:
      getProducerRulesCount in interface RuleDeploymentOrBuilder
      Returns:
      The count of producerRules.
    • getProducerRules

      public String getProducerRules(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:
      getProducerRules in interface RuleDeploymentOrBuilder
      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:
      getProducerRulesBytes in interface RuleDeploymentOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the producerRules at the given index.
    • setProducerRules

      public RuleDeployment.Builder setProducerRules(int index, String value)
       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) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The producerRules to set.
      Returns:
      This builder for chaining.
    • addProducerRules

      public RuleDeployment.Builder addProducerRules(String value)
       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) = { ... }
      Parameters:
      value - The producerRules to add.
      Returns:
      This builder for chaining.
    • addAllProducerRules

      public RuleDeployment.Builder addAllProducerRules(Iterable<String> values)
       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) = { ... }
      Parameters:
      values - The producerRules to add.
      Returns:
      This builder for chaining.
    • clearProducerRules

      public RuleDeployment.Builder clearProducerRules()
       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) = { ... }
      Returns:
      This builder for chaining.
    • addProducerRulesBytes

      public RuleDeployment.Builder addProducerRulesBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes of the producerRules to add.
      Returns:
      This builder for chaining.
    • 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:
      getConsumerRulesList in interface RuleDeploymentOrBuilder
      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:
      getConsumerRulesCount in interface RuleDeploymentOrBuilder
      Returns:
      The count of consumerRules.
    • getConsumerRules

      public String getConsumerRules(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:
      getConsumerRules in interface RuleDeploymentOrBuilder
      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:
      getConsumerRulesBytes in interface RuleDeploymentOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the consumerRules at the given index.
    • setConsumerRules

      public RuleDeployment.Builder setConsumerRules(int index, String value)
       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) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The consumerRules to set.
      Returns:
      This builder for chaining.
    • addConsumerRules

      public RuleDeployment.Builder addConsumerRules(String value)
       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) = { ... }
      Parameters:
      value - The consumerRules to add.
      Returns:
      This builder for chaining.
    • addAllConsumerRules

      public RuleDeployment.Builder addAllConsumerRules(Iterable<String> values)
       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) = { ... }
      Parameters:
      values - The consumerRules to add.
      Returns:
      This builder for chaining.
    • clearConsumerRules

      public RuleDeployment.Builder clearConsumerRules()
       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) = { ... }
      Returns:
      This builder for chaining.
    • addConsumerRulesBytes

      public RuleDeployment.Builder addConsumerRulesBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes of the consumerRules to add.
      Returns:
      This builder for chaining.
    • 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:
      hasLastAlertStatusChangeTime in interface RuleDeploymentOrBuilder
      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:
      getLastAlertStatusChangeTime in interface RuleDeploymentOrBuilder
      Returns:
      The lastAlertStatusChangeTime.
    • setLastAlertStatusChangeTime

      public RuleDeployment.Builder setLastAlertStatusChangeTime(com.google.protobuf.Timestamp value)
       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];
    • setLastAlertStatusChangeTime

      public RuleDeployment.Builder setLastAlertStatusChangeTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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];
    • mergeLastAlertStatusChangeTime

      public RuleDeployment.Builder mergeLastAlertStatusChangeTime(com.google.protobuf.Timestamp value)
       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];
    • clearLastAlertStatusChangeTime

      public RuleDeployment.Builder clearLastAlertStatusChangeTime()
       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];
    • getLastAlertStatusChangeTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastAlertStatusChangeTimeBuilder()
       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];
    • 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:
      getLastAlertStatusChangeTimeOrBuilder in interface RuleDeploymentOrBuilder