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 and 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 |
| Modifier and Type | Field and 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.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static UptimeCheckConfig.ContentMatcher.ContentMatcherOption |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
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;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;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;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;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;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;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;public static final UptimeCheckConfig.ContentMatcher.ContentMatcherOption UNRECOGNIZED
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;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;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;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;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;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;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;public static UptimeCheckConfig.ContentMatcher.ContentMatcherOption[] values()
for (UptimeCheckConfig.ContentMatcher.ContentMatcherOption c : UptimeCheckConfig.ContentMatcher.ContentMatcherOption.values()) System.out.println(c);
public static UptimeCheckConfig.ContentMatcher.ContentMatcherOption valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static UptimeCheckConfig.ContentMatcher.ContentMatcherOption valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static UptimeCheckConfig.ContentMatcher.ContentMatcherOption forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<UptimeCheckConfig.ContentMatcher.ContentMatcherOption> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static UptimeCheckConfig.ContentMatcher.ContentMatcherOption valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.