Enum UptimeCheckConfig.ContentMatcher.ContentMatcherOption

    • Enum Constant Detail

      • 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;
      • 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;
    • Field Detail

      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
    • Method Detail

      • values

        public static UptimeCheckConfig.ContentMatcher.ContentMatcherOption[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (UptimeCheckConfig.ContentMatcher.ContentMatcherOption c : UptimeCheckConfig.ContentMatcher.ContentMatcherOption.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UptimeCheckConfig.ContentMatcher.ContentMatcherOption valueOf​(String name)
        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
        public static UptimeCheckConfig.ContentMatcher.ContentMatcherOption valueOf​(int value)
        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
      • 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 final 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