/** * * * <pre> * Use a single-cluster routing policy. * </pre> * * <code>.google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6; * </code> */ public Builder setSingleClusterRouting( com.google.bigtable.admin.v2.AppProfile.SingleClusterRouting value) { if (singleClusterRoutingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } routingPolicy_ = value; onChanged(); } else { singleClusterRoutingBuilder_.setMessage(value); } routingPolicyCase_ = 6; return this; } /**
/** * * * <pre> * Use a multi-cluster routing policy that may pick any cluster. * </pre> * * <code> * .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5; * </code> */ public Builder setMultiClusterRoutingUseAny( com.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny value) { if (multiClusterRoutingUseAnyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } routingPolicy_ = value; onChanged(); } else { multiClusterRoutingUseAnyBuilder_.setMessage(value); } routingPolicyCase_ = 5; return this; } /**
/** * * * <pre> * Optional long form description of the use case for this AppProfile. * </pre> * * <code>string description = 3;</code> */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; }
routingPolicy_ = value; onChanged(); } else { if (routingPolicyCase_ == 6) {
/** * * * <pre> * Use a multi-cluster routing policy that may pick any cluster. * </pre> * * <code> * .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5; * </code> */ public Builder clearMultiClusterRoutingUseAny() { if (multiClusterRoutingUseAnyBuilder_ == null) { if (routingPolicyCase_ == 5) { routingPolicyCase_ = 0; routingPolicy_ = null; onChanged(); } } else { if (routingPolicyCase_ == 5) { routingPolicyCase_ = 0; routingPolicy_ = null; } multiClusterRoutingUseAnyBuilder_.clear(); } return this; } /**
/** * * * <pre> * Strongly validated etag for optimistic concurrency control. Preserve the * value returned from `GetAppProfile` when calling `UpdateAppProfile` to * fail the request if there has been a modification in the mean time. The * `update_mask` of the request need not include `etag` for this protection * to apply. * See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and * [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more * details. * </pre> * * <code>string etag = 2;</code> */ public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; onChanged(); return this; }
/** * * * <pre> * Use a single-cluster routing policy. * </pre> * * <code>.google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6; * </code> */ public Builder clearSingleClusterRouting() { if (singleClusterRoutingBuilder_ == null) { if (routingPolicyCase_ == 6) { routingPolicyCase_ = 0; routingPolicy_ = null; onChanged(); } } else { if (routingPolicyCase_ == 6) { routingPolicyCase_ = 0; routingPolicy_ = null; } singleClusterRoutingBuilder_.clear(); } return this; } /**
/** * * * <pre> * Strongly validated etag for optimistic concurrency control. Preserve the * value returned from `GetAppProfile` when calling `UpdateAppProfile` to * fail the request if there has been a modification in the mean time. The * `update_mask` of the request need not include `etag` for this protection * to apply. * See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and * [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more * details. * </pre> * * <code>string etag = 2;</code> */ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } etag_ = value; onChanged(); return this; } /**
/** * * * <pre> * Use a multi-cluster routing policy that may pick any cluster. * </pre> * * <code> * .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5; * </code> */ public Builder setMultiClusterRoutingUseAny( com.google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.Builder builderForValue) { if (multiClusterRoutingUseAnyBuilder_ == null) { routingPolicy_ = builderForValue.build(); onChanged(); } else { multiClusterRoutingUseAnyBuilder_.setMessage(builderForValue.build()); } routingPolicyCase_ = 5; return this; } /**
/** * * * <pre> * Use a single-cluster routing policy. * </pre> * * <code>.google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6; * </code> */ public Builder setSingleClusterRouting( com.google.bigtable.admin.v2.AppProfile.SingleClusterRouting.Builder builderForValue) { if (singleClusterRoutingBuilder_ == null) { routingPolicy_ = builderForValue.build(); onChanged(); } else { singleClusterRoutingBuilder_.setMessage(builderForValue.build()); } routingPolicyCase_ = 6; return this; } /**
/** * * * <pre> * (`OutputOnly`) * The unique name of the app profile. Values are of the form * `projects/<project>/instances/<instance>/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * (`OutputOnly`) * The unique name of the app profile. Values are of the form * `projects/<project>/instances/<instance>/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * Strongly validated etag for optimistic concurrency control. Preserve the * value returned from `GetAppProfile` when calling `UpdateAppProfile` to * fail the request if there has been a modification in the mean time. The * `update_mask` of the request need not include `etag` for this protection * to apply. * See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and * [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more * details. * </pre> * * <code>string etag = 2;</code> */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /**
/** * * * <pre> * Optional long form description of the use case for this AppProfile. * </pre> * * <code>string description = 3;</code> */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /**
/** * * * <pre> * (`OutputOnly`) * The unique name of the app profile. Values are of the form * `projects/<project>/instances/<instance>/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * Optional long form description of the use case for this AppProfile. * </pre> * * <code>string description = 3;</code> */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
public Builder clearRoutingPolicy() { routingPolicyCase_ = 0; routingPolicy_ = null; onChanged(); return this; }