public static final class UptimeCheckConfig.ContentMatcher.Builder extends com.google.protobuf.GeneratedMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder> implements UptimeCheckConfig.ContentMatcherOrBuilder
Optional. Used to perform content matching. This allows matching based on substrings and regular expressions, together with their negations. Only the first 4 MB of an HTTP or HTTPS check's response (and the first 1 MB of a TCP check's response) are examined for purposes of content matching.Protobuf type
google.monitoring.v3.UptimeCheckConfig.ContentMatcher| Modifier and Type | Method and Description |
|---|---|
UptimeCheckConfig.ContentMatcher |
build() |
UptimeCheckConfig.ContentMatcher |
buildPartial() |
UptimeCheckConfig.ContentMatcher.Builder |
clear() |
UptimeCheckConfig.ContentMatcher.Builder |
clearAdditionalMatcherInfo() |
UptimeCheckConfig.ContentMatcher.Builder |
clearContent()
String, regex or JSON content to match.
|
UptimeCheckConfig.ContentMatcher.Builder |
clearJsonPathMatcher()
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
|
UptimeCheckConfig.ContentMatcher.Builder |
clearMatcher()
The type of content matcher that will be applied to the server output,
compared to the `content` string when the check is run.
|
UptimeCheckConfig.ContentMatcher.AdditionalMatcherInfoCase |
getAdditionalMatcherInfoCase() |
String |
getContent()
String, regex or JSON content to match.
|
com.google.protobuf.ByteString |
getContentBytes()
String, regex or JSON content to match.
|
UptimeCheckConfig.ContentMatcher |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
UptimeCheckConfig.ContentMatcher.JsonPathMatcher |
getJsonPathMatcher()
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
|
UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder |
getJsonPathMatcherBuilder()
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
|
UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder |
getJsonPathMatcherOrBuilder()
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
|
UptimeCheckConfig.ContentMatcher.ContentMatcherOption |
getMatcher()
The type of content matcher that will be applied to the server output,
compared to the `content` string when the check is run.
|
int |
getMatcherValue()
The type of content matcher that will be applied to the server output,
compared to the `content` string when the check is run.
|
boolean |
hasJsonPathMatcher()
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
UptimeCheckConfig.ContentMatcher.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UptimeCheckConfig.ContentMatcher.Builder |
mergeFrom(com.google.protobuf.Message other) |
UptimeCheckConfig.ContentMatcher.Builder |
mergeFrom(UptimeCheckConfig.ContentMatcher other) |
UptimeCheckConfig.ContentMatcher.Builder |
mergeJsonPathMatcher(UptimeCheckConfig.ContentMatcher.JsonPathMatcher value)
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
|
UptimeCheckConfig.ContentMatcher.Builder |
setContent(String value)
String, regex or JSON content to match.
|
UptimeCheckConfig.ContentMatcher.Builder |
setContentBytes(com.google.protobuf.ByteString value)
String, regex or JSON content to match.
|
UptimeCheckConfig.ContentMatcher.Builder |
setJsonPathMatcher(UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder builderForValue)
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
|
UptimeCheckConfig.ContentMatcher.Builder |
setJsonPathMatcher(UptimeCheckConfig.ContentMatcher.JsonPathMatcher value)
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
|
UptimeCheckConfig.ContentMatcher.Builder |
setMatcher(UptimeCheckConfig.ContentMatcher.ContentMatcherOption value)
The type of content matcher that will be applied to the server output,
compared to the `content` string when the check is run.
|
UptimeCheckConfig.ContentMatcher.Builder |
setMatcherValue(int value)
The type of content matcher that will be applied to the server output,
compared to the `content` string when the check is run.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>public UptimeCheckConfig.ContentMatcher.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>public UptimeCheckConfig.ContentMatcher getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic UptimeCheckConfig.ContentMatcher build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic UptimeCheckConfig.ContentMatcher buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic UptimeCheckConfig.ContentMatcher.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>public UptimeCheckConfig.ContentMatcher.Builder mergeFrom(UptimeCheckConfig.ContentMatcher other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>public UptimeCheckConfig.ContentMatcher.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>IOExceptionpublic UptimeCheckConfig.ContentMatcher.AdditionalMatcherInfoCase getAdditionalMatcherInfoCase()
getAdditionalMatcherInfoCase in interface UptimeCheckConfig.ContentMatcherOrBuilderpublic UptimeCheckConfig.ContentMatcher.Builder clearAdditionalMatcherInfo()
public String getContent()
String, regex or JSON content to match. Maximum 1024 bytes. An empty `content` string indicates no content matching is to be performed.
string content = 1;getContent in interface UptimeCheckConfig.ContentMatcherOrBuilderpublic com.google.protobuf.ByteString getContentBytes()
String, regex or JSON content to match. Maximum 1024 bytes. An empty `content` string indicates no content matching is to be performed.
string content = 1;getContentBytes in interface UptimeCheckConfig.ContentMatcherOrBuilderpublic UptimeCheckConfig.ContentMatcher.Builder setContent(String value)
String, regex or JSON content to match. Maximum 1024 bytes. An empty `content` string indicates no content matching is to be performed.
string content = 1;value - The content to set.public UptimeCheckConfig.ContentMatcher.Builder clearContent()
String, regex or JSON content to match. Maximum 1024 bytes. An empty `content` string indicates no content matching is to be performed.
string content = 1;public UptimeCheckConfig.ContentMatcher.Builder setContentBytes(com.google.protobuf.ByteString value)
String, regex or JSON content to match. Maximum 1024 bytes. An empty `content` string indicates no content matching is to be performed.
string content = 1;value - The bytes for content to set.public int getMatcherValue()
The type of content matcher that will be applied to the server output, compared to the `content` string when the check is run.
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2;
getMatcherValue in interface UptimeCheckConfig.ContentMatcherOrBuilderpublic UptimeCheckConfig.ContentMatcher.Builder setMatcherValue(int value)
The type of content matcher that will be applied to the server output, compared to the `content` string when the check is run.
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2;
value - The enum numeric value on the wire for matcher to set.public UptimeCheckConfig.ContentMatcher.ContentMatcherOption getMatcher()
The type of content matcher that will be applied to the server output, compared to the `content` string when the check is run.
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2;
getMatcher in interface UptimeCheckConfig.ContentMatcherOrBuilderpublic UptimeCheckConfig.ContentMatcher.Builder setMatcher(UptimeCheckConfig.ContentMatcher.ContentMatcherOption value)
The type of content matcher that will be applied to the server output, compared to the `content` string when the check is run.
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2;
value - The matcher to set.public UptimeCheckConfig.ContentMatcher.Builder clearMatcher()
The type of content matcher that will be applied to the server output, compared to the `content` string when the check is run.
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption matcher = 2;
public boolean hasJsonPathMatcher()
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
hasJsonPathMatcher in interface UptimeCheckConfig.ContentMatcherOrBuilderpublic UptimeCheckConfig.ContentMatcher.JsonPathMatcher getJsonPathMatcher()
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
getJsonPathMatcher in interface UptimeCheckConfig.ContentMatcherOrBuilderpublic UptimeCheckConfig.ContentMatcher.Builder setJsonPathMatcher(UptimeCheckConfig.ContentMatcher.JsonPathMatcher value)
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
public UptimeCheckConfig.ContentMatcher.Builder setJsonPathMatcher(UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder builderForValue)
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
public UptimeCheckConfig.ContentMatcher.Builder mergeJsonPathMatcher(UptimeCheckConfig.ContentMatcher.JsonPathMatcher value)
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
public UptimeCheckConfig.ContentMatcher.Builder clearJsonPathMatcher()
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
public UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder getJsonPathMatcherBuilder()
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
public UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder getJsonPathMatcherOrBuilder()
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
getJsonPathMatcherOrBuilder in interface UptimeCheckConfig.ContentMatcherOrBuilderCopyright © 2026 Google LLC. All rights reserved.