public static final class Point.Builder extends GeneratedMessageV3.Builder<Point.Builder> implements PointOrBuilder
A single data point in a time series.
Protobuf type google.monitoring.v3.Point
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Point.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Point buildPartial()
Returns
clear()
public Point.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Point.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInterval()
public Point.Builder clearInterval()
The time interval to which the data point applies. For GAUGE
metrics,
the start time is optional, but if it is supplied, it must equal the
end time. For DELTA
metrics, the start
and end time should specify a non-zero interval, with subsequent points
specifying contiguous and non-overlapping intervals. For CUMULATIVE
metrics, the start and end time should specify a non-zero interval, with
subsequent points specifying the same start time and increasing end times,
until an event resets the cumulative value to zero and sets a new start
time for the following points.
.google.monitoring.v3.TimeInterval interval = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Point.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearValue()
public Point.Builder clearValue()
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
Returns
clone()
public Point.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Point getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getInterval()
public TimeInterval getInterval()
The time interval to which the data point applies. For GAUGE
metrics,
the start time is optional, but if it is supplied, it must equal the
end time. For DELTA
metrics, the start
and end time should specify a non-zero interval, with subsequent points
specifying contiguous and non-overlapping intervals. For CUMULATIVE
metrics, the start and end time should specify a non-zero interval, with
subsequent points specifying the same start time and increasing end times,
until an event resets the cumulative value to zero and sets a new start
time for the following points.
.google.monitoring.v3.TimeInterval interval = 1;
Returns
getIntervalBuilder()
public TimeInterval.Builder getIntervalBuilder()
The time interval to which the data point applies. For GAUGE
metrics,
the start time is optional, but if it is supplied, it must equal the
end time. For DELTA
metrics, the start
and end time should specify a non-zero interval, with subsequent points
specifying contiguous and non-overlapping intervals. For CUMULATIVE
metrics, the start and end time should specify a non-zero interval, with
subsequent points specifying the same start time and increasing end times,
until an event resets the cumulative value to zero and sets a new start
time for the following points.
.google.monitoring.v3.TimeInterval interval = 1;
Returns
getIntervalOrBuilder()
public TimeIntervalOrBuilder getIntervalOrBuilder()
The time interval to which the data point applies. For GAUGE
metrics,
the start time is optional, but if it is supplied, it must equal the
end time. For DELTA
metrics, the start
and end time should specify a non-zero interval, with subsequent points
specifying contiguous and non-overlapping intervals. For CUMULATIVE
metrics, the start and end time should specify a non-zero interval, with
subsequent points specifying the same start time and increasing end times,
until an event resets the cumulative value to zero and sets a new start
time for the following points.
.google.monitoring.v3.TimeInterval interval = 1;
Returns
getValue()
public TypedValue getValue()
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
Returns
getValueBuilder()
public TypedValue.Builder getValueBuilder()
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
Returns
getValueOrBuilder()
public TypedValueOrBuilder getValueOrBuilder()
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
Returns
hasInterval()
public boolean hasInterval()
The time interval to which the data point applies. For GAUGE
metrics,
the start time is optional, but if it is supplied, it must equal the
end time. For DELTA
metrics, the start
and end time should specify a non-zero interval, with subsequent points
specifying contiguous and non-overlapping intervals. For CUMULATIVE
metrics, the start and end time should specify a non-zero interval, with
subsequent points specifying the same start time and increasing end times,
until an event resets the cumulative value to zero and sets a new start
time for the following points.
.google.monitoring.v3.TimeInterval interval = 1;
Returns
Type | Description |
boolean | Whether the interval field is set.
|
hasValue()
public boolean hasValue()
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
Returns
Type | Description |
boolean | Whether the value field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Point other)
public Point.Builder mergeFrom(Point other)
Parameter
Name | Description |
other | Point
|
Returns
public Point.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Point.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeInterval(TimeInterval value)
public Point.Builder mergeInterval(TimeInterval value)
The time interval to which the data point applies. For GAUGE
metrics,
the start time is optional, but if it is supplied, it must equal the
end time. For DELTA
metrics, the start
and end time should specify a non-zero interval, with subsequent points
specifying contiguous and non-overlapping intervals. For CUMULATIVE
metrics, the start and end time should specify a non-zero interval, with
subsequent points specifying the same start time and increasing end times,
until an event resets the cumulative value to zero and sets a new start
time for the following points.
.google.monitoring.v3.TimeInterval interval = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Point.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
mergeValue(TypedValue value)
public Point.Builder mergeValue(TypedValue value)
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Point.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setInterval(TimeInterval value)
public Point.Builder setInterval(TimeInterval value)
The time interval to which the data point applies. For GAUGE
metrics,
the start time is optional, but if it is supplied, it must equal the
end time. For DELTA
metrics, the start
and end time should specify a non-zero interval, with subsequent points
specifying contiguous and non-overlapping intervals. For CUMULATIVE
metrics, the start and end time should specify a non-zero interval, with
subsequent points specifying the same start time and increasing end times,
until an event resets the cumulative value to zero and sets a new start
time for the following points.
.google.monitoring.v3.TimeInterval interval = 1;
Parameter
Returns
setInterval(TimeInterval.Builder builderForValue)
public Point.Builder setInterval(TimeInterval.Builder builderForValue)
The time interval to which the data point applies. For GAUGE
metrics,
the start time is optional, but if it is supplied, it must equal the
end time. For DELTA
metrics, the start
and end time should specify a non-zero interval, with subsequent points
specifying contiguous and non-overlapping intervals. For CUMULATIVE
metrics, the start and end time should specify a non-zero interval, with
subsequent points specifying the same start time and increasing end times,
until an event resets the cumulative value to zero and sets a new start
time for the following points.
.google.monitoring.v3.TimeInterval interval = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Point.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Point.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setValue(TypedValue value)
public Point.Builder setValue(TypedValue value)
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
Parameter
Returns
setValue(TypedValue.Builder builderForValue)
public Point.Builder setValue(TypedValue.Builder builderForValue)
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
Parameter
Returns