public static final class UptimeCheckConfig.ContentMatcher extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
JSON_PATH_MATCHER_FIELD_NUMBER
public static final int JSON_PATH_MATCHER_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
MATCHER_FIELD_NUMBER
public static final int MATCHER_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static UptimeCheckConfig.ContentMatcher getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static UptimeCheckConfig.ContentMatcher.Builder newBuilder()
newBuilder(UptimeCheckConfig.ContentMatcher prototype)
public static UptimeCheckConfig.ContentMatcher.Builder newBuilder(UptimeCheckConfig.ContentMatcher prototype)
parseDelimitedFrom(InputStream input)
public static UptimeCheckConfig.ContentMatcher parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static UptimeCheckConfig.ContentMatcher parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static UptimeCheckConfig.ContentMatcher parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UptimeCheckConfig.ContentMatcher parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static UptimeCheckConfig.ContentMatcher parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UptimeCheckConfig.ContentMatcher parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static UptimeCheckConfig.ContentMatcher parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static UptimeCheckConfig.ContentMatcher parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static UptimeCheckConfig.ContentMatcher parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static UptimeCheckConfig.ContentMatcher parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static UptimeCheckConfig.ContentMatcher parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UptimeCheckConfig.ContentMatcher parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<UptimeCheckConfig.ContentMatcher> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getAdditionalMatcherInfoCase()
public UptimeCheckConfig.ContentMatcher.AdditionalMatcherInfoCase getAdditionalMatcherInfoCase()
getContent()
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;
Returns |
---|
Type | Description |
String | The content.
|
getContentBytes()
public 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;
Returns |
---|
Type | Description |
ByteString | The bytes for content.
|
getDefaultInstanceForType()
public UptimeCheckConfig.ContentMatcher getDefaultInstanceForType()
getJsonPathMatcher()
public 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;
getJsonPathMatcherOrBuilder()
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;
getMatcher()
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;
getMatcherValue()
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;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for matcher.
|
getParserForType()
public Parser<UptimeCheckConfig.ContentMatcher> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hasJsonPathMatcher()
public boolean hasJsonPathMatcher()
Matcher information for MATCHES_JSON_PATH
and NOT_MATCHES_JSON_PATH
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;
Returns |
---|
Type | Description |
boolean | Whether the jsonPathMatcher field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public UptimeCheckConfig.ContentMatcher.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UptimeCheckConfig.ContentMatcher.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public UptimeCheckConfig.ContentMatcher.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides