Interface ThresholdRuleOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ThresholdRule, ThresholdRule.Builder

@Generated public interface ThresholdRuleOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional.
    int
    Optional.
    double
    Required.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getThresholdPercent

      double getThresholdPercent()
       Required. Send an alert when this threshold is exceeded.
       This is a 1.0-based percentage, so 0.5 = 50%.
       Validation: non-negative number.
       
      double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The thresholdPercent.
    • getSpendBasisValue

      int getSpendBasisValue()
       Optional. The type of basis used to determine if spend has passed the
       threshold. Behavior defaults to CURRENT_SPEND if not set.
       
      .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The enum numeric value on the wire for spendBasis.
    • getSpendBasis

      ThresholdRule.Basis getSpendBasis()
       Optional. The type of basis used to determine if spend has passed the
       threshold. Behavior defaults to CURRENT_SPEND if not set.
       
      .google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The spendBasis.