Class AlertPolicy.Condition.SqlCondition.RowCountTest.Builder (3.57.0)

public static final class AlertPolicy.Condition.SqlCondition.RowCountTest.Builder extends GeneratedMessageV3.Builder<AlertPolicy.Condition.SqlCondition.RowCountTest.Builder> implements AlertPolicy.Condition.SqlCondition.RowCountTestOrBuilder

A test that checks if the number of rows in the result set violates some threshold.

Protobuf type google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AlertPolicy.Condition.SqlCondition.RowCountTest.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder
Overrides

build()

public AlertPolicy.Condition.SqlCondition.RowCountTest build()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest

buildPartial()

public AlertPolicy.Condition.SqlCondition.RowCountTest buildPartial()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest

clear()

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder clear()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder
Overrides

clearComparison()

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder clearComparison()

Required. The comparison to apply between the number of rows returned by the query and the threshold.

.google.monitoring.v3.ComparisonType comparison = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder
Overrides

clearThreshold()

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder clearThreshold()

Required. The value against which to compare the row count.

int64 threshold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder

This builder for chaining.

clone()

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder clone()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder
Overrides

getComparison()

public ComparisonType getComparison()

Required. The comparison to apply between the number of rows returned by the query and the threshold.

.google.monitoring.v3.ComparisonType comparison = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ComparisonType

The comparison.

getComparisonValue()

public int getComparisonValue()

Required. The comparison to apply between the number of rows returned by the query and the threshold.

.google.monitoring.v3.ComparisonType comparison = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for comparison.

getDefaultInstanceForType()

public AlertPolicy.Condition.SqlCondition.RowCountTest getDefaultInstanceForType()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getThreshold()

public long getThreshold()

Required. The value against which to compare the row count.

int64 threshold = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The threshold.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AlertPolicy.Condition.SqlCondition.RowCountTest other)

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder mergeFrom(AlertPolicy.Condition.SqlCondition.RowCountTest other)
Parameter
Name Description
other AlertPolicy.Condition.SqlCondition.RowCountTest
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.SqlCondition.RowCountTest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder
Overrides

setComparison(ComparisonType value)

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder setComparison(ComparisonType value)

Required. The comparison to apply between the number of rows returned by the query and the threshold.

.google.monitoring.v3.ComparisonType comparison = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ComparisonType

The comparison to set.

Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder

This builder for chaining.

setComparisonValue(int value)

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder setComparisonValue(int value)

Required. The comparison to apply between the number of rows returned by the query and the threshold.

.google.monitoring.v3.ComparisonType comparison = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for comparison to set.

Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder
Overrides

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

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder
Overrides

setThreshold(long value)

public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder setThreshold(long value)

Required. The value against which to compare the row count.

int64 threshold = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The threshold to set.

Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AlertPolicy.Condition.SqlCondition.RowCountTest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder
Overrides