Class ImmutableProto.Protoclass
- java.lang.Object
-
- org.immutables.value.processor.meta.Proto.Diagnosable
-
- org.immutables.value.processor.meta.Proto.Protoclass
-
- org.immutables.value.processor.meta.ImmutableProto.Protoclass
-
- Enclosing class:
- ImmutableProto
@Immutable public static final class ImmutableProto.Protoclass extends Proto.Protoclass
Immutable implementation ofProto.Protoclass.Use the builder to create immutable instances:
ImmutableProto.Protoclass.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableProto.Protoclass.BuilderBuilds instances of typeProtoclass.private classImmutableProto.Protoclass.InitShim-
Nested classes/interfaces inherited from class org.immutables.value.processor.meta.Proto.Protoclass
Proto.Protoclass.Kind
-
-
Field Summary
Fields Modifier and Type Field Description private Constitutionconstitutionprivate static longCONSTITUTION_LAZY_INIT_BITprivate com.google.common.base.Optional<CriteriaMirror>criteriaprivate static longCRITERIA_LAZY_INIT_BITprivate static longCRITERIA_REPOSITORY_LAZY_INIT_BITprivate com.google.common.base.Optional<CriteriaRepositoryMirror>criteriaRepositoryprivate static longDATATYPE_MARKER_LAZY_INIT_BITprivate static longDATATYPE_PROVIDER_LAZY_INIT_BITprivate com.google.common.base.Optional<DataMirror>datatypeMarkerprivate com.google.common.base.Optional<Proto.AbstractDeclaring>datatypeProviderprivate com.google.common.base.Optional<Proto.DeclaringType>declaringTypeprivate com.google.common.base.Optional<java.lang.String[]>depluralizeprivate static longDEPLURALIZE_LAZY_INIT_BITprivate javax.lang.model.element.Elementelementprivate com.google.common.base.Optional<Proto.DeclaringType>enclosingOfprivate static longENCODING_INSTANTIATOR_LAZY_INIT_BITprivate InstantiatorencodingInstantiatorprivate Proto.Environmentenvironmentprivate ValueImmutableInfofeaturesprivate static longFEATURES_LAZY_INIT_BITprivate static longGSON_TYPE_ADAPTERS_LAZY_INIT_BITprivate com.google.common.base.Optional<TypeAdaptersMirror>gsonTypeAdaptersprivate ImmutableProto.Protoclass.InitShiminitShimprivate static longIS_JACKSON_DESERIALIZED_LAZY_INIT_BITprivate static longIS_JACKSON_JSON_TYPE_INFO_LAZY_INIT_BITprivate static longIS_JACKSON_SERIALIZED_LAZY_INIT_BITprivate static longIS_SERIAL_STRUCTURAL_LAZY_INIT_BITprivate booleanisJacksonDeserializedprivate booleanisJacksonJsonTypeInfoprivate booleanisJacksonSerializedprivate booleanisSerialStructuralprivate Proto.Protoclass.Kindkindprivate longlazyInitBitmapprivate java.lang.Stringnameprivate static longOK_JSON_TYPE_ADAPTERS_LAZY_INIT_BITprivate static longOK_TYPE_ADAPTERS_PROVIDER_LAZY_INIT_BITprivate com.google.common.base.Optional<OkTypeAdaptersMirror>okJsonTypeAdaptersprivate com.google.common.base.Optional<Proto.AbstractDeclaring>okTypeAdaptersProviderprivate Proto.DeclaringPackagepackageOfprivate com.google.common.base.Optional<RepositoryMirror>repositoryprivate static longREPOSITORY_LAZY_INIT_BITprivate static longSERIAL_VERSION_LAZY_INIT_BITprivate com.google.common.base.Optional<java.lang.Long>serialVersionprivate java.lang.StringsimpleNameprivate javax.lang.model.element.ElementsourceElementprivate static byteSTAGE_INITIALIZEDprivate static byteSTAGE_INITIALIZINGprivate static byteSTAGE_UNINITIALIZEDprivate Stylesstylesprivate static longSTYLES_LAZY_INIT_BITprivate static longTYPE_ADAPTERS_PROVIDER_LAZY_INIT_BITprivate com.google.common.base.Optional<Proto.AbstractDeclaring>typeAdaptersProviderprivate Visibilityvisibility
-
Constructor Summary
Constructors Modifier Constructor Description privateProtoclass(Proto.Environment environment, javax.lang.model.element.Element sourceElement, Proto.DeclaringPackage packageOf, com.google.common.base.Optional<Proto.DeclaringType> declaringType, Proto.Protoclass.Kind kind)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableProto.Protoclass.Builderbuilder()Creates a builder forProtoclass.Constitutionconstitution()static ImmutableProto.ProtoclasscopyOf(Proto.Protoclass instance)Creates an immutable copy of aProto.Protoclassvalue.com.google.common.base.Optional<CriteriaMirror>criteria()com.google.common.base.Optional<CriteriaRepositoryMirror>criteriaRepository()com.google.common.base.Optional<DataMirror>datatypeMarker()com.google.common.base.Optional<Proto.AbstractDeclaring>datatypeProvider()com.google.common.base.Optional<Proto.DeclaringType>declaringType()The class, which is annotated to be a@Value.Immutable,@Value.Includeor@Value.Enclosing.com.google.common.base.Optional<java.lang.String[]>depluralize()javax.lang.model.element.Elementelement()Element used mostly for error reporting, real model provided bysourceElement().com.google.common.base.Optional<Proto.DeclaringType>enclosingOf()InstantiatorencodingInstantiator()(package private) Proto.Environmentenvironment()booleanequals(java.lang.Object another)This instance is equal to all instances ofProtoclassthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableProto.Protoclass another)ValueImmutableInfofeatures()com.google.common.base.Optional<TypeAdaptersMirror>gsonTypeAdapters()inthashCode()Computes a hash code from attributes:name,packageOf,declaringType,kind,visibility.booleanisJacksonDeserialized()booleanisJacksonJsonTypeInfo()booleanisJacksonSerialized()booleanisSerialStructural()Proto.Protoclass.Kindkind()Kind of protoclass declaration, it specifies how exactly the protoclass was declared.java.lang.Stringname()com.google.common.base.Optional<OkTypeAdaptersMirror>okJsonTypeAdapters()com.google.common.base.Optional<Proto.AbstractDeclaring>okTypeAdaptersProvider()Proto.DeclaringPackagepackageOf()Declaring package that defines value type (usually by import).com.google.common.base.Optional<RepositoryMirror>repository()com.google.common.base.Optional<java.lang.Long>serialVersion()java.lang.StringsimpleName()javax.lang.model.element.ElementsourceElement()Source type elements stores type element which is used as a source of value type model.Stylesstyles()java.lang.StringtoString()Prints the immutable valueProtoclasswith attribute values.com.google.common.base.Optional<Proto.AbstractDeclaring>typeAdaptersProvider()Visibilityvisibility()ImmutableProto.ProtoclasswithDeclaringType(com.google.common.base.Optional<? extends Proto.DeclaringType> optional)Copy the current immutable object by setting an optional value for thedeclaringTypeattribute.ImmutableProto.ProtoclasswithDeclaringType(Proto.DeclaringType value)Copy the current immutable object by setting a present value for the optionaldeclaringTypeattribute.ImmutableProto.ProtoclasswithEnvironment(Proto.Environment value)Copy the current immutable object by setting a value for theenvironmentattribute.ImmutableProto.ProtoclasswithKind(Proto.Protoclass.Kind value)Copy the current immutable object by setting a value for thekindattribute.ImmutableProto.ProtoclasswithPackageOf(Proto.DeclaringPackage value)Copy the current immutable object by setting a value for thepackageOfattribute.ImmutableProto.ProtoclasswithSourceElement(javax.lang.model.element.Element value)Copy the current immutable object by setting a value for thesourceElementattribute.-
Methods inherited from class org.immutables.value.processor.meta.Proto.Protoclass
createTypeNames, debug, declaringVisibility, getDebugLines, getTransform, getTreesInclude, getVisit, isAst, isJacksonProperties, isTransformer, isVisitor
-
Methods inherited from class org.immutables.value.processor.meta.Proto.Diagnosable
processing, report
-
-
-
-
Field Detail
-
environment
private final Proto.Environment environment
-
simpleName
private final transient java.lang.String simpleName
-
name
private final transient java.lang.String name
-
sourceElement
private final javax.lang.model.element.Element sourceElement
-
packageOf
private final Proto.DeclaringPackage packageOf
-
declaringType
private final com.google.common.base.Optional<Proto.DeclaringType> declaringType
-
kind
private final Proto.Protoclass.Kind kind
-
visibility
private final transient Visibility visibility
-
element
private final transient javax.lang.model.element.Element element
-
enclosingOf
private final transient com.google.common.base.Optional<Proto.DeclaringType> enclosingOf
-
STAGE_INITIALIZING
private static final byte STAGE_INITIALIZING
- See Also:
- Constant Field Values
-
STAGE_UNINITIALIZED
private static final byte STAGE_UNINITIALIZED
- See Also:
- Constant Field Values
-
STAGE_INITIALIZED
private static final byte STAGE_INITIALIZED
- See Also:
- Constant Field Values
-
initShim
private transient volatile ImmutableProto.Protoclass.InitShim initShim
-
lazyInitBitmap
private transient volatile long lazyInitBitmap
-
CRITERIA_LAZY_INIT_BIT
private static final long CRITERIA_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
criteria
private transient com.google.common.base.Optional<CriteriaMirror> criteria
-
REPOSITORY_LAZY_INIT_BIT
private static final long REPOSITORY_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
repository
private transient com.google.common.base.Optional<RepositoryMirror> repository
-
CRITERIA_REPOSITORY_LAZY_INIT_BIT
private static final long CRITERIA_REPOSITORY_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
criteriaRepository
private transient com.google.common.base.Optional<CriteriaRepositoryMirror> criteriaRepository
-
GSON_TYPE_ADAPTERS_LAZY_INIT_BIT
private static final long GSON_TYPE_ADAPTERS_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
gsonTypeAdapters
private transient com.google.common.base.Optional<TypeAdaptersMirror> gsonTypeAdapters
-
TYPE_ADAPTERS_PROVIDER_LAZY_INIT_BIT
private static final long TYPE_ADAPTERS_PROVIDER_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
typeAdaptersProvider
private transient com.google.common.base.Optional<Proto.AbstractDeclaring> typeAdaptersProvider
-
OK_JSON_TYPE_ADAPTERS_LAZY_INIT_BIT
private static final long OK_JSON_TYPE_ADAPTERS_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
okJsonTypeAdapters
private transient com.google.common.base.Optional<OkTypeAdaptersMirror> okJsonTypeAdapters
-
OK_TYPE_ADAPTERS_PROVIDER_LAZY_INIT_BIT
private static final long OK_TYPE_ADAPTERS_PROVIDER_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
okTypeAdaptersProvider
private transient com.google.common.base.Optional<Proto.AbstractDeclaring> okTypeAdaptersProvider
-
DATATYPE_MARKER_LAZY_INIT_BIT
private static final long DATATYPE_MARKER_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
datatypeMarker
private transient com.google.common.base.Optional<DataMirror> datatypeMarker
-
DATATYPE_PROVIDER_LAZY_INIT_BIT
private static final long DATATYPE_PROVIDER_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
datatypeProvider
private transient com.google.common.base.Optional<Proto.AbstractDeclaring> datatypeProvider
-
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
-
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
-
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
-
FEATURES_LAZY_INIT_BIT
private static final long FEATURES_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
features
private transient ValueImmutableInfo features
-
STYLES_LAZY_INIT_BIT
private static final long STYLES_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
styles
private transient Styles styles
-
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
-
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
-
CONSTITUTION_LAZY_INIT_BIT
private static final long CONSTITUTION_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
constitution
private transient Constitution constitution
-
ENCODING_INSTANTIATOR_LAZY_INIT_BIT
private static final long ENCODING_INSTANTIATOR_LAZY_INIT_BIT
- See Also:
- Constant Field Values
-
encodingInstantiator
private transient Instantiator encodingInstantiator
-
-
Constructor Detail
-
Protoclass
private Protoclass(Proto.Environment environment, javax.lang.model.element.Element sourceElement, Proto.DeclaringPackage packageOf, com.google.common.base.Optional<Proto.DeclaringType> declaringType, Proto.Protoclass.Kind kind)
-
-
Method Detail
-
environment
Proto.Environment environment()
- Specified by:
environmentin classProto.Diagnosable- Returns:
- The value of the
environmentattribute
-
simpleName
public java.lang.String simpleName()
- Overrides:
simpleNamein classProto.Diagnosable- Returns:
- The computed-at-construction value of the
simpleNameattribute
-
name
public java.lang.String name()
- Overrides:
namein classProto.Protoclass- Returns:
- The computed-at-construction value of the
nameattribute
-
sourceElement
public javax.lang.model.element.Element sourceElement()
Source type elements stores type element which is used as a source of value type model. It is the annotated class for@Value.Immutableor type referenced in@Value.Include.- Specified by:
sourceElementin classProto.Protoclass- Returns:
- source element
-
packageOf
public Proto.DeclaringPackage packageOf()
Declaring package that defines value type (usually by import). Or the package in whichdeclaringType()resides.- Specified by:
packageOfin classProto.Protoclass- Returns:
- declaring package
-
declaringType
public com.google.common.base.Optional<Proto.DeclaringType> declaringType()
The class, which is annotated to be a@Value.Immutable,@Value.Includeor@Value.Enclosing.- Specified by:
declaringTypein classProto.Protoclass- Returns:
- declaring type
-
kind
public Proto.Protoclass.Kind kind()
Kind of protoclass declaration, it specifies how exactly the protoclass was declared.- Specified by:
kindin classProto.Protoclass- Returns:
- definition kind
-
visibility
public Visibility visibility()
- Overrides:
visibilityin classProto.Protoclass- Returns:
- The computed-at-construction value of the
visibilityattribute
-
element
public javax.lang.model.element.Element element()
Element used mostly for error reporting, real model provided bysourceElement().- Overrides:
elementin classProto.Protoclass
-
enclosingOf
public com.google.common.base.Optional<Proto.DeclaringType> enclosingOf()
- Overrides:
enclosingOfin classProto.Protoclass- Returns:
- The computed-at-construction value of the
enclosingOfattribute
-
withEnvironment
public final ImmutableProto.Protoclass withEnvironment(Proto.Environment value)
Copy the current immutable object by setting a value for theenvironmentattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for environment- Returns:
- A modified copy of the
thisobject
-
withSourceElement
public final ImmutableProto.Protoclass withSourceElement(javax.lang.model.element.Element value)
Copy the current immutable object by setting a value for thesourceElementattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceElement- Returns:
- A modified copy of the
thisobject
-
withPackageOf
public final ImmutableProto.Protoclass withPackageOf(Proto.DeclaringPackage value)
Copy the current immutable object by setting a value for thepackageOfattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for packageOf- Returns:
- A modified copy of the
thisobject
-
withDeclaringType
public final ImmutableProto.Protoclass withDeclaringType(Proto.DeclaringType value)
Copy the current immutable object by setting a present value for the optionaldeclaringTypeattribute.- Parameters:
value- The value for declaringType- Returns:
- A modified copy of
thisobject
-
withDeclaringType
public final ImmutableProto.Protoclass withDeclaringType(com.google.common.base.Optional<? extends Proto.DeclaringType> optional)
Copy the current immutable object by setting an optional value for thedeclaringTypeattribute. A shallow reference equality check on the optional value is used to prevent copying of the same value by returningthis.- Parameters:
optional- A value for declaringType- Returns:
- A modified copy of
thisobject
-
withKind
public final ImmutableProto.Protoclass withKind(Proto.Protoclass.Kind value)
Copy the current immutable object by setting a value for thekindattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for kind- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofProtoclassthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableProto.Protoclass another)
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,packageOf,declaringType,kind,visibility.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueProtoclasswith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
criteria
public com.google.common.base.Optional<CriteriaMirror> criteria()
Returns a lazily initialized value of the
criteriaattribute. 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:
criteriain classProto.Protoclass- Returns:
- A lazily initialized value of the
criteriaattribute
-
repository
public com.google.common.base.Optional<RepositoryMirror> repository()
Returns a lazily initialized value of the
repositoryattribute. 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:
repositoryin classProto.Protoclass- Returns:
- A lazily initialized value of the
repositoryattribute
-
criteriaRepository
public com.google.common.base.Optional<CriteriaRepositoryMirror> criteriaRepository()
Returns a lazily initialized value of the
criteriaRepositoryattribute. 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:
criteriaRepositoryin classProto.Protoclass- Returns:
- A lazily initialized value of the
criteriaRepositoryattribute
-
gsonTypeAdapters
public com.google.common.base.Optional<TypeAdaptersMirror> gsonTypeAdapters()
Returns a lazily initialized value of the
gsonTypeAdaptersattribute. 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:
gsonTypeAdaptersin classProto.Protoclass- Returns:
- A lazily initialized value of the
gsonTypeAdaptersattribute
-
typeAdaptersProvider
public com.google.common.base.Optional<Proto.AbstractDeclaring> typeAdaptersProvider()
Returns a lazily initialized value of the
typeAdaptersProviderattribute. 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:
typeAdaptersProviderin classProto.Protoclass- Returns:
- A lazily initialized value of the
typeAdaptersProviderattribute
-
okJsonTypeAdapters
public com.google.common.base.Optional<OkTypeAdaptersMirror> okJsonTypeAdapters()
Returns a lazily initialized value of the
okJsonTypeAdaptersattribute. 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:
okJsonTypeAdaptersin classProto.Protoclass- Returns:
- A lazily initialized value of the
okJsonTypeAdaptersattribute
-
okTypeAdaptersProvider
public com.google.common.base.Optional<Proto.AbstractDeclaring> okTypeAdaptersProvider()
Returns a lazily initialized value of the
okTypeAdaptersProviderattribute. 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:
okTypeAdaptersProviderin classProto.Protoclass- Returns:
- A lazily initialized value of the
okTypeAdaptersProviderattribute
-
datatypeMarker
public com.google.common.base.Optional<DataMirror> datatypeMarker()
Returns a lazily initialized value of the
datatypeMarkerattribute. 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:
datatypeMarkerin classProto.Protoclass- Returns:
- A lazily initialized value of the
datatypeMarkerattribute
-
datatypeProvider
public com.google.common.base.Optional<Proto.AbstractDeclaring> datatypeProvider()
Returns a lazily initialized value of the
datatypeProviderattribute. 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:
datatypeProviderin classProto.Protoclass- Returns:
- A lazily initialized value of the
datatypeProviderattribute
-
serialVersion
public com.google.common.base.Optional<java.lang.Long> serialVersion()
Returns a lazily initialized value of the
serialVersionattribute. 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:
serialVersionin classProto.Protoclass- Returns:
- A lazily initialized value of the
serialVersionattribute
-
isSerialStructural
public boolean isSerialStructural()
Returns a lazily initialized value of the
isSerialStructuralattribute. 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:
isSerialStructuralin classProto.Protoclass- Returns:
- A lazily initialized value of the
isSerialStructuralattribute
-
isJacksonSerialized
public boolean isJacksonSerialized()
Returns a lazily initialized value of the
isJacksonSerializedattribute. 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:
isJacksonSerializedin classProto.Protoclass- Returns:
- A lazily initialized value of the
isJacksonSerializedattribute
-
isJacksonDeserialized
public boolean isJacksonDeserialized()
Returns a lazily initialized value of the
isJacksonDeserializedattribute. 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:
isJacksonDeserializedin classProto.Protoclass- Returns:
- A lazily initialized value of the
isJacksonDeserializedattribute
-
features
public ValueImmutableInfo features()
Returns a lazily initialized value of the
featuresattribute. 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:
featuresin classProto.Protoclass- Returns:
- A lazily initialized value of the
featuresattribute
-
styles
public Styles styles()
Returns a lazily initialized value of the
stylesattribute. 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:
stylesin classProto.Protoclass- Returns:
- A lazily initialized value of the
stylesattribute
-
depluralize
public com.google.common.base.Optional<java.lang.String[]> depluralize()
Returns a lazily initialized value of the
depluralizeattribute. 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:
depluralizein classProto.Protoclass- Returns:
- A lazily initialized value of the
depluralizeattribute
-
isJacksonJsonTypeInfo
public boolean isJacksonJsonTypeInfo()
Returns a lazily initialized value of the
isJacksonJsonTypeInfoattribute. 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:
isJacksonJsonTypeInfoin classProto.Protoclass- Returns:
- A lazily initialized value of the
isJacksonJsonTypeInfoattribute
-
constitution
public Constitution constitution()
Returns a lazily initialized value of the
constitutionattribute. 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:
constitutionin classProto.Protoclass- Returns:
- A lazily initialized value of the
constitutionattribute
-
encodingInstantiator
public Instantiator encodingInstantiator()
Returns a lazily initialized value of the
encodingInstantiatorattribute. 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:
encodingInstantiatorin classProto.Protoclass- Returns:
- A lazily initialized value of the
encodingInstantiatorattribute
-
copyOf
public static ImmutableProto.Protoclass copyOf(Proto.Protoclass instance)
Creates an immutable copy of aProto.Protoclassvalue. 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 Protoclass instance
-
builder
public static ImmutableProto.Protoclass.Builder builder()
Creates a builder forProtoclass.ImmutableProto.Protoclass.builder() .environment(org.immutables.value.processor.meta.Proto.Environment) // requiredenvironment.sourceElement(javax.lang.model.element.Element) // requiredsourceElement.packageOf(org.immutables.value.processor.meta.Proto.DeclaringPackage) // requiredpackageOf.declaringType(org.immutables.value.processor.meta.Proto.DeclaringType) // optionaldeclaringType.kind(org.immutables.value.processor.meta.Proto.Protoclass.Kind) // requiredkind.build();- Returns:
- A new Protoclass builder
-
-