Package com.google.monitoring.v3
Class Point.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
- com.google.monitoring.v3.Point.Builder
-
- All Implemented Interfaces:
PointOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Point
public static final class Point.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Point.Builder> implements PointOrBuilder
A single data point in a time series.
Protobuf typegoogle.monitoring.v3.Point
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Point.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Point
build()
Point
buildPartial()
Point.Builder
clear()
Point.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Point.Builder
clearInterval()
The time interval to which the data point applies.Point.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Point.Builder
clearValue()
The value of the data point.Point.Builder
clone()
Point
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
TimeInterval
getInterval()
The time interval to which the data point applies.TimeInterval.Builder
getIntervalBuilder()
The time interval to which the data point applies.TimeIntervalOrBuilder
getIntervalOrBuilder()
The time interval to which the data point applies.TypedValue
getValue()
The value of the data point.TypedValue.Builder
getValueBuilder()
The value of the data point.TypedValueOrBuilder
getValueOrBuilder()
The value of the data point.boolean
hasInterval()
The time interval to which the data point applies.boolean
hasValue()
The value of the data point.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Point.Builder
mergeFrom(Point other)
Point.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Point.Builder
mergeFrom(com.google.protobuf.Message other)
Point.Builder
mergeInterval(TimeInterval value)
The time interval to which the data point applies.Point.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Point.Builder
mergeValue(TypedValue value)
The value of the data point.Point.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Point.Builder
setInterval(TimeInterval value)
The time interval to which the data point applies.Point.Builder
setInterval(TimeInterval.Builder builderForValue)
The time interval to which the data point applies.Point.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Point.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Point.Builder
setValue(TypedValue value)
The value of the data point.Point.Builder
setValue(TypedValue.Builder builderForValue)
The value of the data point.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
clear
public Point.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
getDefaultInstanceForType
public Point getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Point build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Point buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Point.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
setField
public Point.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
clearField
public Point.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
clearOneof
public Point.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
setRepeatedField
public Point.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
addRepeatedField
public Point.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
mergeFrom
public Point.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Point.Builder>
-
mergeFrom
public Point.Builder mergeFrom(Point other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
mergeFrom
public Point.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Point.Builder>
- Throws:
IOException
-
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;
- Specified by:
hasInterval
in interfacePointOrBuilder
- Returns:
- Whether the interval field is set.
-
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;
- Specified by:
getInterval
in interfacePointOrBuilder
- Returns:
- The interval.
-
setInterval
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;
-
setInterval
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;
-
mergeInterval
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;
-
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;
-
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;
-
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;
- Specified by:
getIntervalOrBuilder
in interfacePointOrBuilder
-
hasValue
public boolean hasValue()
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
- Specified by:
hasValue
in interfacePointOrBuilder
- Returns:
- Whether the value field is set.
-
getValue
public TypedValue getValue()
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
- Specified by:
getValue
in interfacePointOrBuilder
- Returns:
- The value.
-
setValue
public Point.Builder setValue(TypedValue value)
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
-
setValue
public Point.Builder setValue(TypedValue.Builder builderForValue)
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
-
mergeValue
public Point.Builder mergeValue(TypedValue value)
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
-
clearValue
public Point.Builder clearValue()
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
-
getValueBuilder
public TypedValue.Builder getValueBuilder()
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
-
getValueOrBuilder
public TypedValueOrBuilder getValueOrBuilder()
The value of the data point.
.google.monitoring.v3.TypedValue value = 2;
- Specified by:
getValueOrBuilder
in interfacePointOrBuilder
-
setUnknownFields
public final Point.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
mergeUnknownFields
public final Point.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Point.Builder>
-
-