Package ai.chalk.protos.chalk.metrics.v4
Class Metric
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
ai.chalk.protos.chalk.metrics.v4.Metric
- All Implemented Interfaces:
MetricOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
Protobuf type
chalk.metrics.v4.Metric- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typechalk.metrics.v4.Metricstatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanmap<string, string> additional_tags = 30 [json_name = "additionalTags"];booleanDeprecated.intmap<string, string> additional_tags = 30 [json_name = "additionalTags"];map<string, string> additional_tags = 30 [json_name = "additionalTags"];getAdditionalTagsOrDefault(String key, String defaultValue) map<string, string> additional_tags = 30 [json_name = "additionalTags"];map<string, string> additional_tags = 30 [json_name = "additionalTags"];static Metricstring deployment_id = 7 [json_name = "deploymentId"];com.google.protobuf.ByteStringstring deployment_id = 7 [json_name = "deploymentId"];static final com.google.protobuf.Descriptors.Descriptorstring environment_id = 2 [json_name = "environmentId"];com.google.protobuf.ByteStringstring environment_id = 2 [json_name = "environmentId"];longgetId()optional because we may not have an id when we're doing the initial publishgetName().chalk.metrics.v4.MetricName name = 5 [json_name = "name"];.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];int.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];int.chalk.metrics.v4.MetricName name = 5 [json_name = "name"];doubledouble numeric = 11 [json_name = "numeric"];com.google.protobuf.Timestampoptional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];com.google.protobuf.TimestampOrBuilderoptional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];com.google.protobuf.Parser<Metric>intstring sketch = 10 [json_name = "sketch"];com.google.protobuf.ByteStringstring sketch = 10 [json_name = "sketch"];string source = 4 [json_name = "source"];com.google.protobuf.ByteStringstring source = 4 [json_name = "source"];optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];getType().chalk.metrics.v4.MetricType type = 6 [json_name = "type"];int.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];inthashCode()booleanhasId()optional because we may not have an id when we're doing the initial publishbooleandouble numeric = 11 [json_name = "numeric"];booleanoptional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];booleanstring sketch = 10 [json_name = "sketch"];booleanoptional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Metric.Builderstatic Metric.BuildernewBuilder(Metric prototype) protected Metric.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static MetricparseDelimitedFrom(InputStream input) static MetricparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricparseFrom(byte[] data) static MetricparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricparseFrom(com.google.protobuf.ByteString data) static MetricparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricparseFrom(com.google.protobuf.CodedInputStream input) static MetricparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricparseFrom(InputStream input) static MetricparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricparseFrom(ByteBuffer data) static MetricparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Metric>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
ENVIRONMENT_ID_FIELD_NUMBER
public static final int ENVIRONMENT_ID_FIELD_NUMBER- See Also:
-
NAMESPACE_FIELD_NUMBER
public static final int NAMESPACE_FIELD_NUMBER- See Also:
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
DEPLOYMENT_ID_FIELD_NUMBER
public static final int DEPLOYMENT_ID_FIELD_NUMBER- See Also:
-
SKETCH_FIELD_NUMBER
public static final int SKETCH_FIELD_NUMBER- See Also:
-
NUMERIC_FIELD_NUMBER
public static final int NUMERIC_FIELD_NUMBER- See Also:
-
STATISTICS_FIELD_NUMBER
public static final int STATISTICS_FIELD_NUMBER- See Also:
-
OBSERVED_AT_FIELD_NUMBER
public static final int OBSERVED_AT_FIELD_NUMBER- See Also:
-
ADDITIONAL_TAGS_FIELD_NUMBER
public static final int ADDITIONAL_TAGS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getValueCase
- Specified by:
getValueCasein interfaceMetricOrBuilder
-
hasId
public boolean hasId()optional because we may not have an id when we're doing the initial publish
optional int64 id = 1 [json_name = "id"];- Specified by:
hasIdin interfaceMetricOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()optional because we may not have an id when we're doing the initial publish
optional int64 id = 1 [json_name = "id"];- Specified by:
getIdin interfaceMetricOrBuilder- Returns:
- The id.
-
getEnvironmentId
string environment_id = 2 [json_name = "environmentId"];- Specified by:
getEnvironmentIdin interfaceMetricOrBuilder- Returns:
- The environmentId.
-
getEnvironmentIdBytes
public com.google.protobuf.ByteString getEnvironmentIdBytes()string environment_id = 2 [json_name = "environmentId"];- Specified by:
getEnvironmentIdBytesin interfaceMetricOrBuilder- Returns:
- The bytes for environmentId.
-
getNamespaceValue
public int getNamespaceValue().chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];- Specified by:
getNamespaceValuein interfaceMetricOrBuilder- Returns:
- The enum numeric value on the wire for namespace.
-
getNamespace
.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];- Specified by:
getNamespacein interfaceMetricOrBuilder- Returns:
- The namespace.
-
getSource
string source = 4 [json_name = "source"];- Specified by:
getSourcein interfaceMetricOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()string source = 4 [json_name = "source"];- Specified by:
getSourceBytesin interfaceMetricOrBuilder- Returns:
- The bytes for source.
-
getNameValue
public int getNameValue().chalk.metrics.v4.MetricName name = 5 [json_name = "name"];- Specified by:
getNameValuein interfaceMetricOrBuilder- Returns:
- The enum numeric value on the wire for name.
-
getName
.chalk.metrics.v4.MetricName name = 5 [json_name = "name"];- Specified by:
getNamein interfaceMetricOrBuilder- Returns:
- The name.
-
getTypeValue
public int getTypeValue().chalk.metrics.v4.MetricType type = 6 [json_name = "type"];- Specified by:
getTypeValuein interfaceMetricOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];- Specified by:
getTypein interfaceMetricOrBuilder- Returns:
- The type.
-
getDeploymentId
string deployment_id = 7 [json_name = "deploymentId"];- Specified by:
getDeploymentIdin interfaceMetricOrBuilder- Returns:
- The deploymentId.
-
getDeploymentIdBytes
public com.google.protobuf.ByteString getDeploymentIdBytes()string deployment_id = 7 [json_name = "deploymentId"];- Specified by:
getDeploymentIdBytesin interfaceMetricOrBuilder- Returns:
- The bytes for deploymentId.
-
hasSketch
public boolean hasSketch()string sketch = 10 [json_name = "sketch"];- Specified by:
hasSketchin interfaceMetricOrBuilder- Returns:
- Whether the sketch field is set.
-
getSketch
string sketch = 10 [json_name = "sketch"];- Specified by:
getSketchin interfaceMetricOrBuilder- Returns:
- The sketch.
-
getSketchBytes
public com.google.protobuf.ByteString getSketchBytes()string sketch = 10 [json_name = "sketch"];- Specified by:
getSketchBytesin interfaceMetricOrBuilder- Returns:
- The bytes for sketch.
-
hasNumeric
public boolean hasNumeric()double numeric = 11 [json_name = "numeric"];- Specified by:
hasNumericin interfaceMetricOrBuilder- Returns:
- Whether the numeric field is set.
-
getNumeric
public double getNumeric()double numeric = 11 [json_name = "numeric"];- Specified by:
getNumericin interfaceMetricOrBuilder- Returns:
- The numeric.
-
hasStatistics
public boolean hasStatistics()optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];- Specified by:
hasStatisticsin interfaceMetricOrBuilder- Returns:
- Whether the statistics field is set.
-
getStatistics
optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];- Specified by:
getStatisticsin interfaceMetricOrBuilder- Returns:
- The statistics.
-
getStatisticsOrBuilder
optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];- Specified by:
getStatisticsOrBuilderin interfaceMetricOrBuilder
-
hasObservedAt
public boolean hasObservedAt()optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];- Specified by:
hasObservedAtin interfaceMetricOrBuilder- Returns:
- Whether the observedAt field is set.
-
getObservedAt
public com.google.protobuf.Timestamp getObservedAt()optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];- Specified by:
getObservedAtin interfaceMetricOrBuilder- Returns:
- The observedAt.
-
getObservedAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getObservedAtOrBuilder()optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];- Specified by:
getObservedAtOrBuilderin interfaceMetricOrBuilder
-
getAdditionalTagsCount
public int getAdditionalTagsCount()Description copied from interface:MetricOrBuildermap<string, string> additional_tags = 30 [json_name = "additionalTags"];- Specified by:
getAdditionalTagsCountin interfaceMetricOrBuilder
-
containsAdditionalTags
map<string, string> additional_tags = 30 [json_name = "additionalTags"];- Specified by:
containsAdditionalTagsin interfaceMetricOrBuilder
-
getAdditionalTags
Deprecated.UsegetAdditionalTagsMap()instead.- Specified by:
getAdditionalTagsin interfaceMetricOrBuilder
-
getAdditionalTagsMap
map<string, string> additional_tags = 30 [json_name = "additionalTags"];- Specified by:
getAdditionalTagsMapin interfaceMetricOrBuilder
-
getAdditionalTagsOrDefault
map<string, string> additional_tags = 30 [json_name = "additionalTags"];- Specified by:
getAdditionalTagsOrDefaultin interfaceMetricOrBuilder
-
getAdditionalTagsOrThrow
map<string, string> additional_tags = 30 [json_name = "additionalTags"];- Specified by:
getAdditionalTagsOrThrowin interfaceMetricOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- 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
- 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 Metric parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metric parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metric parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metric parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metric parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Metric parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Metric parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Metric parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Metric.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-