- 2.50.0 (latest)
- 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()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Threshold.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Threshold.Builder |
build()
public Threshold build()
Returns | |
---|---|
Type | Description |
Threshold |
buildPartial()
public Threshold buildPartial()
Returns | |
---|---|
Type | Description |
Threshold |
clear()
public Threshold.Builder clear()
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
Threshold.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Threshold.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Threshold.Builder |
clearLabel()
public Threshold.Builder clearLabel()
A label for the threshold.
string label = 1;
Returns | |
---|---|
Type | Description |
Threshold.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Threshold.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
Threshold.Builder | This builder for chaining. |
clone()
public Threshold.Builder clone()
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for color. |
getDefaultInstanceForType()
public Threshold getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Threshold |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for direction. |
getLabel()
public String getLabel()
A label for the threshold.
string label = 1;
Returns | |
---|---|
Type | Description |
String | The label. |
getLabelBytes()
public ByteString getLabelBytes()
A label for the threshold.
string label = 1;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
double | The value. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Threshold other)
public Threshold.Builder mergeFrom(Threshold other)
Parameter | |
---|---|
Name | Description |
other | Threshold |
Returns | |
---|---|
Type | Description |
Threshold.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Threshold.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Threshold.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Threshold.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Threshold.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Threshold.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | Threshold.Color The color to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for color to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | Threshold.Direction The direction to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for direction to set. |
Returns | |
---|---|
Type | Description |
Threshold.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Threshold.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Threshold.Builder |
setLabel(String value)
public Threshold.Builder setLabel(String value)
A label for the threshold.
string label = 1;
Parameter | |
---|---|
Name | Description |
value | String The label to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for label to set. |
Returns | |
---|---|
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)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | Threshold.TargetAxis The targetAxis to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for targetAxis to set. |
Returns | |
---|---|
Type | Description |
Threshold.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Threshold.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | double The value to set. |
Returns | |
---|---|
Type | Description |
Threshold.Builder | This builder for chaining. |