public final class MetricDescriptor extends com.google.protobuf.GeneratedMessageV3 implements MetricDescriptorOrBuilder
Defines a metric type and its schema.Protobuf type
opencensus.proto.metrics.v1.MetricDescriptor| Modifier and Type | Class and Description |
|---|---|
static class |
MetricDescriptor.Builder
Defines a metric type and its schema.
|
static class |
MetricDescriptor.Type
The kind of metric.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
LABEL_KEYS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
UNIT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static MetricDescriptor |
getDefaultInstance() |
MetricDescriptor |
getDefaultInstanceForType() |
String |
getDescription()
A detailed description of the metric, which can be used in documentation.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A detailed description of the metric, which can be used in documentation.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
LabelKey |
getLabelKeys(int index)
The label keys associated with the metric descriptor.
|
int |
getLabelKeysCount()
The label keys associated with the metric descriptor.
|
List<LabelKey> |
getLabelKeysList()
The label keys associated with the metric descriptor.
|
LabelKeyOrBuilder |
getLabelKeysOrBuilder(int index)
The label keys associated with the metric descriptor.
|
List<? extends LabelKeyOrBuilder> |
getLabelKeysOrBuilderList()
The label keys associated with the metric descriptor.
|
String |
getName()
The metric type, including its DNS name prefix.
|
com.google.protobuf.ByteString |
getNameBytes()
The metric type, including its DNS name prefix.
|
com.google.protobuf.Parser<MetricDescriptor> |
getParserForType() |
int |
getSerializedSize() |
MetricDescriptor.Type |
getType()
.opencensus.proto.metrics.v1.MetricDescriptor.Type type = 4; |
int |
getTypeValue()
.opencensus.proto.metrics.v1.MetricDescriptor.Type type = 4; |
String |
getUnit()
The unit in which the metric value is reported.
|
com.google.protobuf.ByteString |
getUnitBytes()
The unit in which the metric value is reported.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MetricDescriptor.Builder |
newBuilder() |
static MetricDescriptor.Builder |
newBuilder(MetricDescriptor prototype) |
MetricDescriptor.Builder |
newBuilderForType() |
protected MetricDescriptor.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static MetricDescriptor |
parseDelimitedFrom(InputStream input) |
static MetricDescriptor |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetricDescriptor |
parseFrom(byte[] data) |
static MetricDescriptor |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetricDescriptor |
parseFrom(ByteBuffer data) |
static MetricDescriptor |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetricDescriptor |
parseFrom(com.google.protobuf.ByteString data) |
static MetricDescriptor |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetricDescriptor |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MetricDescriptor |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetricDescriptor |
parseFrom(InputStream input) |
static MetricDescriptor |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MetricDescriptor> |
parser() |
MetricDescriptor.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int LABEL_KEYS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
The metric type, including its DNS name prefix. It must be unique.
string name = 1;getName in interface MetricDescriptorOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The metric type, including its DNS name prefix. It must be unique.
string name = 1;getNameBytes in interface MetricDescriptorOrBuilderpublic String getDescription()
A detailed description of the metric, which can be used in documentation.
string description = 2;getDescription in interface MetricDescriptorOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A detailed description of the metric, which can be used in documentation.
string description = 2;getDescriptionBytes in interface MetricDescriptorOrBuilderpublic String getUnit()
The unit in which the metric value is reported. Follows the format described by http://unitsofmeasure.org/ucum.html.
string unit = 3;getUnit in interface MetricDescriptorOrBuilderpublic com.google.protobuf.ByteString getUnitBytes()
The unit in which the metric value is reported. Follows the format described by http://unitsofmeasure.org/ucum.html.
string unit = 3;getUnitBytes in interface MetricDescriptorOrBuilderpublic int getTypeValue()
.opencensus.proto.metrics.v1.MetricDescriptor.Type type = 4;getTypeValue in interface MetricDescriptorOrBuilderpublic MetricDescriptor.Type getType()
.opencensus.proto.metrics.v1.MetricDescriptor.Type type = 4;getType in interface MetricDescriptorOrBuilderpublic List<LabelKey> getLabelKeysList()
The label keys associated with the metric descriptor.
repeated .opencensus.proto.metrics.v1.LabelKey label_keys = 5;getLabelKeysList in interface MetricDescriptorOrBuilderpublic List<? extends LabelKeyOrBuilder> getLabelKeysOrBuilderList()
The label keys associated with the metric descriptor.
repeated .opencensus.proto.metrics.v1.LabelKey label_keys = 5;getLabelKeysOrBuilderList in interface MetricDescriptorOrBuilderpublic int getLabelKeysCount()
The label keys associated with the metric descriptor.
repeated .opencensus.proto.metrics.v1.LabelKey label_keys = 5;getLabelKeysCount in interface MetricDescriptorOrBuilderpublic LabelKey getLabelKeys(int index)
The label keys associated with the metric descriptor.
repeated .opencensus.proto.metrics.v1.LabelKey label_keys = 5;getLabelKeys in interface MetricDescriptorOrBuilderpublic LabelKeyOrBuilder getLabelKeysOrBuilder(int index)
The label keys associated with the metric descriptor.
repeated .opencensus.proto.metrics.v1.LabelKey label_keys = 5;getLabelKeysOrBuilder in interface MetricDescriptorOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MetricDescriptor parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricDescriptor parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricDescriptor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricDescriptor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricDescriptor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricDescriptor parseFrom(InputStream input) throws IOException
IOExceptionpublic static MetricDescriptor parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MetricDescriptor parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static MetricDescriptor parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MetricDescriptor parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static MetricDescriptor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic MetricDescriptor.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MetricDescriptor.Builder newBuilder()
public static MetricDescriptor.Builder newBuilder(MetricDescriptor prototype)
public MetricDescriptor.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MetricDescriptor.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MetricDescriptor getDefaultInstance()
public static com.google.protobuf.Parser<MetricDescriptor> parser()
public com.google.protobuf.Parser<MetricDescriptor> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MetricDescriptor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder