Class Snooze.Criteria (3.16.0)

public static final class Snooze.Criteria extends GeneratedMessageV3 implements Snooze.CriteriaOrBuilder

Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze will suppress alerts that come from one of the AlertPolicys whose names are supplied.

Protobuf type google.monitoring.v3.Snooze.Criteria

Static Fields

POLICIES_FIELD_NUMBER

public static final int POLICIES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Snooze.Criteria getDefaultInstance()
Returns
TypeDescription
Snooze.Criteria

getDescriptor()

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

newBuilder()

public static Snooze.Criteria.Builder newBuilder()
Returns
TypeDescription
Snooze.Criteria.Builder

newBuilder(Snooze.Criteria prototype)

public static Snooze.Criteria.Builder newBuilder(Snooze.Criteria prototype)
Parameter
NameDescription
prototypeSnooze.Criteria
Returns
TypeDescription
Snooze.Criteria.Builder

parseDelimitedFrom(InputStream input)

public static Snooze.Criteria parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Snooze.Criteria parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Snooze.Criteria parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Snooze.Criteria parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Snooze.Criteria parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Snooze.Criteria parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Snooze.Criteria parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Snooze.Criteria parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Snooze.Criteria parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Snooze.Criteria parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Snooze.Criteria parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Snooze.Criteria parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Snooze.Criteria
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Snooze.Criteria> parser()
Returns
TypeDescription
Parser<Criteria>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Snooze.Criteria getDefaultInstanceForType()
Returns
TypeDescription
Snooze.Criteria

getParserForType()

public Parser<Snooze.Criteria> getParserForType()
Returns
TypeDescription
Parser<Criteria>
Overrides

getPolicies(int index)

public String getPolicies(int index)

The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 10 policies per snooze. This limit is checked during snooze creation.

repeated string policies = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The policies at the given index.

getPoliciesBytes(int index)

public ByteString getPoliciesBytes(int index)

The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 10 policies per snooze. This limit is checked during snooze creation.

repeated string policies = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the policies at the given index.

getPoliciesCount()

public int getPoliciesCount()

The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 10 policies per snooze. This limit is checked during snooze creation.

repeated string policies = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of policies.

getPoliciesList()

public ProtocolStringList getPoliciesList()

The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 10 policies per snooze. This limit is checked during snooze creation.

repeated string policies = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the policies.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Snooze.Criteria.Builder newBuilderForType()
Returns
TypeDescription
Snooze.Criteria.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Snooze.Criteria.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Snooze.Criteria.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Snooze.Criteria.Builder toBuilder()
Returns
TypeDescription
Snooze.Criteria.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException