Class AlertPolicy.Condition.Trigger.Builder (3.22.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.22.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   static   final   class  AlertPolicy . Condition . Trigger . Builder   extends   GeneratedMessageV3 . Builder<AlertPolicy . Condition . Trigger . Builder >  implements   AlertPolicy . Condition . TriggerOrBuilder  
   Specifies how many time series must fail a predicate to trigger a
 condition. If not specified, then a {count: 1} trigger is used.
 Protobuf type google.monitoring.v3.AlertPolicy.Condition.Trigger
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   AlertPolicy . Condition . Trigger . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   AlertPolicy . Condition . Trigger   build ()  
  
  buildPartial() 
  
    
public   AlertPolicy . Condition . Trigger   buildPartial ()  
  
  clear() 
  
    
public   AlertPolicy . Condition . Trigger . Builder   clear ()  
  
  Overrides 
  
  clearCount() 
  
    
public   AlertPolicy . Condition . Trigger . Builder   clearCount ()  
   The absolute number of time series that must fail
 the predicate for the condition to be triggered.
 int32 count = 1;
clearField(Descriptors.FieldDescriptor field) 
  
    
public   AlertPolicy . Condition . Trigger . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   AlertPolicy . Condition . Trigger . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearPercent() 
  
    
public   AlertPolicy . Condition . Trigger . Builder   clearPercent ()  
   The percentage of time series that must fail the
 predicate for the condition to be triggered.
 double percent = 2;
clearType() 
  
    
public   AlertPolicy . Condition . Trigger . Builder   clearType ()  
  
  clone() 
  
    
public   AlertPolicy . Condition . Trigger . Builder   clone ()  
  
  Overrides 
  
  getCount() 
  
   The absolute number of time series that must fail
 the predicate for the condition to be triggered.
 int32 count = 1;
    
      
        Returns  
      
        Type Description  
      
        int The count.
 
     
  
  getDefaultInstanceForType() 
  
    
public   AlertPolicy . Condition . Trigger   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getPercent() 
  
    
public   double   getPercent ()  
   The percentage of time series that must fail the
 predicate for the condition to be triggered.
 double percent = 2;
    
      
        Returns  
      
        Type Description  
      
        double The percent.
 
     
  
  getTypeCase() 
  
    
public   AlertPolicy . Condition . Trigger . TypeCase   getTypeCase ()  
  
  hasCount() 
  
    
public   boolean   hasCount ()  
   The absolute number of time series that must fail
 the predicate for the condition to be triggered.
 int32 count = 1;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the count field is set.
 
     
  
  hasPercent() 
  
    
public   boolean   hasPercent ()  
   The percentage of time series that must fail the
 predicate for the condition to be triggered.
 double percent = 2;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the percent field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(AlertPolicy.Condition.Trigger other) 
  
    
public   AlertPolicy . Condition . Trigger . Builder   mergeFrom ( AlertPolicy . Condition . Trigger   other )  
  
  
  
    
public   AlertPolicy . Condition . Trigger . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   AlertPolicy . Condition . Trigger . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   AlertPolicy . Condition . Trigger . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setCount(int value) 
  
    
public   AlertPolicy . Condition . Trigger . Builder   setCount ( int   value )  
   The absolute number of time series that must fail
 the predicate for the condition to be triggered.
 int32 count = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueint The count to set.
 
     
  
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   AlertPolicy . Condition . Trigger . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setPercent(double value) 
  
    
public   AlertPolicy . Condition . Trigger . Builder   setPercent ( double   value )  
   The percentage of time series that must fail the
 predicate for the condition to be triggered.
 double percent = 2;
    
      
        Parameter  
      
        Name Description  
      
        valuedouble The percent to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   AlertPolicy . Condition . Trigger . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   AlertPolicy . Condition . Trigger . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]