Class AlertPolicy.Condition.Trigger.Builder

public static final class AlertPolicy.Condition.Trigger.Builder extends GeneratedMessageV3.Builder<AlertPolicy.Condition.Trigger.Builder> implements AlertPolicy.Condition.TriggerOrBuilder

Specifies how many time series must fail a predicate to trigger a condition. If not specified, then a {count: 1} trigger is used.

Protobuf type google.monitoring.v3.AlertPolicy.Condition.Trigger

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.Trigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder
Overrides

build()

public AlertPolicy.Condition.Trigger build()
Returns
TypeDescription
AlertPolicy.Condition.Trigger

buildPartial()

public AlertPolicy.Condition.Trigger buildPartial()
Returns
TypeDescription
AlertPolicy.Condition.Trigger

clear()

public AlertPolicy.Condition.Trigger.Builder clear()
Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder
Overrides

clearCount()

public AlertPolicy.Condition.Trigger.Builder clearCount()

The absolute number of time series that must fail the predicate for the condition to be triggered.

int32 count = 1;

Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AlertPolicy.Condition.Trigger.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AlertPolicy.Condition.Trigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder
Overrides

clearPercent()

public AlertPolicy.Condition.Trigger.Builder clearPercent()

The percentage of time series that must fail the predicate for the condition to be triggered.

double percent = 2;

Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder

This builder for chaining.

clearType()

public AlertPolicy.Condition.Trigger.Builder clearType()
Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder

clone()

public AlertPolicy.Condition.Trigger.Builder clone()
Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder
Overrides

getCount()

public int getCount()

The absolute number of time series that must fail the predicate for the condition to be triggered.

int32 count = 1;

Returns
TypeDescription
int

The count.

getDefaultInstanceForType()

public AlertPolicy.Condition.Trigger getDefaultInstanceForType()
Returns
TypeDescription
AlertPolicy.Condition.Trigger

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPercent()

public double getPercent()

The percentage of time series that must fail the predicate for the condition to be triggered.

double percent = 2;

Returns
TypeDescription
double

The percent.

getTypeCase()

public AlertPolicy.Condition.Trigger.TypeCase getTypeCase()
Returns
TypeDescription
AlertPolicy.Condition.Trigger.TypeCase

hasCount()

public boolean hasCount()

The absolute number of time series that must fail the predicate for the condition to be triggered.

int32 count = 1;

Returns
TypeDescription
boolean

Whether the count field is set.

hasPercent()

public boolean hasPercent()

The percentage of time series that must fail the predicate for the condition to be triggered.

double percent = 2;

Returns
TypeDescription
boolean

Whether the percent field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AlertPolicy.Condition.Trigger other)

public AlertPolicy.Condition.Trigger.Builder mergeFrom(AlertPolicy.Condition.Trigger other)
Parameter
NameDescription
otherAlertPolicy.Condition.Trigger
Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AlertPolicy.Condition.Trigger.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.Trigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder
Overrides

setCount(int value)

public AlertPolicy.Condition.Trigger.Builder setCount(int value)

The absolute number of time series that must fail the predicate for the condition to be triggered.

int32 count = 1;

Parameter
NameDescription
valueint

The count to set.

Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.Trigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder
Overrides

setPercent(double value)

public AlertPolicy.Condition.Trigger.Builder setPercent(double value)

The percentage of time series that must fail the predicate for the condition to be triggered.

double percent = 2;

Parameter
NameDescription
valuedouble

The percent to set.

Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.Trigger.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlertPolicy.Condition.Trigger.Builder
Overrides