Package com.google.monitoring.v3
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 enumgoogle.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINS_STRING
Selects substring matching.CONTENT_MATCHER_OPTION_UNSPECIFIED
No content matcher type specified (maintained for backward compatibility, but deprecated for future use).MATCHES_JSON_PATH
Selects JSONPath matching.MATCHES_REGEX
Selects regular-expression matching.NOT_CONTAINS_STRING
Selects negation of substring matching.NOT_MATCHES_JSON_PATH
Selects JSONPath matching.NOT_MATCHES_REGEX
Selects negation of regular-expression matching.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
CONTAINS_STRING_VALUE
Selects substring matching.static int
CONTENT_MATCHER_OPTION_UNSPECIFIED_VALUE
No content matcher type specified (maintained for backward compatibility, but deprecated for future use).static int
MATCHES_JSON_PATH_VALUE
Selects JSONPath matching.static int
MATCHES_REGEX_VALUE
Selects regular-expression matching.static int
NOT_CONTAINS_STRING_VALUE
Selects negation of substring matching.static int
NOT_MATCHES_JSON_PATH_VALUE
Selects JSONPath matching.static int
NOT_MATCHES_REGEX_VALUE
Selects negation of regular-expression matching.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static UptimeCheckConfig.ContentMatcher.ContentMatcherOption
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<UptimeCheckConfig.ContentMatcher.ContentMatcherOption>
internalGetValueMap()
static UptimeCheckConfig.ContentMatcher.ContentMatcherOption
valueOf(int value)
Deprecated.static UptimeCheckConfig.ContentMatcher.ContentMatcherOption
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static UptimeCheckConfig.ContentMatcher.ContentMatcherOption
valueOf(String name)
Returns the enum constant of this type with the specified name.static UptimeCheckConfig.ContentMatcher.ContentMatcherOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
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
public static final UptimeCheckConfig.ContentMatcher.ContentMatcherOption UNRECOGNIZED
-
-
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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.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 nameNullPointerException
- 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 interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.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 nameNullPointerException
- if the argument is null
-
-