Class OperationProgress.Metric.Builder

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

public static final class OperationProgress.Metric.Builder extends com.google.protobuf.GeneratedMessage.Builder<OperationProgress.Metric.Builder> implements OperationProgress.MetricOrBuilder
 Progress metric is (string, int|float|string) pair.
 
Protobuf type google.container.v1.OperationProgress.Metric
  • 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.Builder<OperationProgress.Metric.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<OperationProgress.Metric.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<OperationProgress.Metric.Builder>
    • getDefaultInstanceForType

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

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

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

      public OperationProgress.Metric.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OperationProgress.Metric.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<OperationProgress.Metric.Builder>
    • mergeFrom

      public OperationProgress.Metric.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OperationProgress.Metric.Builder>
      Throws:
      IOException
    • getValueCase

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

      public OperationProgress.Metric.Builder clearValue()
    • 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.
    • setName

      public OperationProgress.Metric.Builder setName(String value)
       Required. Metric name, e.g., "nodes total", "percent done".
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. Metric name, e.g., "nodes total", "percent done".
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public OperationProgress.Metric.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Metric name, e.g., "nodes total", "percent done".
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setIntValue

      public OperationProgress.Metric.Builder setIntValue(long value)
       For metrics with integer value.
       
      int64 int_value = 2;
      Parameters:
      value - The intValue to set.
      Returns:
      This builder for chaining.
    • clearIntValue

      public OperationProgress.Metric.Builder clearIntValue()
       For metrics with integer value.
       
      int64 int_value = 2;
      Returns:
      This builder for chaining.
    • 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.
    • setDoubleValue

      public OperationProgress.Metric.Builder setDoubleValue(double value)
       For metrics with floating point value.
       
      double double_value = 3;
      Parameters:
      value - The doubleValue to set.
      Returns:
      This builder for chaining.
    • clearDoubleValue

      public OperationProgress.Metric.Builder clearDoubleValue()
       For metrics with floating point value.
       
      double double_value = 3;
      Returns:
      This builder for chaining.
    • 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.
    • setStringValue

      public OperationProgress.Metric.Builder setStringValue(String value)
       For metrics with custom values (ratios, visual progress, etc.).
       
      string string_value = 4;
      Parameters:
      value - The stringValue to set.
      Returns:
      This builder for chaining.
    • clearStringValue

      public OperationProgress.Metric.Builder clearStringValue()
       For metrics with custom values (ratios, visual progress, etc.).
       
      string string_value = 4;
      Returns:
      This builder for chaining.
    • setStringValueBytes

      public OperationProgress.Metric.Builder setStringValueBytes(com.google.protobuf.ByteString value)
       For metrics with custom values (ratios, visual progress, etc.).
       
      string string_value = 4;
      Parameters:
      value - The bytes for stringValue to set.
      Returns:
      This builder for chaining.