// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/monitoring/v3/dropped_labels.proto

package google.monitoring.v3;

public final class DroppedLabelsOuterClass {
  private DroppedLabelsOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface DroppedLabelsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DroppedLabels)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Map from label to its value, for all labels dropped in any aggregation.
     * </pre>
     *
     * <code>map&lt;string, string&gt; label = 1;</code>
     */
    int getLabelCount();
    /**
     * <pre>
     * Map from label to its value, for all labels dropped in any aggregation.
     * </pre>
     *
     * <code>map&lt;string, string&gt; label = 1;</code>
     */
    boolean containsLabel(
        java.lang.String key);
    /**
     * Use {@link #getLabelMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map<java.lang.String, java.lang.String>
    getLabel();
    /**
     * <pre>
     * Map from label to its value, for all labels dropped in any aggregation.
     * </pre>
     *
     * <code>map&lt;string, string&gt; label = 1;</code>
     */
    java.util.Map<java.lang.String, java.lang.String>
    getLabelMap();
    /**
     * <pre>
     * Map from label to its value, for all labels dropped in any aggregation.
     * </pre>
     *
     * <code>map&lt;string, string&gt; label = 1;</code>
     */

    java.lang.String getLabelOrDefault(
        java.lang.String key,
        java.lang.String defaultValue);
    /**
     * <pre>
     * Map from label to its value, for all labels dropped in any aggregation.
     * </pre>
     *
     * <code>map&lt;string, string&gt; label = 1;</code>
     */

    java.lang.String getLabelOrThrow(
        java.lang.String key);
  }
  /**
   * <pre>
   * A set of (label, value) pairs which were dropped during aggregation, attached
   * to google.api.Distribution.Exemplars in google.api.Distribution values during
   * aggregation.
   * These values are used in combination with the label values that remain on the
   * aggregated Distribution timeseries to construct the full label set for the
   * exemplar values.  The resulting full label set may be used to identify the
   * specific task/job/instance (for example) which may be contributing to a
   * long-tail, while allowing the storage savings of only storing aggregated
   * distribution values for a large group.
   * Note that there are no guarantees on ordering of the labels from
   * exemplar-to-exemplar and from distribution-to-distribution in the same
   * stream, and there may be duplicates.  It is up to clients to resolve any
   * ambiguities.
   * </pre>
   *
   * Protobuf type {@code google.monitoring.v3.DroppedLabels}
   */
  public  static final class DroppedLabels extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:google.monitoring.v3.DroppedLabels)
      DroppedLabelsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use DroppedLabels.newBuilder() to construct.
    private DroppedLabels(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private DroppedLabels() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private DroppedLabels(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                label_ = com.google.protobuf.MapField.newMapField(
                    LabelDefaultEntryHolder.defaultEntry);
                mutable_bitField0_ |= 0x00000001;
              }
              com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
              label__ = input.readMessage(
                  LabelDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              label_.getMutableMap().put(
                  label__.getKey(), label__.getValue());
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    @java.lang.Override
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 1:
          return internalGetLabel();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.class, google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.Builder.class);
    }

    public static final int LABEL_FIELD_NUMBER = 1;
    private static final class LabelDefaultEntryHolder {
      static final com.google.protobuf.MapEntry<
          java.lang.String, java.lang.String> defaultEntry =
              com.google.protobuf.MapEntry
              .<java.lang.String, java.lang.String>newDefaultInstance(
                  google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor, 
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "",
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "");
    }
    private com.google.protobuf.MapField<
        java.lang.String, java.lang.String> label_;
    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
    internalGetLabel() {
      if (label_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            LabelDefaultEntryHolder.defaultEntry);
      }
      return label_;
    }

    public int getLabelCount() {
      return internalGetLabel().getMap().size();
    }
    /**
     * <pre>
     * Map from label to its value, for all labels dropped in any aggregation.
     * </pre>
     *
     * <code>map&lt;string, string&gt; label = 1;</code>
     */

    public boolean containsLabel(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      return internalGetLabel().getMap().containsKey(key);
    }
    /**
     * Use {@link #getLabelMap()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getLabel() {
      return getLabelMap();
    }
    /**
     * <pre>
     * Map from label to its value, for all labels dropped in any aggregation.
     * </pre>
     *
     * <code>map&lt;string, string&gt; label = 1;</code>
     */

    public java.util.Map<java.lang.String, java.lang.String> getLabelMap() {
      return internalGetLabel().getMap();
    }
    /**
     * <pre>
     * Map from label to its value, for all labels dropped in any aggregation.
     * </pre>
     *
     * <code>map&lt;string, string&gt; label = 1;</code>
     */

    public java.lang.String getLabelOrDefault(
        java.lang.String key,
        java.lang.String defaultValue) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetLabel().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * Map from label to its value, for all labels dropped in any aggregation.
     * </pre>
     *
     * <code>map&lt;string, string&gt; label = 1;</code>
     */

    public java.lang.String getLabelOrThrow(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetLabel().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      com.google.protobuf.GeneratedMessageV3
        .serializeStringMapTo(
          output,
          internalGetLabel(),
          LabelDefaultEntryHolder.defaultEntry,
          1);
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
           : internalGetLabel().getMap().entrySet()) {
        com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
        label__ = LabelDefaultEntryHolder.defaultEntry.newBuilderForType()
            .setKey(entry.getKey())
            .setValue(entry.getValue())
            .build();
        size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, label__);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels)) {
        return super.equals(obj);
      }
      google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels other = (google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels) obj;

      boolean result = true;
      result = result && internalGetLabel().equals(
          other.internalGetLabel());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (!internalGetLabel().getMap().isEmpty()) {
        hash = (37 * hash) + LABEL_FIELD_NUMBER;
        hash = (53 * hash) + internalGetLabel().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * A set of (label, value) pairs which were dropped during aggregation, attached
     * to google.api.Distribution.Exemplars in google.api.Distribution values during
     * aggregation.
     * These values are used in combination with the label values that remain on the
     * aggregated Distribution timeseries to construct the full label set for the
     * exemplar values.  The resulting full label set may be used to identify the
     * specific task/job/instance (for example) which may be contributing to a
     * long-tail, while allowing the storage savings of only storing aggregated
     * distribution values for a large group.
     * Note that there are no guarantees on ordering of the labels from
     * exemplar-to-exemplar and from distribution-to-distribution in the same
     * stream, and there may be duplicates.  It is up to clients to resolve any
     * ambiguities.
     * </pre>
     *
     * Protobuf type {@code google.monitoring.v3.DroppedLabels}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DroppedLabels)
        google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabelsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_descriptor;
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 1:
            return internalGetLabel();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(
          int number) {
        switch (number) {
          case 1:
            return internalGetMutableLabel();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.class, google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.Builder.class);
      }

      // Construct using google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        internalGetMutableLabel().clear();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_descriptor;
      }

      @java.lang.Override
      public google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels getDefaultInstanceForType() {
        return google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.getDefaultInstance();
      }

      @java.lang.Override
      public google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels build() {
        google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels buildPartial() {
        google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels result = new google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels(this);
        int from_bitField0_ = bitField0_;
        result.label_ = internalGetLabel();
        result.label_.makeImmutable();
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels) {
          return mergeFrom((google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels other) {
        if (other == google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.getDefaultInstance()) return this;
        internalGetMutableLabel().mergeFrom(
            other.internalGetLabel());
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.MapField<
          java.lang.String, java.lang.String> label_;
      private com.google.protobuf.MapField<java.lang.String, java.lang.String>
      internalGetLabel() {
        if (label_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              LabelDefaultEntryHolder.defaultEntry);
        }
        return label_;
      }
      private com.google.protobuf.MapField<java.lang.String, java.lang.String>
      internalGetMutableLabel() {
        onChanged();;
        if (label_ == null) {
          label_ = com.google.protobuf.MapField.newMapField(
              LabelDefaultEntryHolder.defaultEntry);
        }
        if (!label_.isMutable()) {
          label_ = label_.copy();
        }
        return label_;
      }

      public int getLabelCount() {
        return internalGetLabel().getMap().size();
      }
      /**
       * <pre>
       * Map from label to its value, for all labels dropped in any aggregation.
       * </pre>
       *
       * <code>map&lt;string, string&gt; label = 1;</code>
       */

      public boolean containsLabel(
          java.lang.String key) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        return internalGetLabel().getMap().containsKey(key);
      }
      /**
       * Use {@link #getLabelMap()} instead.
       */
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.String> getLabel() {
        return getLabelMap();
      }
      /**
       * <pre>
       * Map from label to its value, for all labels dropped in any aggregation.
       * </pre>
       *
       * <code>map&lt;string, string&gt; label = 1;</code>
       */

      public java.util.Map<java.lang.String, java.lang.String> getLabelMap() {
        return internalGetLabel().getMap();
      }
      /**
       * <pre>
       * Map from label to its value, for all labels dropped in any aggregation.
       * </pre>
       *
       * <code>map&lt;string, string&gt; label = 1;</code>
       */

      public java.lang.String getLabelOrDefault(
          java.lang.String key,
          java.lang.String defaultValue) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        java.util.Map<java.lang.String, java.lang.String> map =
            internalGetLabel().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <pre>
       * Map from label to its value, for all labels dropped in any aggregation.
       * </pre>
       *
       * <code>map&lt;string, string&gt; label = 1;</code>
       */

      public java.lang.String getLabelOrThrow(
          java.lang.String key) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        java.util.Map<java.lang.String, java.lang.String> map =
            internalGetLabel().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }

      public Builder clearLabel() {
        internalGetMutableLabel().getMutableMap()
            .clear();
        return this;
      }
      /**
       * <pre>
       * Map from label to its value, for all labels dropped in any aggregation.
       * </pre>
       *
       * <code>map&lt;string, string&gt; label = 1;</code>
       */

      public Builder removeLabel(
          java.lang.String key) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        internalGetMutableLabel().getMutableMap()
            .remove(key);
        return this;
      }
      /**
       * Use alternate mutation accessors instead.
       */
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.String>
      getMutableLabel() {
        return internalGetMutableLabel().getMutableMap();
      }
      /**
       * <pre>
       * Map from label to its value, for all labels dropped in any aggregation.
       * </pre>
       *
       * <code>map&lt;string, string&gt; label = 1;</code>
       */
      public Builder putLabel(
          java.lang.String key,
          java.lang.String value) {
        if (key == null) { throw new java.lang.NullPointerException(); }
        if (value == null) { throw new java.lang.NullPointerException(); }
        internalGetMutableLabel().getMutableMap()
            .put(key, value);
        return this;
      }
      /**
       * <pre>
       * Map from label to its value, for all labels dropped in any aggregation.
       * </pre>
       *
       * <code>map&lt;string, string&gt; label = 1;</code>
       */

      public Builder putAllLabel(
          java.util.Map<java.lang.String, java.lang.String> values) {
        internalGetMutableLabel().getMutableMap()
            .putAll(values);
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:google.monitoring.v3.DroppedLabels)
    }

    // @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels)
    private static final google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels();
    }

    public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<DroppedLabels>
        PARSER = new com.google.protobuf.AbstractParser<DroppedLabels>() {
      @java.lang.Override
      public DroppedLabels parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new DroppedLabels(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<DroppedLabels> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<DroppedLabels> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_google_monitoring_v3_DroppedLabels_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n)google/monitoring/v3/dropped_labels.pr" +
      "oto\022\024google.monitoring.v3\032\034google/api/an" +
      "notations.proto\"|\n\rDroppedLabels\022=\n\005labe" +
      "l\030\001 \003(\0132..google.monitoring.v3.DroppedLa" +
      "bels.LabelEntry\032,\n\nLabelEntry\022\013\n\003key\030\001 \001" +
      "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B@Z>google.golang.o" +
      "rg/genproto/googleapis/monitoring/v3;mon" +
      "itoringb\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.google.api.AnnotationsProto.getDescriptor(),
        }, assigner);
    internal_static_google_monitoring_v3_DroppedLabels_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_google_monitoring_v3_DroppedLabels_descriptor,
        new java.lang.String[] { "Label", });
    internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor =
      internal_static_google_monitoring_v3_DroppedLabels_descriptor.getNestedTypes().get(0);
    internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor,
        new java.lang.String[] { "Key", "Value", });
    com.google.api.AnnotationsProto.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
