public static interface PubSubConf.Builder<T extends PubSubConf.Builder<T>>
| Modifier and Type | Method and Description |
|---|---|
PubSubConf |
build() |
default <S> S |
get(PubSubConfFieldSpecification<S> field)
Returns the value of the given field.
|
default Object |
get(String fieldName)
Returns the value of the given field.
|
default <S> T |
set(PubSubConfFieldSpecification<S> field,
S value)
Sets the given field to the given value.
|
default T |
set(String fieldName,
Object value)
Sets the given field to the given value.
|
default <S> T |
setAll(PubSubConf.MapKind<S> kind,
S data)
Sets all fields based on the given data.
|
PubSubConfSpecification |
specification()
Returns the specification of this object.
|
PubSubConf build()
default <S> S get(PubSubConfFieldSpecification<S> field)
ClassCastException if this object
doesn't have the field.default Object get(String fieldName)
IllegalArgumentException if the
specification() doesn't have field with the given name.default <S> T set(PubSubConfFieldSpecification<S> field, S value)
PubSubConfFieldSpecification.asRaw() if doing general processing and the generics of
PubSubConfFieldSpecification is not known. Throws ClassCastException if the
field is not valid for the class or the given value is not of correct type (if doing the
asRaw).default T set(String fieldName, Object value)
IllegalArgumentException if the specification does not have a field with the given
name. Throws ClassCastException if the given value cannot be used. Returns itself for
method chaining.default <S> T setAll(PubSubConf.MapKind<S> kind, S data)
PubSubConf.toMap(MapKind) has returned. Returns
itself for method chaining.PubSubConfSpecification specification()
Copyright © 2026. All rights reserved.