Class UnionRuleBuilder (2.72.0)

public final class UnionRuleBuilder

Builder 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.

Inheritance

java.lang.Object > UnionRuleBuilder

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.GcRule

The 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.