Package net.morimekta.providence
Class PServiceCallType._Builder
- java.lang.Object
-
- net.morimekta.providence.PEnumBuilder<PServiceCallType>
-
- net.morimekta.providence.PServiceCallType._Builder
-
- All Implemented Interfaces:
PBuilder<PServiceCallType>
- Enclosing class:
- PServiceCallType
public static final class PServiceCallType._Builder extends PEnumBuilder<PServiceCallType>
-
-
Constructor Summary
Constructors Constructor Description _Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PServiceCallType
build()
Build the instance value.PServiceCallType._Builder
setById(int value)
Set the enum entity from integer value as it was defined in the thrift IDL.PServiceCallType._Builder
setByName(java.lang.String name)
Set the enum entity from name as it was written in the thrift IDL.boolean
valid()
Check if the enum builder has been given a valid value.
-
-
-
Method Detail
-
setById
@Nonnull public PServiceCallType._Builder setById(int value)
Description copied from class:PEnumBuilder
Set the enum entity from integer value as it was defined in the thrift IDL.- Specified by:
setById
in classPEnumBuilder<PServiceCallType>
- Parameters:
value
- The value to match.- Returns:
- The builder.
-
setByName
@Nonnull public PServiceCallType._Builder setByName(java.lang.String name)
Description copied from class:PEnumBuilder
Set the enum entity from name as it was written in the thrift IDL.- Specified by:
setByName
in classPEnumBuilder<PServiceCallType>
- Parameters:
name
- The name to match.- Returns:
- The builder.
-
valid
public boolean valid()
Description copied from class:PEnumBuilder
Check if the enum builder has been given a valid value.- Specified by:
valid
in classPEnumBuilder<PServiceCallType>
- Returns:
- True if valid.
-
build
public PServiceCallType build()
Description copied from interface:PBuilder
Build the instance value.- Returns:
- The instance value.
-
-