Class OperationProgress.Metric

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.container.v1.OperationProgress.Metric
All Implemented Interfaces:
OperationProgress.MetricOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
OperationProgress

public static final class OperationProgress.Metric extends com.google.protobuf.GeneratedMessage implements OperationProgress.MetricOrBuilder
 Progress metric is (string, int|float|string) pair.
 
Protobuf type google.container.v1.OperationProgress.Metric
See Also:
  • Field Details

  • Method Details

    • getDescriptor

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

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

      public OperationProgress.Metric.ValueCase getValueCase()
      Specified by:
      getValueCase in interface OperationProgress.MetricOrBuilder
    • getName

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

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

      public boolean hasIntValue()
       For metrics with integer value.
       
      int64 int_value = 2;
      Specified by:
      hasIntValue in interface OperationProgress.MetricOrBuilder
      Returns:
      Whether the intValue field is set.
    • getIntValue

      public long getIntValue()
       For metrics with integer value.
       
      int64 int_value = 2;
      Specified by:
      getIntValue in interface OperationProgress.MetricOrBuilder
      Returns:
      The intValue.
    • hasDoubleValue

      public boolean hasDoubleValue()
       For metrics with floating point value.
       
      double double_value = 3;
      Specified by:
      hasDoubleValue in interface OperationProgress.MetricOrBuilder
      Returns:
      Whether the doubleValue field is set.
    • getDoubleValue

      public double getDoubleValue()
       For metrics with floating point value.
       
      double double_value = 3;
      Specified by:
      getDoubleValue in interface OperationProgress.MetricOrBuilder
      Returns:
      The doubleValue.
    • hasStringValue

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

      public String getStringValue()
       For metrics with custom values (ratios, visual progress, etc.).
       
      string string_value = 4;
      Specified by:
      getStringValue in interface OperationProgress.MetricOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
       For metrics with custom values (ratios, visual progress, etc.).
       
      string string_value = 4;
      Specified by:
      getStringValueBytes in interface OperationProgress.MetricOrBuilder
      Returns:
      The bytes for stringValue.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 OperationProgress.Metric parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static OperationProgress.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 OperationProgress.Metric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

      public static OperationProgress.Metric.Builder newBuilder()
    • newBuilder

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

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected OperationProgress.Metric.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static OperationProgress.Metric getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<OperationProgress.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.GeneratedMessage
    • getDefaultInstanceForType

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