public static final class AlertPolicy.Condition.SqlCondition.RowCountTest.Builder extends GeneratedMessage.Builder<AlertPolicy.Condition.SqlCondition.RowCountTest.Builder> implements AlertPolicy.Condition.SqlCondition.RowCountTestOrBuilderA 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
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AlertPolicy.Condition.SqlCondition.RowCountTest.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
ComparisonTypeThe 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 |
intThe enum numeric value on the wire for comparison to set. |
| Returns | |
|---|---|
| Type | Description |
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder |
This builder for chaining. |
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 |
longThe threshold to set. |
| Returns | |
|---|---|
| Type | Description |
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder |
This builder for chaining. |