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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Condition.Trigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AlertPolicy.Condition.Trigger build()
buildPartial()
public AlertPolicy.Condition.Trigger buildPartial()
clear()
public AlertPolicy.Condition.Trigger.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public AlertPolicy.Condition.Trigger.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AlertPolicy.Condition.Trigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clearType()
public AlertPolicy.Condition.Trigger.Builder clearType()
clone()
public AlertPolicy.Condition.Trigger.Builder clone()
Overrides
getCount()
The absolute number of time series that must fail
the predicate for the condition to be triggered.
int32 count = 1;
Returns |
Type |
Description |
int |
The count.
|
getDefaultInstanceForType()
public AlertPolicy.Condition.Trigger getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Type |
Description |
double |
The percent.
|
getTypeCase()
public AlertPolicy.Condition.Trigger.TypeCase getTypeCase()
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 |
Type |
Description |
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 |
Type |
Description |
boolean |
Whether the percent field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AlertPolicy.Condition.Trigger other)
public AlertPolicy.Condition.Trigger.Builder mergeFrom(AlertPolicy.Condition.Trigger other)
public AlertPolicy.Condition.Trigger.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AlertPolicy.Condition.Trigger.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Condition.Trigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
Name |
Description |
value |
int
The count to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Condition.Trigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
Name |
Description |
value |
double
The percent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlertPolicy.Condition.Trigger.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Condition.Trigger.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides