Class UptimeCheckConfig.ContentMatcher.Builder (3.41.0)

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&nbsp;MB of an HTTP or HTTPS check's response (and the first 1&nbsp;MB of a TCP check's response) are examined for purposes of content matching.

Protobuf type google.monitoring.v3.UptimeCheckConfig.ContentMatcher

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UptimeCheckConfig.ContentMatcher.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder
Overrides

build()

public UptimeCheckConfig.ContentMatcher build()
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher

buildPartial()

public UptimeCheckConfig.ContentMatcher buildPartial()
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher

clear()

public UptimeCheckConfig.ContentMatcher.Builder clear()
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder
Overrides

clearAdditionalMatcherInfo()

public UptimeCheckConfig.ContentMatcher.Builder clearAdditionalMatcherInfo()
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

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;

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public UptimeCheckConfig.ContentMatcher.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder
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;

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

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;

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UptimeCheckConfig.ContentMatcher.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder
Overrides

clone()

public UptimeCheckConfig.ContentMatcher.Builder clone()
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder
Overrides

getAdditionalMatcherInfoCase()

public UptimeCheckConfig.ContentMatcher.AdditionalMatcherInfoCase getAdditionalMatcherInfoCase()
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.AdditionalMatcherInfoCase

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
TypeDescription
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
TypeDescription
ByteString

The bytes for content.

getDefaultInstanceForType()

public UptimeCheckConfig.ContentMatcher getDefaultInstanceForType()
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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;

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.JsonPathMatcher

The jsonPathMatcher.

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;

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder

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;

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.JsonPathMatcherOrBuilder

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;

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.ContentMatcherOption

The matcher.

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
TypeDescription
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
TypeDescription
boolean

Whether the jsonPathMatcher field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UptimeCheckConfig.ContentMatcher other)

public UptimeCheckConfig.ContentMatcher.Builder mergeFrom(UptimeCheckConfig.ContentMatcher other)
Parameter
NameDescription
otherUptimeCheckConfig.ContentMatcher
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UptimeCheckConfig.ContentMatcher.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UptimeCheckConfig.ContentMatcher.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder
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;

Parameter
NameDescription
valueUptimeCheckConfig.ContentMatcher.JsonPathMatcher
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UptimeCheckConfig.ContentMatcher.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder
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
NameDescription
valueString

The content to set.

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for content to set.

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public UptimeCheckConfig.ContentMatcher.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder
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;

Parameter
NameDescription
valueUptimeCheckConfig.ContentMatcher.JsonPathMatcher
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

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;

Parameter
NameDescription
builderForValueUptimeCheckConfig.ContentMatcher.JsonPathMatcher.Builder
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

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;

Parameter
NameDescription
valueUptimeCheckConfig.ContentMatcher.ContentMatcherOption

The matcher to set.

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

This builder for chaining.

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
NameDescription
valueint

The enum numeric value on the wire for matcher to set.

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UptimeCheckConfig.ContentMatcher.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UptimeCheckConfig.ContentMatcher.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder
Overrides