public final class UnionRuleBuilderBuilder for creating a Union (OR) GC Rule.
This class ensures type safety when constructing composite rules, preventing the misuse of the standard builder's ambiguous setters.
Constructors
UnionRuleBuilder()
public UnionRuleBuilder()Methods
add(GcRule rule)
public UnionRuleBuilder add(GcRule rule)Adds a rule to the union.
| Parameter | |
|---|---|
| Name | Description |
rule |
com.google.bigtable.admin.v2.GcRuleThe rule to add to the union. |
| Returns | |
|---|---|
| Type | Description |
UnionRuleBuilder |
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. |