Interface OperationProgress.MetricOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double getDoubleValue()
      For metrics with floating point value.
      long getIntValue()
      For metrics with integer value.
      String getName()
      Required.
      com.google.protobuf.ByteString getNameBytes()
      Required.
      String getStringValue()
      For metrics with custom values (ratios, visual progress, etc.).
      com.google.protobuf.ByteString getStringValueBytes()
      For metrics with custom values (ratios, visual progress, etc.).
      OperationProgress.Metric.ValueCase getValueCase()  
      boolean hasDoubleValue()
      For metrics with floating point value.
      boolean hasIntValue()
      For metrics with integer value.
      boolean hasStringValue()
      For metrics with custom values (ratios, visual progress, etc.).
      • 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 Detail

      • getName

        String getName()
         Required. Metric name, e.g., "nodes total", "percent done".
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Required. Metric name, e.g., "nodes total", "percent done".
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The bytes for name.
      • hasIntValue

        boolean hasIntValue()
         For metrics with integer value.
         
        int64 int_value = 2;
        Returns:
        Whether the intValue field is set.
      • getIntValue

        long getIntValue()
         For metrics with integer value.
         
        int64 int_value = 2;
        Returns:
        The intValue.
      • hasDoubleValue

        boolean hasDoubleValue()
         For metrics with floating point value.
         
        double double_value = 3;
        Returns:
        Whether the doubleValue field is set.
      • getDoubleValue

        double getDoubleValue()
         For metrics with floating point value.
         
        double double_value = 3;
        Returns:
        The doubleValue.
      • hasStringValue

        boolean hasStringValue()
         For metrics with custom values (ratios, visual progress, etc.).
         
        string string_value = 4;
        Returns:
        Whether the stringValue field is set.
      • getStringValue

        String getStringValue()
         For metrics with custom values (ratios, visual progress, etc.).
         
        string string_value = 4;
        Returns:
        The stringValue.
      • getStringValueBytes

        com.google.protobuf.ByteString getStringValueBytes()
         For metrics with custom values (ratios, visual progress, etc.).
         
        string string_value = 4;
        Returns:
        The bytes for stringValue.