Class ImmutableProto.DeclaringPackage

    • Field Detail

      • element

        private final javax.lang.model.element.PackageElement element
      • simpleName

        private final transient java.lang.String simpleName
      • name

        private final transient java.lang.String name
      • lazyInitBitmap

        private transient volatile long lazyInitBitmap
      • include

        private transient com.google.common.base.Optional<IncludeMirror> include
      • BUILDER_INCLUDE_LAZY_INIT_BIT

        private static final long BUILDER_INCLUDE_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • builderInclude

        private transient com.google.common.base.Optional<FIncludeMirror> builderInclude
      • TYPE_ADAPTERS_LAZY_INIT_BIT

        private static final long TYPE_ADAPTERS_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • typeAdapters

        private transient com.google.common.base.Optional<TypeAdaptersMirror> typeAdapters
      • OK_TYPE_ADAPTERS_LAZY_INIT_BIT

        private static final long OK_TYPE_ADAPTERS_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • okTypeAdapters

        private transient com.google.common.base.Optional<OkTypeAdaptersMirror> okTypeAdapters
      • INCLUDED_TYPES_LAZY_INIT_BIT

        private static final long INCLUDED_TYPES_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • includedTypes

        private transient java.util.List<javax.lang.model.element.TypeElement> includedTypes
      • BUILDER_INCLUDED_TYPES_LAZY_INIT_BIT

        private static final long BUILDER_INCLUDED_TYPES_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • builderIncludedTypes

        private transient java.util.List<javax.lang.model.element.TypeElement> builderIncludedTypes
      • META_ANNOTATED_LAZY_INIT_BIT

        private static final long META_ANNOTATED_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • JACKSON_SERIALIZE_MODE_LAZY_INIT_BIT

        private static final long JACKSON_SERIALIZE_MODE_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • IS_JACKSON_DESERIALIZED_ANNOTATED_LAZY_INIT_BIT

        private static final long IS_JACKSON_DESERIALIZED_ANNOTATED_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • isJacksonDeserializedAnnotated

        private transient boolean isJacksonDeserializedAnnotated
      • NAMED_PARENT_PACKAGE_LAZY_INIT_BIT

        private static final long NAMED_PARENT_PACKAGE_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • namedParentPackage

        private transient com.google.common.base.Optional<Proto.DeclaringPackage> namedParentPackage
      • IS_JACKSON_SERIALIZED_LAZY_INIT_BIT

        private static final long IS_JACKSON_SERIALIZED_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • isJacksonSerialized

        private transient boolean isJacksonSerialized
      • IS_JACKSON_DESERIALIZED_LAZY_INIT_BIT

        private static final long IS_JACKSON_DESERIALIZED_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • isJacksonDeserialized

        private transient boolean isJacksonDeserialized
      • IS_JACKSON_JSON_TYPE_INFO_LAZY_INIT_BIT

        private static final long IS_JACKSON_JSON_TYPE_INFO_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • isJacksonJsonTypeInfo

        private transient boolean isJacksonJsonTypeInfo
      • IS_SERIAL_STRUCTURAL_LAZY_INIT_BIT

        private static final long IS_SERIAL_STRUCTURAL_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • isSerialStructural

        private transient boolean isSerialStructural
      • SERIAL_VERSION_LAZY_INIT_BIT

        private static final long SERIAL_VERSION_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • serialVersion

        private transient com.google.common.base.Optional<java.lang.Long> serialVersion
      • style

        private transient com.google.common.base.Optional<StyleInfo> style
      • DEPLURALIZE_LAZY_INIT_BIT

        private static final long DEPLURALIZE_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • depluralize

        private transient com.google.common.base.Optional<java.lang.String[]> depluralize
      • DATATYPE_ENABLED_LAZY_INIT_BIT

        private static final long DATATYPE_ENABLED_LAZY_INIT_BIT
        See Also:
        Constant Field Values
      • datatypeEnabled

        private transient com.google.common.base.Optional<DataMirror> datatypeEnabled
    • Constructor Detail

    • Method Detail

      • element

        public javax.lang.model.element.PackageElement element()
        Description copied from class: Proto.Diagnosable
        Element suitable for reporting as a source of declaration which might causing problems.
        Specified by:
        element in class Proto.DeclaringPackage
        Returns:
        The value of the element attribute
      • simpleName

        public java.lang.String simpleName()
        Overrides:
        simpleName in class Proto.DeclaringPackage
        Returns:
        The computed-at-construction value of the simpleName attribute
      • name

        public java.lang.String name()
        Name is the only equivalence attribute. Basically packages are interned by name.
        Overrides:
        name in class Proto.DeclaringPackage
        Returns:
        package name
      • withEnvironment

        public final ImmutableProto.DeclaringPackage withEnvironment​(Proto.Environment value)
        Copy the current immutable object by setting a value for the environment attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for environment
        Returns:
        A modified copy of the this object
      • withInterner

        public final ImmutableProto.DeclaringPackage withInterner​(Proto.Interning value)
        Copy the current immutable object by setting a value for the interner attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for interner
        Returns:
        A modified copy of the this object
      • withElement

        public final ImmutableProto.DeclaringPackage withElement​(javax.lang.model.element.PackageElement value)
        Copy the current immutable object by setting a value for the element attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for element
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object another)
        This instance is equal to all instances of DeclaringPackage that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: name.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value DeclaringPackage with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • include

        protected com.google.common.base.Optional<IncludeMirror> include()

        Returns a lazily initialized value of the include attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        include in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the include attribute
      • builderInclude

        protected com.google.common.base.Optional<FIncludeMirror> builderInclude()

        Returns a lazily initialized value of the builderInclude attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        builderInclude in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the builderInclude attribute
      • typeAdapters

        public com.google.common.base.Optional<TypeAdaptersMirror> typeAdapters()

        Returns a lazily initialized value of the typeAdapters attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        typeAdapters in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the typeAdapters attribute
      • okTypeAdapters

        public com.google.common.base.Optional<OkTypeAdaptersMirror> okTypeAdapters()

        Returns a lazily initialized value of the okTypeAdapters attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        okTypeAdapters in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the okTypeAdapters attribute
      • includedTypes

        java.util.List<javax.lang.model.element.TypeElement> includedTypes()

        Returns a lazily initialized value of the includedTypes attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        includedTypes in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the includedTypes attribute
      • builderIncludedTypes

        java.util.List<javax.lang.model.element.TypeElement> builderIncludedTypes()

        Returns a lazily initialized value of the builderIncludedTypes attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        builderIncludedTypes in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the builderIncludedTypes attribute
      • metaAnnotated

        java.util.List<Proto.MetaAnnotated> metaAnnotated()

        Returns a lazily initialized value of the metaAnnotated attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        metaAnnotated in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the metaAnnotated attribute
      • jacksonSerializeMode

        public Proto.JacksonMode jacksonSerializeMode()

        Returns a lazily initialized value of the jacksonSerializeMode attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        jacksonSerializeMode in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the jacksonSerializeMode attribute
      • isJacksonDeserializedAnnotated

        public boolean isJacksonDeserializedAnnotated()

        Returns a lazily initialized value of the isJacksonDeserializedAnnotated attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        isJacksonDeserializedAnnotated in class Proto.AbstractDeclaring
        Returns:
        A lazily initialized value of the isJacksonDeserializedAnnotated attribute
      • namedParentPackage

        com.google.common.base.Optional<Proto.DeclaringPackage> namedParentPackage()

        Returns a lazily initialized value of the namedParentPackage attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        namedParentPackage in class Proto.DeclaringPackage
        Returns:
        A lazily initialized value of the namedParentPackage attribute
      • isJacksonSerialized

        public boolean isJacksonSerialized()

        Returns a lazily initialized value of the isJacksonSerialized attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        isJacksonSerialized in class Proto.DeclaringPackage
        Returns:
        A lazily initialized value of the isJacksonSerialized attribute
      • isJacksonDeserialized

        public boolean isJacksonDeserialized()

        Returns a lazily initialized value of the isJacksonDeserialized attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        isJacksonDeserialized in class Proto.DeclaringPackage
        Returns:
        A lazily initialized value of the isJacksonDeserialized attribute
      • isJacksonJsonTypeInfo

        public boolean isJacksonJsonTypeInfo()

        Returns a lazily initialized value of the isJacksonJsonTypeInfo attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        isJacksonJsonTypeInfo in class Proto.DeclaringPackage
        Returns:
        A lazily initialized value of the isJacksonJsonTypeInfo attribute
      • isSerialStructural

        public boolean isSerialStructural()

        Returns a lazily initialized value of the isSerialStructural attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        isSerialStructural in class Proto.DeclaringPackage
        Returns:
        A lazily initialized value of the isSerialStructural attribute
      • serialVersion

        public com.google.common.base.Optional<java.lang.Long> serialVersion()

        Returns a lazily initialized value of the serialVersion attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        serialVersion in class Proto.DeclaringPackage
        Returns:
        A lazily initialized value of the serialVersion attribute
      • style

        public com.google.common.base.Optional<StyleInfo> style()

        Returns a lazily initialized value of the style attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        style in class Proto.DeclaringPackage
        Returns:
        A lazily initialized value of the style attribute
      • depluralize

        public com.google.common.base.Optional<java.lang.String[]> depluralize()

        Returns a lazily initialized value of the depluralize attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        depluralize in class Proto.DeclaringPackage
        Returns:
        A lazily initialized value of the depluralize attribute
      • datatypeEnabled

        public com.google.common.base.Optional<DataMirror> datatypeEnabled()

        Returns a lazily initialized value of the datatypeEnabled attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.

        Overrides:
        datatypeEnabled in class Proto.DeclaringPackage
        Returns:
        A lazily initialized value of the datatypeEnabled attribute
      • copyOf

        public static ImmutableProto.DeclaringPackage copyOf​(Proto.DeclaringPackage instance)
        Creates an immutable copy of a Proto.DeclaringPackage value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable DeclaringPackage instance
      • builder

        public static ImmutableProto.DeclaringPackage.Builder builder()
        Creates a builder for DeclaringPackage.
         ImmutableProto.DeclaringPackage.builder()
            .environment(org.immutables.value.processor.meta.Proto.Environment) // required environment
            .interner(org.immutables.value.processor.meta.Proto.Interning) // required interner
            .element(javax.lang.model.element.PackageElement) // required element
            .build();
         
        Returns:
        A new DeclaringPackage builder