Class ImmutableProto.Environment.Builder

  • Enclosing class:
    ImmutableProto.Environment

    @NotThreadSafe
    public static final class ImmutableProto.Environment.Builder
    extends java.lang.Object
    Builds instances of type Environment. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Field Detail

      • initBits

        private long initBits
      • processing

        @Nullable
        private javax.annotation.processing.ProcessingEnvironment processing
      • round

        @Nullable
        private Round round
    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • processing

        public final ImmutableProto.Environment.Builder processing​(javax.annotation.processing.ProcessingEnvironment processing)
        Initializes the value for the processing attribute.
        Parameters:
        processing - The value for processing
        Returns:
        this builder for use in a chained invocation
      • round

        public final ImmutableProto.Environment.Builder round​(Round round)
        Initializes the value for the round attribute.
        Parameters:
        round - The value for round
        Returns:
        this builder for use in a chained invocation
      • build

        public ImmutableProto.Environment build()
        Builds a new Environment.
        Returns:
        An immutable instance of Environment
        Throws:
        java.lang.IllegalStateException - if any required attributes are missing
      • processingIsSet

        private boolean processingIsSet()
      • roundIsSet

        private boolean roundIsSet()
      • checkNotIsSet

        private static void checkNotIsSet​(boolean isSet,
                                          java.lang.String name)
      • checkRequiredAttributes

        private void checkRequiredAttributes()
      • formatRequiredAttributesMessage

        private java.lang.String formatRequiredAttributesMessage()