public static final class MetricPoint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder> implements MetricPointOrBuilder
MetricPoint is an update to a single measure.Protobuf type
lightstep.metrics.MetricPoint| Modifier and Type | Method and Description |
|---|---|
MetricPoint.Builder |
addAllLabels(Iterable<? extends KeyValue> values)
Labels contain labels specific to this point.
|
MetricPoint.Builder |
addLabels(int index,
KeyValue.Builder builderForValue)
Labels contain labels specific to this point.
|
MetricPoint.Builder |
addLabels(int index,
KeyValue value)
Labels contain labels specific to this point.
|
MetricPoint.Builder |
addLabels(KeyValue.Builder builderForValue)
Labels contain labels specific to this point.
|
MetricPoint.Builder |
addLabels(KeyValue value)
Labels contain labels specific to this point.
|
KeyValue.Builder |
addLabelsBuilder()
Labels contain labels specific to this point.
|
KeyValue.Builder |
addLabelsBuilder(int index)
Labels contain labels specific to this point.
|
MetricPoint.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MetricPoint |
build() |
MetricPoint |
buildPartial() |
MetricPoint.Builder |
clear() |
MetricPoint.Builder |
clearDoubleValue()
double double_value = 7; |
MetricPoint.Builder |
clearDuration()
Duration of the interval for which the points represent.
|
MetricPoint.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MetricPoint.Builder |
clearKind()
Kind indicates the semantics of this point.
|
MetricPoint.Builder |
clearLabels()
Labels contain labels specific to this point.
|
MetricPoint.Builder |
clearMetricName()
MetricName indicates the metric being emitted.
|
MetricPoint.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MetricPoint.Builder |
clearStart()
Start of the interval for which the points represent.
|
MetricPoint.Builder |
clearUint64Value()
uint64 uint64_value = 6; |
MetricPoint.Builder |
clearValue() |
MetricPoint.Builder |
clone() |
MetricPoint |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getDoubleValue()
double double_value = 7; |
com.google.protobuf.Duration |
getDuration()
Duration of the interval for which the points represent.
|
com.google.protobuf.Duration.Builder |
getDurationBuilder()
Duration of the interval for which the points represent.
|
com.google.protobuf.DurationOrBuilder |
getDurationOrBuilder()
Duration of the interval for which the points represent.
|
MetricKind |
getKind()
Kind indicates the semantics of this point.
|
int |
getKindValue()
Kind indicates the semantics of this point.
|
KeyValue |
getLabels(int index)
Labels contain labels specific to this point.
|
KeyValue.Builder |
getLabelsBuilder(int index)
Labels contain labels specific to this point.
|
List<KeyValue.Builder> |
getLabelsBuilderList()
Labels contain labels specific to this point.
|
int |
getLabelsCount()
Labels contain labels specific to this point.
|
List<KeyValue> |
getLabelsList()
Labels contain labels specific to this point.
|
KeyValueOrBuilder |
getLabelsOrBuilder(int index)
Labels contain labels specific to this point.
|
List<? extends KeyValueOrBuilder> |
getLabelsOrBuilderList()
Labels contain labels specific to this point.
|
String |
getMetricName()
MetricName indicates the metric being emitted.
|
com.google.protobuf.ByteString |
getMetricNameBytes()
MetricName indicates the metric being emitted.
|
com.google.protobuf.Timestamp |
getStart()
Start of the interval for which the points represent.
|
com.google.protobuf.Timestamp.Builder |
getStartBuilder()
Start of the interval for which the points represent.
|
com.google.protobuf.TimestampOrBuilder |
getStartOrBuilder()
Start of the interval for which the points represent.
|
long |
getUint64Value()
uint64 uint64_value = 6; |
MetricPoint.ValueCase |
getValueCase() |
boolean |
hasDuration()
Duration of the interval for which the points represent.
|
boolean |
hasStart()
Start of the interval for which the points represent.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MetricPoint.Builder |
mergeDuration(com.google.protobuf.Duration value)
Duration of the interval for which the points represent.
|
MetricPoint.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MetricPoint.Builder |
mergeFrom(com.google.protobuf.Message other) |
MetricPoint.Builder |
mergeFrom(MetricPoint other) |
MetricPoint.Builder |
mergeStart(com.google.protobuf.Timestamp value)
Start of the interval for which the points represent.
|
MetricPoint.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MetricPoint.Builder |
removeLabels(int index)
Labels contain labels specific to this point.
|
MetricPoint.Builder |
setDoubleValue(double value)
double double_value = 7; |
MetricPoint.Builder |
setDuration(com.google.protobuf.Duration.Builder builderForValue)
Duration of the interval for which the points represent.
|
MetricPoint.Builder |
setDuration(com.google.protobuf.Duration value)
Duration of the interval for which the points represent.
|
MetricPoint.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MetricPoint.Builder |
setKind(MetricKind value)
Kind indicates the semantics of this point.
|
MetricPoint.Builder |
setKindValue(int value)
Kind indicates the semantics of this point.
|
MetricPoint.Builder |
setLabels(int index,
KeyValue.Builder builderForValue)
Labels contain labels specific to this point.
|
MetricPoint.Builder |
setLabels(int index,
KeyValue value)
Labels contain labels specific to this point.
|
MetricPoint.Builder |
setMetricName(String value)
MetricName indicates the metric being emitted.
|
MetricPoint.Builder |
setMetricNameBytes(com.google.protobuf.ByteString value)
MetricName indicates the metric being emitted.
|
MetricPoint.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MetricPoint.Builder |
setStart(com.google.protobuf.Timestamp.Builder builderForValue)
Start of the interval for which the points represent.
|
MetricPoint.Builder |
setStart(com.google.protobuf.Timestamp value)
Start of the interval for which the points represent.
|
MetricPoint.Builder |
setUint64Value(long value)
uint64 uint64_value = 6; |
MetricPoint.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>public MetricPoint.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>public MetricPoint getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MetricPoint build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MetricPoint buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MetricPoint.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>public MetricPoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>public MetricPoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>public MetricPoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>public MetricPoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>public MetricPoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>public MetricPoint.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetricPoint.Builder>public MetricPoint.Builder mergeFrom(MetricPoint other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>public MetricPoint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetricPoint.Builder>IOExceptionpublic MetricPoint.ValueCase getValueCase()
getValueCase in interface MetricPointOrBuilderpublic MetricPoint.Builder clearValue()
public int getKindValue()
Kind indicates the semantics of this point. Kind should always be the same for a given metric name (e.g. "cpu.usage" should always have the same kind)
.lightstep.metrics.MetricKind kind = 1;getKindValue in interface MetricPointOrBuilderpublic MetricPoint.Builder setKindValue(int value)
Kind indicates the semantics of this point. Kind should always be the same for a given metric name (e.g. "cpu.usage" should always have the same kind)
.lightstep.metrics.MetricKind kind = 1;public MetricKind getKind()
Kind indicates the semantics of this point. Kind should always be the same for a given metric name (e.g. "cpu.usage" should always have the same kind)
.lightstep.metrics.MetricKind kind = 1;getKind in interface MetricPointOrBuilderpublic MetricPoint.Builder setKind(MetricKind value)
Kind indicates the semantics of this point. Kind should always be the same for a given metric name (e.g. "cpu.usage" should always have the same kind)
.lightstep.metrics.MetricKind kind = 1;public MetricPoint.Builder clearKind()
Kind indicates the semantics of this point. Kind should always be the same for a given metric name (e.g. "cpu.usage" should always have the same kind)
.lightstep.metrics.MetricKind kind = 1;public String getMetricName()
MetricName indicates the metric being emitted.
string metric_name = 2;getMetricName in interface MetricPointOrBuilderpublic com.google.protobuf.ByteString getMetricNameBytes()
MetricName indicates the metric being emitted.
string metric_name = 2;getMetricNameBytes in interface MetricPointOrBuilderpublic MetricPoint.Builder setMetricName(String value)
MetricName indicates the metric being emitted.
string metric_name = 2;public MetricPoint.Builder clearMetricName()
MetricName indicates the metric being emitted.
string metric_name = 2;public MetricPoint.Builder setMetricNameBytes(com.google.protobuf.ByteString value)
MetricName indicates the metric being emitted.
string metric_name = 2;public boolean hasStart()
Start of the interval for which the points represent. - All Counter points will be assumed to represent the entire interval. - All Gauge points will be assumed to be instantaneous at the start of the interval.
.google.protobuf.Timestamp start = 3;hasStart in interface MetricPointOrBuilderpublic com.google.protobuf.Timestamp getStart()
Start of the interval for which the points represent. - All Counter points will be assumed to represent the entire interval. - All Gauge points will be assumed to be instantaneous at the start of the interval.
.google.protobuf.Timestamp start = 3;getStart in interface MetricPointOrBuilderpublic MetricPoint.Builder setStart(com.google.protobuf.Timestamp value)
Start of the interval for which the points represent. - All Counter points will be assumed to represent the entire interval. - All Gauge points will be assumed to be instantaneous at the start of the interval.
.google.protobuf.Timestamp start = 3;public MetricPoint.Builder setStart(com.google.protobuf.Timestamp.Builder builderForValue)
Start of the interval for which the points represent. - All Counter points will be assumed to represent the entire interval. - All Gauge points will be assumed to be instantaneous at the start of the interval.
.google.protobuf.Timestamp start = 3;public MetricPoint.Builder mergeStart(com.google.protobuf.Timestamp value)
Start of the interval for which the points represent. - All Counter points will be assumed to represent the entire interval. - All Gauge points will be assumed to be instantaneous at the start of the interval.
.google.protobuf.Timestamp start = 3;public MetricPoint.Builder clearStart()
Start of the interval for which the points represent. - All Counter points will be assumed to represent the entire interval. - All Gauge points will be assumed to be instantaneous at the start of the interval.
.google.protobuf.Timestamp start = 3;public com.google.protobuf.Timestamp.Builder getStartBuilder()
Start of the interval for which the points represent. - All Counter points will be assumed to represent the entire interval. - All Gauge points will be assumed to be instantaneous at the start of the interval.
.google.protobuf.Timestamp start = 3;public com.google.protobuf.TimestampOrBuilder getStartOrBuilder()
Start of the interval for which the points represent. - All Counter points will be assumed to represent the entire interval. - All Gauge points will be assumed to be instantaneous at the start of the interval.
.google.protobuf.Timestamp start = 3;getStartOrBuilder in interface MetricPointOrBuilderpublic boolean hasDuration()
Duration of the interval for which the points represent. The end of the interval is start + duration. We expect this value to be unset or zero for Gauge points.
.google.protobuf.Duration duration = 4;hasDuration in interface MetricPointOrBuilderpublic com.google.protobuf.Duration getDuration()
Duration of the interval for which the points represent. The end of the interval is start + duration. We expect this value to be unset or zero for Gauge points.
.google.protobuf.Duration duration = 4;getDuration in interface MetricPointOrBuilderpublic MetricPoint.Builder setDuration(com.google.protobuf.Duration value)
Duration of the interval for which the points represent. The end of the interval is start + duration. We expect this value to be unset or zero for Gauge points.
.google.protobuf.Duration duration = 4;public MetricPoint.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
Duration of the interval for which the points represent. The end of the interval is start + duration. We expect this value to be unset or zero for Gauge points.
.google.protobuf.Duration duration = 4;public MetricPoint.Builder mergeDuration(com.google.protobuf.Duration value)
Duration of the interval for which the points represent. The end of the interval is start + duration. We expect this value to be unset or zero for Gauge points.
.google.protobuf.Duration duration = 4;public MetricPoint.Builder clearDuration()
Duration of the interval for which the points represent. The end of the interval is start + duration. We expect this value to be unset or zero for Gauge points.
.google.protobuf.Duration duration = 4;public com.google.protobuf.Duration.Builder getDurationBuilder()
Duration of the interval for which the points represent. The end of the interval is start + duration. We expect this value to be unset or zero for Gauge points.
.google.protobuf.Duration duration = 4;public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
Duration of the interval for which the points represent. The end of the interval is start + duration. We expect this value to be unset or zero for Gauge points.
.google.protobuf.Duration duration = 4;getDurationOrBuilder in interface MetricPointOrBuilderpublic List<KeyValue> getLabelsList()
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;getLabelsList in interface MetricPointOrBuilderpublic int getLabelsCount()
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;getLabelsCount in interface MetricPointOrBuilderpublic KeyValue getLabels(int index)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;getLabels in interface MetricPointOrBuilderpublic MetricPoint.Builder setLabels(int index, KeyValue value)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public MetricPoint.Builder setLabels(int index, KeyValue.Builder builderForValue)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public MetricPoint.Builder addLabels(KeyValue value)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public MetricPoint.Builder addLabels(int index, KeyValue value)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public MetricPoint.Builder addLabels(KeyValue.Builder builderForValue)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public MetricPoint.Builder addLabels(int index, KeyValue.Builder builderForValue)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public MetricPoint.Builder addAllLabels(Iterable<? extends KeyValue> values)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public MetricPoint.Builder clearLabels()
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public MetricPoint.Builder removeLabels(int index)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public KeyValue.Builder getLabelsBuilder(int index)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public KeyValueOrBuilder getLabelsOrBuilder(int index)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;getLabelsOrBuilder in interface MetricPointOrBuilderpublic List<? extends KeyValueOrBuilder> getLabelsOrBuilderList()
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;getLabelsOrBuilderList in interface MetricPointOrBuilderpublic KeyValue.Builder addLabelsBuilder()
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public KeyValue.Builder addLabelsBuilder(int index)
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public List<KeyValue.Builder> getLabelsBuilderList()
Labels contain labels specific to this point.
repeated .lightstep.collector.KeyValue labels = 5;public long getUint64Value()
uint64 uint64_value = 6;getUint64Value in interface MetricPointOrBuilderpublic MetricPoint.Builder setUint64Value(long value)
uint64 uint64_value = 6;public MetricPoint.Builder clearUint64Value()
uint64 uint64_value = 6;public double getDoubleValue()
double double_value = 7;getDoubleValue in interface MetricPointOrBuilderpublic MetricPoint.Builder setDoubleValue(double value)
double double_value = 7;public MetricPoint.Builder clearDoubleValue()
double double_value = 7;public final MetricPoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>public final MetricPoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MetricPoint.Builder>Copyright © 2020 LightStep. All rights reserved.