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.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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Condition.Trigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AlertPolicy.Condition.Trigger build()
Returns
buildPartial()
public AlertPolicy.Condition.Trigger buildPartial()
Returns
clear()
public AlertPolicy.Condition.Trigger.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public AlertPolicy.Condition.Trigger.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AlertPolicy.Condition.Trigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clearType()
public AlertPolicy.Condition.Trigger.Builder clearType()
Returns
clone()
public AlertPolicy.Condition.Trigger.Builder clone()
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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()
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AlertPolicy.Condition.Trigger other)
public AlertPolicy.Condition.Trigger.Builder mergeFrom(AlertPolicy.Condition.Trigger other)
Parameter
Returns
public AlertPolicy.Condition.Trigger.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AlertPolicy.Condition.Trigger.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Condition.Trigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Condition.Trigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlertPolicy.Condition.Trigger.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Condition.Trigger.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides