public static final class AlertPolicy.Condition extends GeneratedMessageV3 implements AlertPolicy.ConditionOrBuilder
   
   A condition is a true/false test that determines when an alerting policy
 should open an incident. If a condition evaluates to true, it signifies
 that something is wrong.
 Protobuf type google.monitoring.v3.AlertPolicy.Condition
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
  
  CONDITION_ABSENT_FIELD_NUMBER
  
    public static final int CONDITION_ABSENT_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  CONDITION_MATCHED_LOG_FIELD_NUMBER
  
    public static final int CONDITION_MATCHED_LOG_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  CONDITION_MONITORING_QUERY_LANGUAGE_FIELD_NUMBER
  
    public static final int CONDITION_MONITORING_QUERY_LANGUAGE_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  CONDITION_PROMETHEUS_QUERY_LANGUAGE_FIELD_NUMBER
  
    public static final int CONDITION_PROMETHEUS_QUERY_LANGUAGE_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  CONDITION_THRESHOLD_FIELD_NUMBER
  
    public static final int CONDITION_THRESHOLD_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  DISPLAY_NAME_FIELD_NUMBER
  
    public static final int DISPLAY_NAME_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  NAME_FIELD_NUMBER
  
    public static final int NAME_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  Static Methods
  
  
  getDefaultInstance()
  
    public static AlertPolicy.Condition getDefaultInstance()
   
  
  
  getDescriptor()
  
    public static final Descriptors.Descriptor getDescriptor()
   
  
  
  newBuilder()
  
    public static AlertPolicy.Condition.Builder newBuilder()
   
  
  
  newBuilder(AlertPolicy.Condition prototype)
  
    public static AlertPolicy.Condition.Builder newBuilder(AlertPolicy.Condition prototype)
   
  
  
  
  
  
    public static AlertPolicy.Condition parseDelimitedFrom(InputStream input)
   
  
  
  
  
  
  
    public static AlertPolicy.Condition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(byte[] data)
  
    public static AlertPolicy.Condition parseFrom(byte[] data)
   
  
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | data | byte[]
 | 
    
  
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
  
    public static AlertPolicy.Condition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(ByteString data)
  
    public static AlertPolicy.Condition parseFrom(ByteString data)
   
  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
  
    public static AlertPolicy.Condition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  
  
    public static AlertPolicy.Condition parseFrom(CodedInputStream input)
   
  
  
  
  
  
  
    public static AlertPolicy.Condition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  
  
    public static AlertPolicy.Condition parseFrom(InputStream input)
   
  
  
  
  
  
  
    public static AlertPolicy.Condition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(ByteBuffer data)
  
    public static AlertPolicy.Condition parseFrom(ByteBuffer data)
   
  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
  
    public static AlertPolicy.Condition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parser()
  
    public static Parser<AlertPolicy.Condition> parser()
   
  
  Methods
  
  
  equals(Object obj)
  
    public boolean equals(Object obj)
   
  
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | obj | Object
 | 
    
  
  
  Overrides
  
  
  getConditionAbsent()
  
    public AlertPolicy.Condition.MetricAbsence getConditionAbsent()
   
   A condition that checks that a time series continues to
 receive new data points.
 .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
getConditionAbsentOrBuilder()
  
    public AlertPolicy.Condition.MetricAbsenceOrBuilder getConditionAbsentOrBuilder()
   
   A condition that checks that a time series continues to
 receive new data points.
 .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
getConditionCase()
  
    public AlertPolicy.Condition.ConditionCase getConditionCase()
   
  
  
  getConditionMatchedLog()
  
    public AlertPolicy.Condition.LogMatch getConditionMatchedLog()
   
   A condition that checks for log messages matching given constraints. If
 set, no other conditions can be present.
 .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
getConditionMatchedLogOrBuilder()
  
    public AlertPolicy.Condition.LogMatchOrBuilder getConditionMatchedLogOrBuilder()
   
   A condition that checks for log messages matching given constraints. If
 set, no other conditions can be present.
 .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
getConditionMonitoringQueryLanguage()
  
    public AlertPolicy.Condition.MonitoringQueryLanguageCondition getConditionMonitoringQueryLanguage()
   
   A condition that uses the Monitoring Query Language to define
 alerts.
 
 .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
 
getConditionMonitoringQueryLanguageOrBuilder()
  
    public AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder getConditionMonitoringQueryLanguageOrBuilder()
   
   A condition that uses the Monitoring Query Language to define
 alerts.
 
 .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
 
getConditionPrometheusQueryLanguage()
  
    public AlertPolicy.Condition.PrometheusQueryLanguageCondition getConditionPrometheusQueryLanguage()
   
   A condition that uses the Prometheus query language to define alerts.
 
 .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
 
getConditionPrometheusQueryLanguageOrBuilder()
  
    public AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder getConditionPrometheusQueryLanguageOrBuilder()
   
   A condition that uses the Prometheus query language to define alerts.
 
 .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
 
getConditionThreshold()
  
    public AlertPolicy.Condition.MetricThreshold getConditionThreshold()
   
   A condition that compares a time series against a threshold.
 .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
 
getConditionThresholdOrBuilder()
  
    public AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder()
   
   A condition that compares a time series against a threshold.
 .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
 
getDefaultInstanceForType()
  
    public AlertPolicy.Condition getDefaultInstanceForType()
   
  
  
  getDisplayName()
  
    public String getDisplayName()
   
   A short name or phrase used to identify the condition in dashboards,
 notifications, and incidents. To avoid confusion, don't use the same
 display name for multiple conditions in the same policy.
 string display_name = 6;
    
      
        | Returns | 
      
        | Type | Description | 
      
        | String | The displayName. | 
    
  
  
  getDisplayNameBytes()
  
    public ByteString getDisplayNameBytes()
   
   A short name or phrase used to identify the condition in dashboards,
 notifications, and incidents. To avoid confusion, don't use the same
 display name for multiple conditions in the same policy.
 string display_name = 6;
    
      
        | Returns | 
      
        | Type | Description | 
      
        | ByteString | The bytes for displayName. | 
    
  
  
  getName()
  
   Required if the condition exists. The unique resource name for this
 condition. Its format is:
 projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
 [CONDITION_ID] is assigned by Cloud Monitoring when the
 condition is created as part of a new or updated alerting policy.
 When calling the
 alertPolicies.create
 method, do not include the name field in the conditions of the
 requested alerting policy. Cloud Monitoring creates the
 condition identifiers and includes them in the new policy.
 When calling the
 alertPolicies.update
 method to update a policy, including a condition name causes the
 existing condition to be updated. Conditions without names are added to
 the updated policy. Existing conditions are deleted if they are not
 updated.
 Best practice is to preserve [CONDITION_ID] if you make only small
 changes, such as those to condition thresholds, durations, or trigger
 values.  Otherwise, treat the change as a new condition and let the
 existing condition be deleted.
 string name = 12;
    
      
        | Returns | 
      
        | Type | Description | 
      
        | String | The name. | 
    
  
  
  getNameBytes()
  
    public ByteString getNameBytes()
   
   Required if the condition exists. The unique resource name for this
 condition. Its format is:
 projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
 [CONDITION_ID] is assigned by Cloud Monitoring when the
 condition is created as part of a new or updated alerting policy.
 When calling the
 alertPolicies.create
 method, do not include the name field in the conditions of the
 requested alerting policy. Cloud Monitoring creates the
 condition identifiers and includes them in the new policy.
 When calling the
 alertPolicies.update
 method to update a policy, including a condition name causes the
 existing condition to be updated. Conditions without names are added to
 the updated policy. Existing conditions are deleted if they are not
 updated.
 Best practice is to preserve [CONDITION_ID] if you make only small
 changes, such as those to condition thresholds, durations, or trigger
 values.  Otherwise, treat the change as a new condition and let the
 existing condition be deleted.
 string name = 12;
    
      
        | Returns | 
      
        | Type | Description | 
      
        | ByteString | The bytes for name. | 
    
  
  
  getParserForType()
  
    public Parser<AlertPolicy.Condition> getParserForType()
   
  
  Overrides
  
  
  getSerializedSize()
  
    public int getSerializedSize()
   
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  Overrides
  
  
  hasConditionAbsent()
  
    public boolean hasConditionAbsent()
   
   A condition that checks that a time series continues to
 receive new data points.
 .google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;
    
      
        | Returns | 
      
        | Type | Description | 
      
        | boolean | Whether the conditionAbsent field is set. | 
    
  
  
  hasConditionMatchedLog()
  
    public boolean hasConditionMatchedLog()
   
   A condition that checks for log messages matching given constraints. If
 set, no other conditions can be present.
 .google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;
    
      
        | Returns | 
      
        | Type | Description | 
      
        | boolean | Whether the conditionMatchedLog field is set. | 
    
  
  
  hasConditionMonitoringQueryLanguage()
  
    public boolean hasConditionMonitoringQueryLanguage()
   
   A condition that uses the Monitoring Query Language to define
 alerts.
 
 .google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
 
    
      
        | Returns | 
      
        | Type | Description | 
      
        | boolean | Whether the conditionMonitoringQueryLanguage field is set. | 
    
  
  
  hasConditionPrometheusQueryLanguage()
  
    public boolean hasConditionPrometheusQueryLanguage()
   
   A condition that uses the Prometheus query language to define alerts.
 
 .google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
 
    
      
        | Returns | 
      
        | Type | Description | 
      
        | boolean | Whether the conditionPrometheusQueryLanguage field is set. | 
    
  
  
  hasConditionThreshold()
  
    public boolean hasConditionThreshold()
   
   A condition that compares a time series against a threshold.
 .google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
 
    
      
        | Returns | 
      
        | Type | Description | 
      
        | boolean | Whether the conditionThreshold field is set. | 
    
  
  
  hashCode()
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  Overrides
  
  
  internalGetFieldAccessorTable()
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  
  Overrides
  
  
  isInitialized()
  
    public final boolean isInitialized()
   
  
  Overrides
  
  
  newBuilderForType()
  
    public AlertPolicy.Condition.Builder newBuilderForType()
   
  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent)
  
    protected AlertPolicy.Condition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
   
  
  
  Overrides
  
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
  
    protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
   
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | Object |  | 
    
  
  Overrides
  
  
  toBuilder()
  
    public AlertPolicy.Condition.Builder toBuilder()
   
  
  
  writeTo(CodedOutputStream output)
  
    public void writeTo(CodedOutputStream output)
   
  
  Overrides