@SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 16: return internalGetUserLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } }
public int getUserLabelsCount() { return internalGetUserLabels().getMap().size(); } /**
/** * * * <pre> * User-supplied key/value data to be used for organizing and * identifying the `AlertPolicy` objects. * The field can contain up to 64 entries. Each key and value is limited to * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and * values can contain only lowercase letters, numerals, underscores, and * dashes. Keys must begin with a letter. * </pre> * * <code>map<string, string> user_labels = 16;</code> */ public java.util.Map<java.lang.String, java.lang.String> getUserLabelsMap() { return internalGetUserLabels().getMap(); } /**
/** * * * <pre> * User-supplied key/value data to be used for organizing and * identifying the `AlertPolicy` objects. * The field can contain up to 64 entries. Each key and value is limited to * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and * values can contain only lowercase letters, numerals, underscores, and * dashes. Keys must begin with a letter. * </pre> * * <code>map<string, string> user_labels = 16;</code> */ public boolean containsUserLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetUserLabels().getMap().containsKey(key); } /** Use {@link #getUserLabelsMap()} instead. */
/** * * * <pre> * User-supplied key/value data to be used for organizing and * identifying the `AlertPolicy` objects. * The field can contain up to 64 entries. Each key and value is limited to * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and * values can contain only lowercase letters, numerals, underscores, and * dashes. Keys must begin with a letter. * </pre> * * <code>map<string, string> user_labels = 16;</code> */ public java.lang.String getUserLabelsOrDefault( 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 = internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * * * <pre> * User-supplied key/value data to be used for organizing and * identifying the `AlertPolicy` objects. * The field can contain up to 64 entries. Each key and value is limited to * 63 Unicode characters or 128 bytes, whichever is smaller. Labels and * values can contain only lowercase letters, numerals, underscores, and * dashes. Keys must begin with a letter. * </pre> * * <code>map<string, string> user_labels = 16;</code> */ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 16); if (enabled_ != null) { output.writeMessage(17, getEnabled());
internalGetUserLabels().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> userLabels__ = UserLabelsDefaultEntryHolder.defaultEntry
hash = (53 * hash) + getDocumentation().hashCode(); if (!internalGetUserLabels().getMap().isEmpty()) { hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetUserLabels().hashCode();
result = result && getDocumentation().equals(other.getDocumentation()); result = result && internalGetUserLabels().equals(other.internalGetUserLabels()); result = result && getConditionsList().equals(other.getConditionsList()); result = result && combiner_ == other.combiner_;