Class Threshold.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Threshold.Builder>
com.google.monitoring.dashboard.v1.Threshold.Builder
- All Implemented Interfaces:
ThresholdOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Threshold
public static final class Threshold.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Threshold.Builder>
implements ThresholdOrBuilder
Defines a threshold for categorizing time series values.Protobuf type
google.monitoring.dashboard.v1.Threshold-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The state color for this threshold.The direction for the current threshold.A label for the threshold.The target axis to use for plotting the threshold.The value of the threshold.getColor()The state color for this threshold.intThe state color for this threshold.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe direction for the current threshold.intThe direction for the current threshold.getLabel()A label for the threshold.com.google.protobuf.ByteStringA label for the threshold.The target axis to use for plotting the threshold.intThe target axis to use for plotting the threshold.doublegetValue()The value of the threshold.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setColor(Threshold.Color value) The state color for this threshold.setColorValue(int value) The state color for this threshold.setDirection(Threshold.Direction value) The direction for the current threshold.setDirectionValue(int value) The direction for the current threshold.A label for the threshold.setLabelBytes(com.google.protobuf.ByteString value) A label for the threshold.The target axis to use for plotting the threshold.setTargetAxisValue(int value) The target axis to use for plotting the threshold.setValue(double value) The value of the threshold.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Threshold.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Threshold.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Threshold.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Threshold.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Threshold.Builder>
-
mergeFrom
public Threshold.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Threshold.Builder>- Throws:
IOException
-
getLabel
A label for the threshold.
string label = 1;- Specified by:
getLabelin interfaceThresholdOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()A label for the threshold.
string label = 1;- Specified by:
getLabelBytesin interfaceThresholdOrBuilder- Returns:
- The bytes for label.
-
setLabel
A label for the threshold.
string label = 1;- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
A label for the threshold.
string label = 1;- Returns:
- This builder for chaining.
-
setLabelBytes
A label for the threshold.
string label = 1;- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
getValue
public double getValue()The value of the threshold. The value should be defined in the native scale of the metric.
double value = 2;- Specified by:
getValuein interfaceThresholdOrBuilder- Returns:
- The value.
-
setValue
The value of the threshold. The value should be defined in the native scale of the metric.
double value = 2;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
The value of the threshold. The value should be defined in the native scale of the metric.
double value = 2;- Returns:
- This builder for chaining.
-
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;- Specified by:
getColorValuein interfaceThresholdOrBuilder- Returns:
- The enum numeric value on the wire for color.
-
setColorValue
The state color for this threshold. Color is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Color color = 3;- Parameters:
value- The enum numeric value on the wire for color to set.- Returns:
- This builder for chaining.
-
getColor
The state color for this threshold. Color is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Color color = 3;- Specified by:
getColorin interfaceThresholdOrBuilder- Returns:
- The color.
-
setColor
The state color for this threshold. Color is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Color color = 3;- Parameters:
value- The color to set.- Returns:
- This builder for chaining.
-
clearColor
The state color for this threshold. Color is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Color color = 3;- Returns:
- This builder for chaining.
-
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;- Specified by:
getDirectionValuein interfaceThresholdOrBuilder- Returns:
- The enum numeric value on the wire for direction.
-
setDirectionValue
The direction for the current threshold. Direction is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Direction direction = 4;- Parameters:
value- The enum numeric value on the wire for direction to set.- Returns:
- This builder for chaining.
-
getDirection
The direction for the current threshold. Direction is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Direction direction = 4;- Specified by:
getDirectionin interfaceThresholdOrBuilder- Returns:
- The direction.
-
setDirection
The direction for the current threshold. Direction is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Direction direction = 4;- Parameters:
value- The direction to set.- Returns:
- This builder for chaining.
-
clearDirection
The direction for the current threshold. Direction is not allowed in a XyChart.
.google.monitoring.dashboard.v1.Threshold.Direction direction = 4;- Returns:
- This builder for chaining.
-
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;- Specified by:
getTargetAxisValuein interfaceThresholdOrBuilder- Returns:
- The enum numeric value on the wire for targetAxis.
-
setTargetAxisValue
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;- Parameters:
value- The enum numeric value on the wire for targetAxis to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getTargetAxisin interfaceThresholdOrBuilder- Returns:
- The targetAxis.
-
setTargetAxis
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;- Parameters:
value- The targetAxis to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-