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 enum
google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSelects substring matching.No content matcher type specified (maintained for backward compatibility, but deprecated for future use).Selects JSONPath matching.Selects regular-expression matching.Selects negation of substring matching.Selects JSONPath matching.Selects negation of regular-expression matching. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSelects substring matching.static final intNo content matcher type specified (maintained for backward compatibility, but deprecated for future use).static final intSelects JSONPath matching.static final intSelects regular-expression matching.static final intSelects negation of substring matching.static final intSelects JSONPath matching.static final intSelects negation of regular-expression matching. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<UptimeCheckConfig.ContentMatcher.ContentMatcherOption>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CONTENT_MATCHER_OPTION_UNSPECIFIED
public static final UptimeCheckConfig.ContentMatcher.ContentMatcherOption CONTENT_MATCHER_OPTION_UNSPECIFIEDNo content matcher type specified (maintained for backward compatibility, but deprecated for future use). Treated as `CONTAINS_STRING`.
CONTENT_MATCHER_OPTION_UNSPECIFIED = 0; -
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
Selects negation of substring matching. The match succeeds if the output does _NOT_ contain the `content` string.
NOT_CONTAINS_STRING = 2; -
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
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
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
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_VALUENo 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_VALUESelects 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_VALUESelects 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_VALUESelects 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_VALUESelects 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_VALUESelects 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_VALUESelects 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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.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 nameNullPointerException- if the argument is null
-
forNumber
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-