Class LabelValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LabelValue.Builder>
com.google.monitoring.v3.LabelValue.Builder
All Implemented Interfaces:
LabelValueOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LabelValue

public static final class LabelValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<LabelValue.Builder> implements LabelValueOrBuilder
 A label value.
 
Protobuf type google.monitoring.v3.LabelValue
  • 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<LabelValue.Builder>
    • clear

      public LabelValue.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<LabelValue.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<LabelValue.Builder>
    • getDefaultInstanceForType

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

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

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

      public LabelValue.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<LabelValue.Builder>
    • mergeFrom

      public LabelValue.Builder mergeFrom(LabelValue other)
    • isInitialized

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

      public LabelValue.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<LabelValue.Builder>
      Throws:
      IOException
    • getValueCase

      public LabelValue.ValueCase getValueCase()
      Specified by:
      getValueCase in interface LabelValueOrBuilder
    • clearValue

      public LabelValue.Builder clearValue()
    • hasBoolValue

      public boolean hasBoolValue()
       A bool label value.
       
      bool bool_value = 1;
      Specified by:
      hasBoolValue in interface LabelValueOrBuilder
      Returns:
      Whether the boolValue field is set.
    • getBoolValue

      public boolean getBoolValue()
       A bool label value.
       
      bool bool_value = 1;
      Specified by:
      getBoolValue in interface LabelValueOrBuilder
      Returns:
      The boolValue.
    • setBoolValue

      public LabelValue.Builder setBoolValue(boolean value)
       A bool label value.
       
      bool bool_value = 1;
      Parameters:
      value - The boolValue to set.
      Returns:
      This builder for chaining.
    • clearBoolValue

      public LabelValue.Builder clearBoolValue()
       A bool label value.
       
      bool bool_value = 1;
      Returns:
      This builder for chaining.
    • hasInt64Value

      public boolean hasInt64Value()
       An int64 label value.
       
      int64 int64_value = 2;
      Specified by:
      hasInt64Value in interface LabelValueOrBuilder
      Returns:
      Whether the int64Value field is set.
    • getInt64Value

      public long getInt64Value()
       An int64 label value.
       
      int64 int64_value = 2;
      Specified by:
      getInt64Value in interface LabelValueOrBuilder
      Returns:
      The int64Value.
    • setInt64Value

      public LabelValue.Builder setInt64Value(long value)
       An int64 label value.
       
      int64 int64_value = 2;
      Parameters:
      value - The int64Value to set.
      Returns:
      This builder for chaining.
    • clearInt64Value

      public LabelValue.Builder clearInt64Value()
       An int64 label value.
       
      int64 int64_value = 2;
      Returns:
      This builder for chaining.
    • hasStringValue

      public boolean hasStringValue()
       A string label value.
       
      string string_value = 3;
      Specified by:
      hasStringValue in interface LabelValueOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
       A string label value.
       
      string string_value = 3;
      Specified by:
      getStringValue in interface LabelValueOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
       A string label value.
       
      string string_value = 3;
      Specified by:
      getStringValueBytes in interface LabelValueOrBuilder
      Returns:
      The bytes for stringValue.
    • setStringValue

      public LabelValue.Builder setStringValue(String value)
       A string label value.
       
      string string_value = 3;
      Parameters:
      value - The stringValue to set.
      Returns:
      This builder for chaining.
    • clearStringValue

      public LabelValue.Builder clearStringValue()
       A string label value.
       
      string string_value = 3;
      Returns:
      This builder for chaining.
    • setStringValueBytes

      public LabelValue.Builder setStringValueBytes(com.google.protobuf.ByteString value)
       A string label value.
       
      string string_value = 3;
      Parameters:
      value - The bytes for stringValue to set.
      Returns:
      This builder for chaining.