Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opencensus/proto/metrics/v1/metrics.proto
package io.opencensus.proto.metrics.v1;
/**
*
* A collection of data points that describes the time-varying values
* of a metric.
*
*
* Protobuf type {@code opencensus.proto.metrics.v1.TimeSeries}
*/
public final class TimeSeries extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencensus.proto.metrics.v1.TimeSeries)
TimeSeriesOrBuilder {
private static final long serialVersionUID = 0L;
// Use TimeSeries.newBuilder() to construct.
private TimeSeries(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TimeSeries() {
labelValues_ = java.util.Collections.emptyList();
points_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TimeSeries();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TimeSeries(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (startTimestamp_ != null) {
subBuilder = startTimestamp_.toBuilder();
}
startTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startTimestamp_);
startTimestamp_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labelValues_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
labelValues_.add(
input.readMessage(io.opencensus.proto.metrics.v1.LabelValue.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
points_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
points_.add(
input.readMessage(io.opencensus.proto.metrics.v1.Point.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
labelValues_ = java.util.Collections.unmodifiableList(labelValues_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
points_ = java.util.Collections.unmodifiableList(points_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opencensus.proto.metrics.v1.MetricsProto.internal_static_opencensus_proto_metrics_v1_TimeSeries_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.metrics.v1.MetricsProto.internal_static_opencensus_proto_metrics_v1_TimeSeries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.metrics.v1.TimeSeries.class, io.opencensus.proto.metrics.v1.TimeSeries.Builder.class);
}
public static final int START_TIMESTAMP_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp startTimestamp_;
/**
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
*
* .google.protobuf.Timestamp start_timestamp = 1;
* @return Whether the startTimestamp field is set.
*/
@java.lang.Override
public boolean hasStartTimestamp() {
return startTimestamp_ != null;
}
/**
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
*
* .google.protobuf.Timestamp start_timestamp = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimestampOrBuilder() {
return getStartTimestamp();
}
public static final int LABEL_VALUES_FIELD_NUMBER = 2;
private java.util.List labelValues_;
/**
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
*
* repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
*/
@java.lang.Override
public int getLabelValuesCount() {
return labelValues_.size();
}
/**
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
*
* repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
*/
@java.lang.Override
public io.opencensus.proto.metrics.v1.LabelValueOrBuilder getLabelValuesOrBuilder(
int index) {
return labelValues_.get(index);
}
public static final int POINTS_FIELD_NUMBER = 3;
private java.util.List points_;
/**
*
* The data points of this timeseries. Point.value type MUST match the
* MetricDescriptor.type.
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
*
* .google.protobuf.Timestamp start_timestamp = 1;
* @return Whether the startTimestamp field is set.
*/
public boolean hasStartTimestamp() {
return startTimestampBuilder_ != null || startTimestamp_ != null;
}
/**
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
*
* .google.protobuf.Timestamp start_timestamp = 1;
*/
public Builder setStartTimestamp(com.google.protobuf.Timestamp value) {
if (startTimestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTimestamp_ = value;
onChanged();
} else {
startTimestampBuilder_.setMessage(value);
}
return this;
}
/**
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
* Must be present for cumulative metrics. The time when the cumulative value
* was reset to zero. Exclusive. The cumulative value is over the time interval
* (start_timestamp, timestamp]. If not specified, the backend can use the
* previous recorded value.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
*
* repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
*/
public int getLabelValuesCount() {
if (labelValuesBuilder_ == null) {
return labelValues_.size();
} else {
return labelValuesBuilder_.getCount();
}
}
/**
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
*
* repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
*/
public Builder setLabelValues(
int index, io.opencensus.proto.metrics.v1.LabelValue value) {
if (labelValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelValuesIsMutable();
labelValues_.set(index, value);
onChanged();
} else {
labelValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
*
* repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
*/
public Builder addLabelValues(io.opencensus.proto.metrics.v1.LabelValue value) {
if (labelValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelValuesIsMutable();
labelValues_.add(value);
onChanged();
} else {
labelValuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
*
* repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
*/
public Builder addLabelValues(
int index, io.opencensus.proto.metrics.v1.LabelValue value) {
if (labelValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelValuesIsMutable();
labelValues_.add(index, value);
onChanged();
} else {
labelValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
*
* repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
*/
public io.opencensus.proto.metrics.v1.LabelValue.Builder getLabelValuesBuilder(
int index) {
return getLabelValuesFieldBuilder().getBuilder(index);
}
/**
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
*
* repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
*/
public io.opencensus.proto.metrics.v1.LabelValueOrBuilder getLabelValuesOrBuilder(
int index) {
if (labelValuesBuilder_ == null) {
return labelValues_.get(index); } else {
return labelValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*
* The set of label values that uniquely identify this timeseries. Applies to
* all points. The order of label values must match that of label keys in the
* metric descriptor.
*