Class IntersectionRuleBuilder (2.72.0)

public final class IntersectionRuleBuilder

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

Inheritance

java.lang.Object > IntersectionRuleBuilder

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

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