/** * Replaces the labels associated with the instance. * * @see <a href="https://cloud.google.com/bigtable/docs/creating-managing-labels">For more * details</a> */ @SuppressWarnings("WeakerAccess") public UpdateInstanceRequest setAllLabels(@Nonnull Map<String, String> labels) { Preconditions.checkNotNull(labels, "labels can't be null"); builder.getInstanceBuilder().clearLabels(); builder.getInstanceBuilder().putAllLabels(labels); updateFieldMask(Instance.LABELS_FIELD_NUMBER); return this; }
/** * Replaces the labels associated with the instance. * * @see <a href="https://cloud.google.com/bigtable/docs/creating-managing-labels">For more * details</a> */ @SuppressWarnings("WeakerAccess") public UpdateInstanceRequest setAllLabels(@Nonnull Map<String, String> labels) { Preconditions.checkNotNull(labels, "labels can't be null"); builder.getInstanceBuilder().clearLabels(); builder.getInstanceBuilder().putAllLabels(labels); updateFieldMask(Instance.LABELS_FIELD_NUMBER); return this; }