public final class Snooze extends com.google.protobuf.GeneratedMessageV3 implements SnoozeOrBuilder
A `Snooze` will prevent any alerts from being opened, and close any that are already open. The `Snooze` will work on alerts that match the criteria defined in the `Snooze`. The `Snooze` will be active from `interval.start_time` through `interval.end_time`.Protobuf type
google.monitoring.v3.Snooze| Modifier and Type | Class and Description |
|---|---|
static class |
Snooze.Builder
A `Snooze` will prevent any alerts from being opened, and close any that
are already open.
|
static class |
Snooze.Criteria
Criteria specific to the `AlertPolicy`s that this `Snooze` applies to.
|
static interface |
Snooze.CriteriaOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CRITERIA_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
INTERVAL_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Snooze.Criteria |
getCriteria()
Required.
|
Snooze.CriteriaOrBuilder |
getCriteriaOrBuilder()
Required.
|
static Snooze |
getDefaultInstance() |
Snooze |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
Required.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Required.
|
TimeInterval |
getInterval()
Required.
|
TimeIntervalOrBuilder |
getIntervalOrBuilder()
Required.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Parser<Snooze> |
getParserForType() |
int |
getSerializedSize() |
boolean |
hasCriteria()
Required.
|
int |
hashCode() |
boolean |
hasInterval()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Snooze.Builder |
newBuilder() |
static Snooze.Builder |
newBuilder(Snooze prototype) |
Snooze.Builder |
newBuilderForType() |
protected Snooze.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Snooze |
parseDelimitedFrom(InputStream input) |
static Snooze |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snooze |
parseFrom(byte[] data) |
static Snooze |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snooze |
parseFrom(ByteBuffer data) |
static Snooze |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snooze |
parseFrom(com.google.protobuf.ByteString data) |
static Snooze |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snooze |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Snooze |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Snooze |
parseFrom(InputStream input) |
static Snooze |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Snooze> |
parser() |
Snooze.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int CRITERIA_FIELD_NUMBER
public static final int INTERVAL_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Required. Identifier. The name of the `Snooze`. The format is:
projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
The ID of the `Snooze` will be generated by the system.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getName in interface SnoozeOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. Identifier. The name of the `Snooze`. The format is:
projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
The ID of the `Snooze` will be generated by the system.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getNameBytes in interface SnoozeOrBuilderpublic boolean hasCriteria()
Required. This defines the criteria for applying the `Snooze`. See `Criteria` for more information.
.google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED];
hasCriteria in interface SnoozeOrBuilderpublic Snooze.Criteria getCriteria()
Required. This defines the criteria for applying the `Snooze`. See `Criteria` for more information.
.google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED];
getCriteria in interface SnoozeOrBuilderpublic Snooze.CriteriaOrBuilder getCriteriaOrBuilder()
Required. This defines the criteria for applying the `Snooze`. See `Criteria` for more information.
.google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED];
getCriteriaOrBuilder in interface SnoozeOrBuilderpublic boolean hasInterval()
Required. The `Snooze` will be active from `interval.start_time` through `interval.end_time`. `interval.start_time` cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.
.google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED];
hasInterval in interface SnoozeOrBuilderpublic TimeInterval getInterval()
Required. The `Snooze` will be active from `interval.start_time` through `interval.end_time`. `interval.start_time` cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.
.google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED];
getInterval in interface SnoozeOrBuilderpublic TimeIntervalOrBuilder getIntervalOrBuilder()
Required. The `Snooze` will be active from `interval.start_time` through `interval.end_time`. `interval.start_time` cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.
.google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED];
getIntervalOrBuilder in interface SnoozeOrBuilderpublic String getDisplayName()
Required. A display name for the `Snooze`. This can be, at most, 512 unicode characters.
string display_name = 5 [(.google.api.field_behavior) = REQUIRED];getDisplayName in interface SnoozeOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Required. A display name for the `Snooze`. This can be, at most, 512 unicode characters.
string display_name = 5 [(.google.api.field_behavior) = REQUIRED];getDisplayNameBytes in interface SnoozeOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Snooze parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snooze parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snooze parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snooze parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snooze parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snooze parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Snooze parseFrom(InputStream input) throws IOException
IOExceptionpublic static Snooze parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Snooze parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Snooze parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Snooze parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Snooze parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Snooze.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Snooze.Builder newBuilder()
public static Snooze.Builder newBuilder(Snooze prototype)
public Snooze.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Snooze.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Snooze getDefaultInstance()
public static com.google.protobuf.Parser<Snooze> parser()
public com.google.protobuf.Parser<Snooze> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Snooze getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.