@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableFields(); default: throw new RuntimeException("Invalid map field number: " + number); } }
/** * * * <pre> * The map's fields. * The map keys represent field names. Field names matching the regular * expression `__.*__` are reserved. Reserved field names are forbidden except * in certain documented contexts. The map keys, represented as UTF-8, must * not exceed 1,500 bytes and cannot be empty. * </pre> * * <code>map<string, .google.firestore.v1beta1.Value> fields = 1;</code> */ public Builder putFields(java.lang.String key, com.google.firestore.v1beta1.Value value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableFields().getMutableMap().put(key, value); return this; } /**
/** * * * <pre> * The map's fields. * The map keys represent field names. Field names matching the regular * expression `__.*__` are reserved. Reserved field names are forbidden except * in certain documented contexts. The map keys, represented as UTF-8, must * not exceed 1,500 bytes and cannot be empty. * </pre> * * <code>map<string, .google.firestore.v1beta1.Value> fields = 1;</code> */ public Builder removeFields(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableFields().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */
/** * * * <pre> * The map's fields. * The map keys represent field names. Field names matching the regular * expression `__.*__` are reserved. Reserved field names are forbidden except * in certain documented contexts. The map keys, represented as UTF-8, must * not exceed 1,500 bytes and cannot be empty. * </pre> * * <code>map<string, .google.firestore.v1beta1.Value> fields = 1;</code> */ public Builder putAllFields( java.util.Map<java.lang.String, com.google.firestore.v1beta1.Value> values) { internalGetMutableFields().getMutableMap().putAll(values); return this; }
public Builder clearFields() { internalGetMutableFields().getMutableMap().clear(); return this; } /**
public Builder mergeFrom(com.google.firestore.v1beta1.MapValue other) { if (other == com.google.firestore.v1beta1.MapValue.getDefaultInstance()) return this; internalGetMutableFields().mergeFrom(other.internalGetFields()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, com.google.firestore.v1beta1.Value> getMutableFields() { return internalGetMutableFields().getMutableMap(); } /**
@java.lang.Override public Builder clear() { super.clear(); internalGetMutableFields().clear(); return this; }