- 2.56.0 (latest)
- 2.55.0
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.6
- 2.4.0
- 2.3.0
- 2.2.6
public static final class Threshold.Builder extends GeneratedMessageV3.Builder<Threshold.Builder> implements ThresholdOrBuilder
Defines a threshold for categorizing time series values.
Protobuf type google.monitoring.dashboard.v1.Threshold
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Threshold.BuilderImplements
ThresholdOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Threshold.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Threshold.Builder |
build()
public Threshold build()
Type | Description |
Threshold |
buildPartial()
public Threshold buildPartial()
Type | Description |
Threshold |
clear()
public Threshold.Builder clear()
Type | Description |
Threshold.Builder |
clearColor()
public Threshold.Builder clearColor()
The state color for this threshold. Color is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Color color = 3;
Type | Description |
Threshold.Builder | This builder for chaining. |
clearDirection()
public Threshold.Builder clearDirection()
The direction for the current threshold. Direction is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Direction direction = 4;
Type | Description |
Threshold.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Threshold.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Threshold.Builder |
clearLabel()
public Threshold.Builder clearLabel()
A label for the threshold.
string label = 1;
Type | Description |
Threshold.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Threshold.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Threshold.Builder |
clearTargetAxis()
public Threshold.Builder clearTargetAxis()
The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
.google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5;
Type | Description |
Threshold.Builder | This builder for chaining. |
clearValue()
public Threshold.Builder clearValue()
The value of the threshold. The value should be defined in the native scale of the metric.
double value = 2;
Type | Description |
Threshold.Builder | This builder for chaining. |
clone()
public Threshold.Builder clone()
Type | Description |
Threshold.Builder |
getColor()
public Threshold.Color getColor()
The state color for this threshold. Color is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Color color = 3;
Type | Description |
Threshold.Color | The color. |
getColorValue()
public int getColorValue()
The state color for this threshold. Color is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Color color = 3;
Type | Description |
int | The enum numeric value on the wire for color. |
getDefaultInstanceForType()
public Threshold getDefaultInstanceForType()
Type | Description |
Threshold |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDirection()
public Threshold.Direction getDirection()
The direction for the current threshold. Direction is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Direction direction = 4;
Type | Description |
Threshold.Direction | The direction. |
getDirectionValue()
public int getDirectionValue()
The direction for the current threshold. Direction is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Direction direction = 4;
Type | Description |
int | The enum numeric value on the wire for direction. |
getLabel()
public String getLabel()
A label for the threshold.
string label = 1;
Type | Description |
String | The label. |
getLabelBytes()
public ByteString getLabelBytes()
A label for the threshold.
string label = 1;
Type | Description |
ByteString | The bytes for label. |
getTargetAxis()
public Threshold.TargetAxis getTargetAxis()
The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
.google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5;
Type | Description |
Threshold.TargetAxis | The targetAxis. |
getTargetAxisValue()
public int getTargetAxisValue()
The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
.google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5;
Type | Description |
int | The enum numeric value on the wire for targetAxis. |
getValue()
public double getValue()
The value of the threshold. The value should be defined in the native scale of the metric.
double value = 2;
Type | Description |
double | The value. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Threshold other)
public Threshold.Builder mergeFrom(Threshold other)
Name | Description |
other | Threshold |
Type | Description |
Threshold.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Threshold.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Threshold.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Threshold.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Threshold.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Threshold.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Threshold.Builder |
setColor(Threshold.Color value)
public Threshold.Builder setColor(Threshold.Color value)
The state color for this threshold. Color is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Color color = 3;
Name | Description |
value | Threshold.Color The color to set. |
Type | Description |
Threshold.Builder | This builder for chaining. |
setColorValue(int value)
public Threshold.Builder setColorValue(int value)
The state color for this threshold. Color is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Color color = 3;
Name | Description |
value | int The enum numeric value on the wire for color to set. |
Type | Description |
Threshold.Builder | This builder for chaining. |
setDirection(Threshold.Direction value)
public Threshold.Builder setDirection(Threshold.Direction value)
The direction for the current threshold. Direction is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Direction direction = 4;
Name | Description |
value | Threshold.Direction The direction to set. |
Type | Description |
Threshold.Builder | This builder for chaining. |
setDirectionValue(int value)
public Threshold.Builder setDirectionValue(int value)
The direction for the current threshold. Direction is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Direction direction = 4;
Name | Description |
value | int The enum numeric value on the wire for direction to set. |
Type | Description |
Threshold.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Threshold.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Threshold.Builder |
setLabel(String value)
public Threshold.Builder setLabel(String value)
A label for the threshold.
string label = 1;
Name | Description |
value | String The label to set. |
Type | Description |
Threshold.Builder | This builder for chaining. |
setLabelBytes(ByteString value)
public Threshold.Builder setLabelBytes(ByteString value)
A label for the threshold.
string label = 1;
Name | Description |
value | ByteString The bytes for label to set. |
Type | Description |
Threshold.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Threshold.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Threshold.Builder |
setTargetAxis(Threshold.TargetAxis value)
public Threshold.Builder setTargetAxis(Threshold.TargetAxis value)
The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
.google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5;
Name | Description |
value | Threshold.TargetAxis The targetAxis to set. |
Type | Description |
Threshold.Builder | This builder for chaining. |
setTargetAxisValue(int value)
public Threshold.Builder setTargetAxisValue(int value)
The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard.
.google.monitoring.dashboard.v1.Threshold.TargetAxis target_axis = 5;
Name | Description |
value | int The enum numeric value on the wire for targetAxis to set. |
Type | Description |
Threshold.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Threshold.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Threshold.Builder |
setValue(double value)
public Threshold.Builder setValue(double value)
The value of the threshold. The value should be defined in the native scale of the metric.
double value = 2;
Name | Description |
value | double The value to set. |
Type | Description |
Threshold.Builder | This builder for chaining. |