public Builder mergeFrom(com.google.bigtable.admin.v2.CreateAppProfileRequest other) { if (other == com.google.bigtable.admin.v2.CreateAppProfileRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getAppProfileId().isEmpty()) { appProfileId_ = other.appProfileId_; onChanged(); } if (other.hasAppProfile()) { mergeAppProfile(other.getAppProfile()); } if (other.getIgnoreWarnings() != false) { setIgnoreWarnings(other.getIgnoreWarnings()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@Test public void testToProto() { CreateAppProfileRequest wrapper = CreateAppProfileRequest.of("my-instance", "my-profile") .setDescription("my description") .setRoutingPolicy(SingleClusterRoutingPolicy.of("my-cluster", true)) .setIgnoreWarnings(true); assertThat(wrapper.toProto("my-project")) .isEqualTo( com.google.bigtable.admin.v2.CreateAppProfileRequest.newBuilder() .setParent(InstanceName.of("my-project", "my-instance").toString()) .setAppProfileId("my-profile") .setAppProfile( com.google.bigtable.admin.v2.AppProfile.newBuilder() .setDescription("my description") .setSingleClusterRouting( SingleClusterRouting.newBuilder() .setClusterId("my-cluster") .setAllowTransactionalWrites(true))) .setIgnoreWarnings(true) .build()); }
public Builder mergeFrom(com.google.bigtable.admin.v2.CreateAppProfileRequest other) { if (other == com.google.bigtable.admin.v2.CreateAppProfileRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getAppProfileId().isEmpty()) { appProfileId_ = other.appProfileId_; onChanged(); } if (other.hasAppProfile()) { mergeAppProfile(other.getAppProfile()); } if (other.getIgnoreWarnings() != false) { setIgnoreWarnings(other.getIgnoreWarnings()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** Configures if safety warnings should be disabled. */ @SuppressWarnings("WeakerAccess") public CreateAppProfileRequest setIgnoreWarnings(boolean value) { proto.setIgnoreWarnings(value); return this; }
/** Configures if safety warnings should be disabled. */ @SuppressWarnings("WeakerAccess") public CreateAppProfileRequest setIgnoreWarnings(boolean value) { proto.setIgnoreWarnings(value); return this; }