Package io.opencensus.proto.stats.v1
Class Measurement
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.opencensus.proto.stats.v1.Measurement
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MeasurementOrBuilder,Serializable
public final class Measurement extends com.google.protobuf.GeneratedMessageV3 implements MeasurementOrBuilder
Describes a data point to be collected for a Measure.
Protobuf typeopencensus.proto.stats.v1.Measurement- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMeasurement.BuilderDescribes a data point to be collected for a Measure.static classMeasurement.ValueCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDOUBLE_VALUE_FIELD_NUMBERstatic intINT_VALUE_FIELD_NUMBERstatic intMEASURE_NAME_FIELD_NUMBERstatic intTAGS_FIELD_NUMBERstatic intTIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static MeasurementgetDefaultInstance()MeasurementgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()doublegetDoubleValue()double double_value = 3;longgetIntValue()int64 int_value = 4;StringgetMeasureName()The name of the measure to which the value is applied.com.google.protobuf.ByteStringgetMeasureNameBytes()The name of the measure to which the value is applied.com.google.protobuf.Parser<Measurement>getParserForType()intgetSerializedSize()TaggetTags(int index)repeated .opencensus.proto.stats.v1.Tag tags = 1;intgetTagsCount()repeated .opencensus.proto.stats.v1.Tag tags = 1;List<Tag>getTagsList()repeated .opencensus.proto.stats.v1.Tag tags = 1;TagOrBuildergetTagsOrBuilder(int index)repeated .opencensus.proto.stats.v1.Tag tags = 1;List<? extends TagOrBuilder>getTagsOrBuilderList()repeated .opencensus.proto.stats.v1.Tag tags = 1;com.google.protobuf.TimestampgetTime()The time when this measurement was recorded.com.google.protobuf.TimestampOrBuildergetTimeOrBuilder()The time when this measurement was recorded.com.google.protobuf.UnknownFieldSetgetUnknownFields()Measurement.ValueCasegetValueCase()booleanhasDoubleValue()double double_value = 3;inthashCode()booleanhasIntValue()int64 int_value = 4;booleanhasTime()The time when this measurement was recorded.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Measurement.BuildernewBuilder()static Measurement.BuildernewBuilder(Measurement prototype)Measurement.BuildernewBuilderForType()protected Measurement.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static MeasurementparseDelimitedFrom(InputStream input)static MeasurementparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MeasurementparseFrom(byte[] data)static MeasurementparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MeasurementparseFrom(com.google.protobuf.ByteString data)static MeasurementparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MeasurementparseFrom(com.google.protobuf.CodedInputStream input)static MeasurementparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MeasurementparseFrom(InputStream input)static MeasurementparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MeasurementparseFrom(ByteBuffer data)static MeasurementparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Measurement>parser()Measurement.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEASURE_NAME_FIELD_NUMBER
public static final int MEASURE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOUBLE_VALUE_FIELD_NUMBER
public static final int DOUBLE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT_VALUE_FIELD_NUMBER
public static final int INT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_FIELD_NUMBER
public static final int TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getValueCase
public Measurement.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceMeasurementOrBuilder
-
getTagsList
public List<Tag> getTagsList()
repeated .opencensus.proto.stats.v1.Tag tags = 1;- Specified by:
getTagsListin interfaceMeasurementOrBuilder
-
getTagsOrBuilderList
public List<? extends TagOrBuilder> getTagsOrBuilderList()
repeated .opencensus.proto.stats.v1.Tag tags = 1;- Specified by:
getTagsOrBuilderListin interfaceMeasurementOrBuilder
-
getTagsCount
public int getTagsCount()
repeated .opencensus.proto.stats.v1.Tag tags = 1;- Specified by:
getTagsCountin interfaceMeasurementOrBuilder
-
getTags
public Tag getTags(int index)
repeated .opencensus.proto.stats.v1.Tag tags = 1;- Specified by:
getTagsin interfaceMeasurementOrBuilder
-
getTagsOrBuilder
public TagOrBuilder getTagsOrBuilder(int index)
repeated .opencensus.proto.stats.v1.Tag tags = 1;- Specified by:
getTagsOrBuilderin interfaceMeasurementOrBuilder
-
getMeasureName
public String getMeasureName()
The name of the measure to which the value is applied.
string measure_name = 2;- Specified by:
getMeasureNamein interfaceMeasurementOrBuilder- Returns:
- The measureName.
-
getMeasureNameBytes
public com.google.protobuf.ByteString getMeasureNameBytes()
The name of the measure to which the value is applied.
string measure_name = 2;- Specified by:
getMeasureNameBytesin interfaceMeasurementOrBuilder- Returns:
- The bytes for measureName.
-
hasDoubleValue
public boolean hasDoubleValue()
double double_value = 3;- Specified by:
hasDoubleValuein interfaceMeasurementOrBuilder- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()
double double_value = 3;- Specified by:
getDoubleValuein interfaceMeasurementOrBuilder- Returns:
- The doubleValue.
-
hasIntValue
public boolean hasIntValue()
int64 int_value = 4;- Specified by:
hasIntValuein interfaceMeasurementOrBuilder- Returns:
- Whether the intValue field is set.
-
getIntValue
public long getIntValue()
int64 int_value = 4;- Specified by:
getIntValuein interfaceMeasurementOrBuilder- Returns:
- The intValue.
-
hasTime
public boolean hasTime()
The time when this measurement was recorded. If the implementation uses a async buffer to record measurements this may be the time when the measurement was read from the buffer.
.google.protobuf.Timestamp time = 5;- Specified by:
hasTimein interfaceMeasurementOrBuilder- Returns:
- Whether the time field is set.
-
getTime
public com.google.protobuf.Timestamp getTime()
The time when this measurement was recorded. If the implementation uses a async buffer to record measurements this may be the time when the measurement was read from the buffer.
.google.protobuf.Timestamp time = 5;- Specified by:
getTimein interfaceMeasurementOrBuilder- Returns:
- The time.
-
getTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()
The time when this measurement was recorded. If the implementation uses a async buffer to record measurements this may be the time when the measurement was read from the buffer.
.google.protobuf.Timestamp time = 5;- Specified by:
getTimeOrBuilderin interfaceMeasurementOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Measurement parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Measurement parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Measurement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Measurement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Measurement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Measurement parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Measurement parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Measurement parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Measurement parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Measurement parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Measurement parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Measurement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Measurement.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Measurement.Builder newBuilder()
-
newBuilder
public static Measurement.Builder newBuilder(Measurement prototype)
-
toBuilder
public Measurement.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Measurement.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Measurement getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Measurement> parser()
-
getParserForType
public com.google.protobuf.Parser<Measurement> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Measurement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-