Interface LabelOrBuilder

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

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

    Modifier and Type
    Method
    Description
    long
    Index into string table
    long
    int64 num = 3;
    long
    Should only be present when num is present.
    long
    At most one of the following must be present

    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

    • getKey

      long getKey()
       Index into string table
       
      int64 key = 1;
      Returns:
      The key.
    • getStr

      long getStr()
       At most one of the following must be present
       
      int64 str = 2;
      Returns:
      The str.
    • getNum

      long getNum()
      int64 num = 3;
      Returns:
      The num.
    • getNumUnit

      long getNumUnit()
       Should only be present when num is present.
       Specifies the units of num.
       Use arbitrary string (for example, "requests") as a custom count unit.
       If no unit is specified, consumer may apply heuristic to deduce the unit.
       Consumers may also  interpret units like "bytes" and "kilobytes" as memory
       units and units like "seconds" and "nanoseconds" as time units,
       and apply appropriate unit conversions to these.
       
      int64 num_unit = 4;
      Returns:
      The numUnit.