Class Service.MetricDataPoint

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.mlflow.api.proto.Service.MetricDataPoint
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Service.MetricDataPointOrBuilder
Enclosing class:
Service

public static final class Service.MetricDataPoint extends com.google.protobuf.GeneratedMessageV3 implements Service.MetricDataPointOrBuilder
 A single data point with dimension values and metric values.
 
Protobuf type mlflow.MetricDataPoint
See Also:
  • Field Details

  • Method Details

    • newInstance

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

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

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

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

      public boolean hasMetricName()
       Metric name, e.g. "latency"
       
      optional string metric_name = 1;
      Specified by:
      hasMetricName in interface Service.MetricDataPointOrBuilder
      Returns:
      Whether the metricName field is set.
    • getMetricName

      public String getMetricName()
       Metric name, e.g. "latency"
       
      optional string metric_name = 1;
      Specified by:
      getMetricName in interface Service.MetricDataPointOrBuilder
      Returns:
      The metricName.
    • getMetricNameBytes

      public com.google.protobuf.ByteString getMetricNameBytes()
       Metric name, e.g. "latency"
       
      optional string metric_name = 1;
      Specified by:
      getMetricNameBytes in interface Service.MetricDataPointOrBuilder
      Returns:
      The bytes for metricName.
    • getDimensionsCount

      public int getDimensionsCount()
      Description copied from interface: Service.MetricDataPointOrBuilder
       Dimension values for this data point
       Keys correspond to dimensions
       e.g., {"status": "OK"}
       
      map<string, string> dimensions = 2;
      Specified by:
      getDimensionsCount in interface Service.MetricDataPointOrBuilder
    • containsDimensions

      public boolean containsDimensions(String key)
       Dimension values for this data point
       Keys correspond to dimensions
       e.g., {"status": "OK"}
       
      map<string, string> dimensions = 2;
      Specified by:
      containsDimensions in interface Service.MetricDataPointOrBuilder
    • getDimensions

      @Deprecated public Map<String,String> getDimensions()
      Deprecated.
      Use getDimensionsMap() instead.
      Specified by:
      getDimensions in interface Service.MetricDataPointOrBuilder
    • getDimensionsMap

      public Map<String,String> getDimensionsMap()
       Dimension values for this data point
       Keys correspond to dimensions
       e.g., {"status": "OK"}
       
      map<string, string> dimensions = 2;
      Specified by:
      getDimensionsMap in interface Service.MetricDataPointOrBuilder
    • getDimensionsOrDefault

      public String getDimensionsOrDefault(String key, String defaultValue)
       Dimension values for this data point
       Keys correspond to dimensions
       e.g., {"status": "OK"}
       
      map<string, string> dimensions = 2;
      Specified by:
      getDimensionsOrDefault in interface Service.MetricDataPointOrBuilder
    • getDimensionsOrThrow

      public String getDimensionsOrThrow(String key)
       Dimension values for this data point
       Keys correspond to dimensions
       e.g., {"status": "OK"}
       
      map<string, string> dimensions = 2;
      Specified by:
      getDimensionsOrThrow in interface Service.MetricDataPointOrBuilder
    • getValuesCount

      public int getValuesCount()
      Description copied from interface: Service.MetricDataPointOrBuilder
       Metric values for this data point
       Keys are aggregation types
       e.g., {"AVG": 150, "P99": 234.5}
       
      map<string, double> values = 3;
      Specified by:
      getValuesCount in interface Service.MetricDataPointOrBuilder
    • containsValues

      public boolean containsValues(String key)
       Metric values for this data point
       Keys are aggregation types
       e.g., {"AVG": 150, "P99": 234.5}
       
      map<string, double> values = 3;
      Specified by:
      containsValues in interface Service.MetricDataPointOrBuilder
    • getValues

      @Deprecated public Map<String,Double> getValues()
      Deprecated.
      Use getValuesMap() instead.
      Specified by:
      getValues in interface Service.MetricDataPointOrBuilder
    • getValuesMap

      public Map<String,Double> getValuesMap()
       Metric values for this data point
       Keys are aggregation types
       e.g., {"AVG": 150, "P99": 234.5}
       
      map<string, double> values = 3;
      Specified by:
      getValuesMap in interface Service.MetricDataPointOrBuilder
    • getValuesOrDefault

      public double getValuesOrDefault(String key, double defaultValue)
       Metric values for this data point
       Keys are aggregation types
       e.g., {"AVG": 150, "P99": 234.5}
       
      map<string, double> values = 3;
      Specified by:
      getValuesOrDefault in interface Service.MetricDataPointOrBuilder
    • getValuesOrThrow

      public double getValuesOrThrow(String key)
       Metric values for this data point
       Keys are aggregation types
       e.g., {"AVG": 150, "P99": 234.5}
       
      map<string, double> values = 3;
      Specified by:
      getValuesOrThrow in interface Service.MetricDataPointOrBuilder
    • 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 Service.MetricDataPoint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.MetricDataPoint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.MetricDataPoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.MetricDataPoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.MetricDataPoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.MetricDataPoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.MetricDataPoint parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Service.MetricDataPoint parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Service.MetricDataPoint.Builder newBuilder()
    • newBuilder

      public static Service.MetricDataPoint.Builder newBuilder(Service.MetricDataPoint prototype)
    • toBuilder

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

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

      public static Service.MetricDataPoint getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Service.MetricDataPoint> 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 Service.MetricDataPoint getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder