public static final class UptimeCheckConfig.ContentMatcher.Builder extends GeneratedMessageV3.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UptimeCheckConfig.ContentMatcher.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UptimeCheckConfig.ContentMatcher build()
buildPartial()
public UptimeCheckConfig.ContentMatcher buildPartial()
clear()
public UptimeCheckConfig.ContentMatcher.Builder clear()
Overrides
clearAdditionalMatcherInfo()
public UptimeCheckConfig.ContentMatcher.Builder clearAdditionalMatcherInfo()
clearContent()
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;
clearField(Descriptors.FieldDescriptor field)
public UptimeCheckConfig.ContentMatcher.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearJsonPathMatcher()
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;
clearMatcher()
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public UptimeCheckConfig.ContentMatcher.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public UptimeCheckConfig.ContentMatcher.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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;
getJsonPathMatcherBuilder()
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;
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.
|
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(UptimeCheckConfig.ContentMatcher other)
public UptimeCheckConfig.ContentMatcher.Builder mergeFrom(UptimeCheckConfig.ContentMatcher other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UptimeCheckConfig.ContentMatcher.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UptimeCheckConfig.ContentMatcher.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeJsonPathMatcher(UptimeCheckConfig.ContentMatcher.JsonPathMatcher value)
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UptimeCheckConfig.ContentMatcher.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setContent(String value)
public 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;
Parameter |
---|
Name | Description |
value | String
The content to set.
|
setContentBytes(ByteString value)
public UptimeCheckConfig.ContentMatcher.Builder setContentBytes(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;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for content to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public UptimeCheckConfig.ContentMatcher.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setJsonPathMatcher(UptimeCheckConfig.ContentMatcher.JsonPathMatcher value)
public 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;
setJsonPathMatcher(UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder builderForValue)
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;
setMatcher(UptimeCheckConfig.ContentMatcher.ContentMatcherOption value)
public 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;
setMatcherValue(int value)
public 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;
Parameter |
---|
Name | Description |
value | int
The enum numeric value on the wire for matcher to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UptimeCheckConfig.ContentMatcher.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UptimeCheckConfig.ContentMatcher.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides