@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } }
/** * * * <pre> * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and * managing labels</a>. * </pre> * * <code>map<string, string> labels = 2;</code> */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableLabels().getMutableMap().put(key, value); return this; } /**
/** * * * <pre> * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and * managing labels</a>. * </pre> * * <code>map<string, string> labels = 2;</code> */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */
/** * * * <pre> * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and * managing labels</a>. * </pre> * * <code>map<string, string> labels = 2;</code> */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableLabels().getMutableMap().put(key, value); return this; } /**
/** * * * <pre> * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and * managing labels</a>. * </pre> * * <code>map<string, string> labels = 2;</code> */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */
/** * * * <pre> * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and * managing labels</a>. * </pre> * * <code>map<string, string> labels = 2;</code> */ public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { internalGetMutableLabels().getMutableMap().putAll(values); return this; }
public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other == com.google.pubsub.v1.Topic.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasMessageStoragePolicy()) { mergeMessageStoragePolicy(other.getMessageStoragePolicy()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public Builder clear() { super.clear(); name_ = ""; internalGetMutableLabels().clear(); if (messageStoragePolicyBuilder_ == null) { messageStoragePolicy_ = null; } else { messageStoragePolicy_ = null; messageStoragePolicyBuilder_ = null; } return this; }
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } }
/** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /**
public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } /**
public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other == com.google.pubsub.v1.Topic.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasMessageStoragePolicy()) { mergeMessageStoragePolicy(other.getMessageStoragePolicy()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public Builder clear() { super.clear(); name_ = ""; internalGetMutableLabels().clear(); if (messageStoragePolicyBuilder_ == null) { messageStoragePolicy_ = null; } else { messageStoragePolicy_ = null; messageStoragePolicyBuilder_ = null; } return this; }
/** * * * <pre> * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and * managing labels</a>. * </pre> * * <code>map<string, string> labels = 2;</code> */ public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { internalGetMutableLabels().getMutableMap().putAll(values); return this; }
/** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /**
public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } /**