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

public final class Metric extends com.google.protobuf.GeneratedMessageV3 implements MetricOrBuilder
Protobuf type chalk.metrics.v4.Metric
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type chalk.metrics.v4.Metric
    static enum 
     

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    boolean
     
    Deprecated.
    int
    map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    map<string, string> additional_tags = 30 [json_name = "additionalTags"];
    static Metric
     
     
    string deployment_id = 7 [json_name = "deploymentId"];
    com.google.protobuf.ByteString
    string deployment_id = 7 [json_name = "deploymentId"];
    static final com.google.protobuf.Descriptors.Descriptor
     
    string environment_id = 2 [json_name = "environmentId"];
    com.google.protobuf.ByteString
    string environment_id = 2 [json_name = "environmentId"];
    long
    optional because we may not have an id when we're doing the initial publish
    .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"];
    double
    double numeric = 11 [json_name = "numeric"];
    com.google.protobuf.Timestamp
    optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];
    com.google.protobuf.TimestampOrBuilder
    optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];
    com.google.protobuf.Parser<Metric>
     
    int
     
    string sketch = 10 [json_name = "sketch"];
    com.google.protobuf.ByteString
    string sketch = 10 [json_name = "sketch"];
    string source = 4 [json_name = "source"];
    com.google.protobuf.ByteString
    string 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"];
    .chalk.metrics.v4.MetricType type = 6 [json_name = "type"];
    int
    .chalk.metrics.v4.MetricType type = 6 [json_name = "type"];
     
    int
     
    boolean
    optional because we may not have an id when we're doing the initial publish
    boolean
    double numeric = 11 [json_name = "numeric"];
    boolean
    optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];
    boolean
    string sketch = 10 [json_name = "sketch"];
    boolean
    optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
    newBuilder(Metric prototype)
     
     
    protected Metric.Builder
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static Metric
     
    static Metric
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Metric
    parseFrom(byte[] data)
     
    static Metric
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Metric
    parseFrom(com.google.protobuf.ByteString data)
     
    static Metric
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Metric
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Metric
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Metric
     
    static Metric
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Metric
     
    static Metric
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Metric>
     
     
    void
    writeTo(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, 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

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getValueCase

      public Metric.ValueCase getValueCase()
      Specified by:
      getValueCase in interface MetricOrBuilder
    • 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:
      hasId in interface MetricOrBuilder
      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:
      getId in interface MetricOrBuilder
      Returns:
      The id.
    • getEnvironmentId

      public String getEnvironmentId()
      string environment_id = 2 [json_name = "environmentId"];
      Specified by:
      getEnvironmentId in interface MetricOrBuilder
      Returns:
      The environmentId.
    • getEnvironmentIdBytes

      public com.google.protobuf.ByteString getEnvironmentIdBytes()
      string environment_id = 2 [json_name = "environmentId"];
      Specified by:
      getEnvironmentIdBytes in interface MetricOrBuilder
      Returns:
      The bytes for environmentId.
    • getNamespaceValue

      public int getNamespaceValue()
      .chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];
      Specified by:
      getNamespaceValue in interface MetricOrBuilder
      Returns:
      The enum numeric value on the wire for namespace.
    • getNamespace

      public MetricNamespace getNamespace()
      .chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];
      Specified by:
      getNamespace in interface MetricOrBuilder
      Returns:
      The namespace.
    • getSource

      public String getSource()
      string source = 4 [json_name = "source"];
      Specified by:
      getSource in interface MetricOrBuilder
      Returns:
      The source.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
      string source = 4 [json_name = "source"];
      Specified by:
      getSourceBytes in interface MetricOrBuilder
      Returns:
      The bytes for source.
    • getNameValue

      public int getNameValue()
      .chalk.metrics.v4.MetricName name = 5 [json_name = "name"];
      Specified by:
      getNameValue in interface MetricOrBuilder
      Returns:
      The enum numeric value on the wire for name.
    • getName

      public MetricName getName()
      .chalk.metrics.v4.MetricName name = 5 [json_name = "name"];
      Specified by:
      getName in interface MetricOrBuilder
      Returns:
      The name.
    • getTypeValue

      public int getTypeValue()
      .chalk.metrics.v4.MetricType type = 6 [json_name = "type"];
      Specified by:
      getTypeValue in interface MetricOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

      public MetricType getType()
      .chalk.metrics.v4.MetricType type = 6 [json_name = "type"];
      Specified by:
      getType in interface MetricOrBuilder
      Returns:
      The type.
    • getDeploymentId

      public String getDeploymentId()
      string deployment_id = 7 [json_name = "deploymentId"];
      Specified by:
      getDeploymentId in interface MetricOrBuilder
      Returns:
      The deploymentId.
    • getDeploymentIdBytes

      public com.google.protobuf.ByteString getDeploymentIdBytes()
      string deployment_id = 7 [json_name = "deploymentId"];
      Specified by:
      getDeploymentIdBytes in interface MetricOrBuilder
      Returns:
      The bytes for deploymentId.
    • hasSketch

      public boolean hasSketch()
      string sketch = 10 [json_name = "sketch"];
      Specified by:
      hasSketch in interface MetricOrBuilder
      Returns:
      Whether the sketch field is set.
    • getSketch

      public String getSketch()
      string sketch = 10 [json_name = "sketch"];
      Specified by:
      getSketch in interface MetricOrBuilder
      Returns:
      The sketch.
    • getSketchBytes

      public com.google.protobuf.ByteString getSketchBytes()
      string sketch = 10 [json_name = "sketch"];
      Specified by:
      getSketchBytes in interface MetricOrBuilder
      Returns:
      The bytes for sketch.
    • hasNumeric

      public boolean hasNumeric()
      double numeric = 11 [json_name = "numeric"];
      Specified by:
      hasNumeric in interface MetricOrBuilder
      Returns:
      Whether the numeric field is set.
    • getNumeric

      public double getNumeric()
      double numeric = 11 [json_name = "numeric"];
      Specified by:
      getNumeric in interface MetricOrBuilder
      Returns:
      The numeric.
    • hasStatistics

      public boolean hasStatistics()
      optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];
      Specified by:
      hasStatistics in interface MetricOrBuilder
      Returns:
      Whether the statistics field is set.
    • getStatistics

      public MetricStatistics getStatistics()
      optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];
      Specified by:
      getStatistics in interface MetricOrBuilder
      Returns:
      The statistics.
    • getStatisticsOrBuilder

      public MetricStatisticsOrBuilder getStatisticsOrBuilder()
      optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];
      Specified by:
      getStatisticsOrBuilder in interface MetricOrBuilder
    • hasObservedAt

      public boolean hasObservedAt()
      optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];
      Specified by:
      hasObservedAt in interface MetricOrBuilder
      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:
      getObservedAt in interface MetricOrBuilder
      Returns:
      The observedAt.
    • getObservedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getObservedAtOrBuilder()
      optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];
      Specified by:
      getObservedAtOrBuilder in interface MetricOrBuilder
    • getAdditionalTagsCount

      public int getAdditionalTagsCount()
      Description copied from interface: MetricOrBuilder
      map<string, string> additional_tags = 30 [json_name = "additionalTags"];
      Specified by:
      getAdditionalTagsCount in interface MetricOrBuilder
    • containsAdditionalTags

      public boolean containsAdditionalTags(String key)
      map<string, string> additional_tags = 30 [json_name = "additionalTags"];
      Specified by:
      containsAdditionalTags in interface MetricOrBuilder
    • getAdditionalTags

      @Deprecated public Map<String,String> getAdditionalTags()
      Deprecated.
      Specified by:
      getAdditionalTags in interface MetricOrBuilder
    • getAdditionalTagsMap

      public Map<String,String> getAdditionalTagsMap()
      map<string, string> additional_tags = 30 [json_name = "additionalTags"];
      Specified by:
      getAdditionalTagsMap in interface MetricOrBuilder
    • getAdditionalTagsOrDefault

      public String getAdditionalTagsOrDefault(String key, String defaultValue)
      map<string, string> additional_tags = 30 [json_name = "additionalTags"];
      Specified by:
      getAdditionalTagsOrDefault in interface MetricOrBuilder
    • getAdditionalTagsOrThrow

      public String getAdditionalTagsOrThrow(String key)
      map<string, string> additional_tags = 30 [json_name = "additionalTags"];
      Specified by:
      getAdditionalTagsOrThrow in interface MetricOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Metric parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Metric parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Metric parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Metric parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Metric parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Metric parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Metric.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Metric.Builder newBuilder()
    • newBuilder

      public static Metric.Builder newBuilder(Metric prototype)
    • toBuilder

      public Metric.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Metric.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Metric getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Metric> parser()
    • getParserForType

      public com.google.protobuf.Parser<Metric> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Metric getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder