nullableFieldStyle
The style to use for fields that are nullable in the Java generated code.
Only valid when targetLanguage is TargetLanguage.JAVA
Acceptable values:
none
: Fields will be generated with the same type whether they are nullable or notapolloOptional
: Fields will be generated as Apollo'scom.apollographql.apollo3.api.Optional<Type>
if nullable, orType
if not.javaOptional
: Fields will be generated as Java'sjava.util.Optional<Type>
if nullable, orType
if not.guavaOptional
: Fields will be generated as Guava'scom.google.common.base.Optional<Type>
if nullable, orType
if not.jetbrainsAnnotations
: Fields will be generated with Jetbrain'sorg.jetbrains.annotations.Nullable
annotation if nullable, ororg.jetbrains.annotations.NotNull
if not.androidAnnotations
: Fields will be generated with Android'sandroidx.annotation.Nullable
annotation if nullable, orandroidx.annotation.NonNull
if not.jsr305Annotations
: Fields will be generated with JSR 305'sjavax.annotation.Nullable
annotation if nullable, orjavax.annotation.Nonnull
if not.
Default: none