Class Point.Builder (3.36.0)

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

Implements

PointOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Point.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Point.Builder
Overrides

build()

public Point build()
Returns
TypeDescription
Point

buildPartial()

public Point buildPartial()
Returns
TypeDescription
Point

clear()

public Point.Builder clear()
Returns
TypeDescription
Point.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Point.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Point.Builder
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
TypeDescription
Point.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Point.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Point.Builder
Overrides

clearValue()

public Point.Builder clearValue()

The value of the data point.

.google.monitoring.v3.TypedValue value = 2;

Returns
TypeDescription
Point.Builder

clone()

public Point.Builder clone()
Returns
TypeDescription
Point.Builder
Overrides

getDefaultInstanceForType()

public Point getDefaultInstanceForType()
Returns
TypeDescription
Point

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
TimeInterval

The interval.

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
TypeDescription
TimeInterval.Builder

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
TypeDescription
TimeIntervalOrBuilder

getValue()

public TypedValue getValue()

The value of the data point.

.google.monitoring.v3.TypedValue value = 2;

Returns
TypeDescription
TypedValue

The value.

getValueBuilder()

public TypedValue.Builder getValueBuilder()

The value of the data point.

.google.monitoring.v3.TypedValue value = 2;

Returns
TypeDescription
TypedValue.Builder

getValueOrBuilder()

public TypedValueOrBuilder getValueOrBuilder()

The value of the data point.

.google.monitoring.v3.TypedValue value = 2;

Returns
TypeDescription
TypedValueOrBuilder

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
TypeDescription
boolean

Whether the interval field is set.

hasValue()

public boolean hasValue()

The value of the data point.

.google.monitoring.v3.TypedValue value = 2;

Returns
TypeDescription
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Point other)

public Point.Builder mergeFrom(Point other)
Parameter
NameDescription
otherPoint
Returns
TypeDescription
Point.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Point.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Point.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Point.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Point.Builder
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
NameDescription
valueTimeInterval
Returns
TypeDescription
Point.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Point.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Point.Builder
Overrides

mergeValue(TypedValue value)

public Point.Builder mergeValue(TypedValue value)

The value of the data point.

.google.monitoring.v3.TypedValue value = 2;

Parameter
NameDescription
valueTypedValue
Returns
TypeDescription
Point.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Point.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Point.Builder
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
NameDescription
valueTimeInterval
Returns
TypeDescription
Point.Builder

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
NameDescription
builderForValueTimeInterval.Builder
Returns
TypeDescription
Point.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Point.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Point.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Point.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Point.Builder
Overrides

setValue(TypedValue value)

public Point.Builder setValue(TypedValue value)

The value of the data point.

.google.monitoring.v3.TypedValue value = 2;

Parameter
NameDescription
valueTypedValue
Returns
TypeDescription
Point.Builder

setValue(TypedValue.Builder builderForValue)

public Point.Builder setValue(TypedValue.Builder builderForValue)

The value of the data point.

.google.monitoring.v3.TypedValue value = 2;

Parameter
NameDescription
builderForValueTypedValue.Builder
Returns
TypeDescription
Point.Builder