Enum UptimeCheckConfig.ContentMatcher.ContentMatcherOption

java.lang.Object
java.lang.Enum<UptimeCheckConfig.ContentMatcher.ContentMatcherOption>
com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<UptimeCheckConfig.ContentMatcher.ContentMatcherOption>
Enclosing class:
UptimeCheckConfig.ContentMatcher

public static enum UptimeCheckConfig.ContentMatcher.ContentMatcherOption extends Enum<UptimeCheckConfig.ContentMatcher.ContentMatcherOption> implements com.google.protobuf.ProtocolMessageEnum
 Options to perform content matching.
 
Protobuf enum google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption
  • Enum Constant Details

    • CONTENT_MATCHER_OPTION_UNSPECIFIED

      public static final UptimeCheckConfig.ContentMatcher.ContentMatcherOption CONTENT_MATCHER_OPTION_UNSPECIFIED
       No content matcher type specified (maintained for backward
       compatibility, but deprecated for future use).
       Treated as `CONTAINS_STRING`.
       
      CONTENT_MATCHER_OPTION_UNSPECIFIED = 0;
    • CONTAINS_STRING

      public static final UptimeCheckConfig.ContentMatcher.ContentMatcherOption CONTAINS_STRING
       Selects substring matching. The match succeeds if the output contains
       the `content` string.  This is the default value for checks without
       a `matcher` option, or where the value of `matcher` is
       `CONTENT_MATCHER_OPTION_UNSPECIFIED`.
       
      CONTAINS_STRING = 1;
    • NOT_CONTAINS_STRING

      public static final UptimeCheckConfig.ContentMatcher.ContentMatcherOption NOT_CONTAINS_STRING
       Selects negation of substring matching. The match succeeds if the
       output does _NOT_ contain the `content` string.
       
      NOT_CONTAINS_STRING = 2;
    • MATCHES_REGEX

      public static final UptimeCheckConfig.ContentMatcher.ContentMatcherOption MATCHES_REGEX
       Selects regular-expression matching. The match succeeds if the output
       matches the regular expression specified in the `content` string.
       Regex matching is only supported for HTTP/HTTPS checks.
       
      MATCHES_REGEX = 3;
    • NOT_MATCHES_REGEX

      public static final UptimeCheckConfig.ContentMatcher.ContentMatcherOption NOT_MATCHES_REGEX
       Selects negation of regular-expression matching. The match succeeds if
       the output does _NOT_ match the regular expression specified in the
       `content` string. Regex matching is only supported for HTTP/HTTPS
       checks.
       
      NOT_MATCHES_REGEX = 4;
    • MATCHES_JSON_PATH

      public static final UptimeCheckConfig.ContentMatcher.ContentMatcherOption MATCHES_JSON_PATH
       Selects JSONPath matching. See `JsonPathMatcher` for details on when
       the match succeeds. JSONPath matching is only supported for HTTP/HTTPS
       checks.
       
      MATCHES_JSON_PATH = 5;
    • NOT_MATCHES_JSON_PATH

      public static final UptimeCheckConfig.ContentMatcher.ContentMatcherOption NOT_MATCHES_JSON_PATH
       Selects JSONPath matching. See `JsonPathMatcher` for details on when
       the match succeeds. Succeeds when output does _NOT_ match as specified.
       JSONPath is only supported for HTTP/HTTPS checks.
       
      NOT_MATCHES_JSON_PATH = 6;
    • UNRECOGNIZED

  • Field Details

    • CONTENT_MATCHER_OPTION_UNSPECIFIED_VALUE

      public static final int CONTENT_MATCHER_OPTION_UNSPECIFIED_VALUE
       No content matcher type specified (maintained for backward
       compatibility, but deprecated for future use).
       Treated as `CONTAINS_STRING`.
       
      CONTENT_MATCHER_OPTION_UNSPECIFIED = 0;
      See Also:
    • CONTAINS_STRING_VALUE

      public static final int CONTAINS_STRING_VALUE
       Selects substring matching. The match succeeds if the output contains
       the `content` string.  This is the default value for checks without
       a `matcher` option, or where the value of `matcher` is
       `CONTENT_MATCHER_OPTION_UNSPECIFIED`.
       
      CONTAINS_STRING = 1;
      See Also:
    • NOT_CONTAINS_STRING_VALUE

      public static final int NOT_CONTAINS_STRING_VALUE
       Selects negation of substring matching. The match succeeds if the
       output does _NOT_ contain the `content` string.
       
      NOT_CONTAINS_STRING = 2;
      See Also:
    • MATCHES_REGEX_VALUE

      public static final int MATCHES_REGEX_VALUE
       Selects regular-expression matching. The match succeeds if the output
       matches the regular expression specified in the `content` string.
       Regex matching is only supported for HTTP/HTTPS checks.
       
      MATCHES_REGEX = 3;
      See Also:
    • NOT_MATCHES_REGEX_VALUE

      public static final int NOT_MATCHES_REGEX_VALUE
       Selects negation of regular-expression matching. The match succeeds if
       the output does _NOT_ match the regular expression specified in the
       `content` string. Regex matching is only supported for HTTP/HTTPS
       checks.
       
      NOT_MATCHES_REGEX = 4;
      See Also:
    • MATCHES_JSON_PATH_VALUE

      public static final int MATCHES_JSON_PATH_VALUE
       Selects JSONPath matching. See `JsonPathMatcher` for details on when
       the match succeeds. JSONPath matching is only supported for HTTP/HTTPS
       checks.
       
      MATCHES_JSON_PATH = 5;
      See Also:
    • NOT_MATCHES_JSON_PATH_VALUE

      public static final int NOT_MATCHES_JSON_PATH_VALUE
       Selects JSONPath matching. See `JsonPathMatcher` for details on when
       the match succeeds. Succeeds when output does _NOT_ match as specified.
       JSONPath is only supported for HTTP/HTTPS checks.
       
      NOT_MATCHES_JSON_PATH = 6;
      See Also:
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static UptimeCheckConfig.ContentMatcher.ContentMatcherOption forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<UptimeCheckConfig.ContentMatcher.ContentMatcherOption> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static UptimeCheckConfig.ContentMatcher.ContentMatcherOption valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null