Interface KeyValueAndUnitOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
KeyValueAndUnit, KeyValueAndUnit.Builder

public interface KeyValueAndUnitOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The index into the string table for the attribute's key.
    int
    The index into the string table for the attribute's unit.
    The value of the attribute.
    The value of the attribute.
    boolean
    The value of the attribute.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • getKeyStrindex

      int getKeyStrindex()
       The index into the string table for the attribute's key.
       
      int32 key_strindex = 1;
      Returns:
      The keyStrindex.
    • hasValue

      boolean hasValue()
       The value of the attribute.
       
      .opentelemetry.proto.common.v1.AnyValue value = 2;
      Returns:
      Whether the value field is set.
    • getValue

      AnyValue getValue()
       The value of the attribute.
       
      .opentelemetry.proto.common.v1.AnyValue value = 2;
      Returns:
      The value.
    • getValueOrBuilder

      AnyValueOrBuilder getValueOrBuilder()
       The value of the attribute.
       
      .opentelemetry.proto.common.v1.AnyValue value = 2;
    • getUnitStrindex

      int getUnitStrindex()
       The index into the string table for the attribute's unit.
       zero indicates implicit (by semconv) or non-defined unit.
       
      int32 unit_strindex = 3;
      Returns:
      The unitStrindex.