Package com.google.monitoring.v3
Class UptimeCheckConfig.ContentMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>
com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.Builder
- All Implemented Interfaces:
UptimeCheckConfig.ContentMatcherOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UptimeCheckConfig.ContentMatcher
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()String, regex or JSON content to match.Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`The type of content matcher that will be applied to the server output, compared to the `content` string when the check is run.String, regex or JSON content to match.com.google.protobuf.ByteStringString, regex or JSON content to match.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorMatcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`The type of content matcher that will be applied to the server output, compared to the `content` string when the check is run.intThe type of content matcher that will be applied to the server output, compared to the `content` string when the check is run.booleanMatcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`setContent(String value) String, regex or JSON content to match.setContentBytes(com.google.protobuf.ByteString value) String, regex or JSON content to match.Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`The type of content matcher that will be applied to the server output, compared to the `content` string when the check is run.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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>
-
mergeFrom
public UptimeCheckConfig.ContentMatcher.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UptimeCheckConfig.ContentMatcher.Builder>- Throws:
IOException
-
getAdditionalMatcherInfoCase
- Specified by:
getAdditionalMatcherInfoCasein interfaceUptimeCheckConfig.ContentMatcherOrBuilder
-
clearAdditionalMatcherInfo
-
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;- Specified by:
getContentin interfaceUptimeCheckConfig.ContentMatcherOrBuilder- Returns:
- The content.
-
getContentBytes
public 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;- Specified by:
getContentBytesin interfaceUptimeCheckConfig.ContentMatcherOrBuilder- Returns:
- The bytes for content.
-
setContent
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;- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setContentBytes
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;- Parameters:
value- The bytes for content to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getMatcherValuein interfaceUptimeCheckConfig.ContentMatcherOrBuilder- Returns:
- The enum numeric value on the wire for matcher.
-
setMatcherValue
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;- Parameters:
value- The enum numeric value on the wire for matcher to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getMatcherin interfaceUptimeCheckConfig.ContentMatcherOrBuilder- Returns:
- The matcher.
-
setMatcher
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;- Parameters:
value- The matcher to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasJsonPathMatcherin interfaceUptimeCheckConfig.ContentMatcherOrBuilder- Returns:
- Whether the jsonPathMatcher field is set.
-
getJsonPathMatcher
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;- Specified by:
getJsonPathMatcherin interfaceUptimeCheckConfig.ContentMatcherOrBuilder- Returns:
- The jsonPathMatcher.
-
setJsonPathMatcher
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
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; -
mergeJsonPathMatcher
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; -
clearJsonPathMatcher
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; -
getJsonPathMatcherBuilder
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3; -
getJsonPathMatcherOrBuilder
Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
.google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher json_path_matcher = 3;- Specified by:
getJsonPathMatcherOrBuilderin interfaceUptimeCheckConfig.ContentMatcherOrBuilder
-