public final class UnionRuleBuilder extends Object
This class ensures type safety when constructing composite rules, preventing the misuse of the standard builder's ambiguous setters.
| Constructor and Description |
|---|
UnionRuleBuilder() |
| Modifier and Type | Method and Description |
|---|---|
UnionRuleBuilder |
add(GcRule rule)
Adds a rule to the union.
|
GcRule |
build()
Builds the final GcRule proto.
|
public UnionRuleBuilder add(GcRule rule)
rule - The rule to add to the union.public GcRule build()
Copyright © 2026 Google LLC. All rights reserved.