public final class IntersectionRuleBuilderBuilder for creating an Intersection (AND) GC Rule.
This class ensures type safety when constructing composite rules, preventing the misuse of the standard builder's ambiguous setters.
Constructors
IntersectionRuleBuilder()
public IntersectionRuleBuilder()Methods
add(GcRule rule)
public IntersectionRuleBuilder add(GcRule rule)Adds a rule to the intersection.
| Parameter | |
|---|---|
| Name | Description |
rule |
com.google.bigtable.admin.v2.GcRuleThe rule to add to the intersection. |
| Returns | |
|---|---|
| Type | Description |
IntersectionRuleBuilder |
The builder instance for chaining. |
build()
public GcRule build()Builds the final GcRule proto.
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.GcRule |
The constructed GcRule proto. |