@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } }
/** * * * <pre> * Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and * deployment strategies. They can be used to filter resources and aggregate * metrics. * * Label keys must be between 1 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. * * Label values must be between 0 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. * * No more than 64 labels can be associated with a given resource. * * Keys and values must both be under 128 bytes. * </pre> * * <code>map<string, string> labels = 5;</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> * Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and * deployment strategies. They can be used to filter resources and aggregate * metrics. * * Label keys must be between 1 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. * * Label values must be between 0 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. * * No more than 64 labels can be associated with a given resource. * * Keys and values must both be under 128 bytes. * </pre> * * <code>map<string, string> labels = 5;</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> * Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and * deployment strategies. They can be used to filter resources and aggregate * metrics. * * Label keys must be between 1 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. * * Label values must be between 0 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. * * No more than 64 labels can be associated with a given resource. * * Keys and values must both be under 128 bytes. * </pre> * * <code>map<string, string> labels = 5;</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> * Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and * deployment strategies. They can be used to filter resources and aggregate * metrics. * * Label keys must be between 1 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. * * Label values must be between 0 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. * * No more than 64 labels can be associated with a given resource. * * Keys and values must both be under 128 bytes. * </pre> * * <code>map<string, string> labels = 5;</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; } /**
public Builder mergeFrom(com.google.bigtable.admin.v2.Instance other) { if (other == com.google.bigtable.admin.v2.Instance.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and * deployment strategies. They can be used to filter resources and aggregate * metrics. * * Label keys must be between 1 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. * * Label values must be between 0 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. * * No more than 64 labels can be associated with a given resource. * * Keys and values must both be under 128 bytes. * </pre> * * <code>map<string, string> labels = 5;</code> */ public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { internalGetMutableLabels().getMutableMap().putAll(values); return this; }
@java.lang.Override public Builder clear() { super.clear(); name_ = ""; displayName_ = ""; state_ = 0; type_ = 0; internalGetMutableLabels().clear(); return this; }
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } }
public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } /**
/** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /**
/** * * * <pre> * Labels are a flexible and lightweight mechanism for organizing cloud * resources into groups that reflect a customer's organizational needs and * deployment strategies. They can be used to filter resources and aggregate * metrics. * * Label keys must be between 1 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. * * Label values must be between 0 and 63 characters long and must conform to * the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. * * No more than 64 labels can be associated with a given resource. * * Keys and values must both be under 128 bytes. * </pre> * * <code>map<string, string> labels = 5;</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.bigtable.admin.v2.Instance other) { if (other == com.google.bigtable.admin.v2.Instance.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); 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; } /**
@java.lang.Override public Builder clear() { super.clear(); name_ = ""; displayName_ = ""; state_ = 0; type_ = 0; internalGetMutableLabels().clear(); return this; }