Class CitationsDelta
-
- All Implemented Interfaces:
public final class CitationsDelta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCitationsDelta.BuilderA builder for CitationsDelta.
public final classCitationsDelta.Citation
-
Method Summary
Modifier and Type Method Description final CitationsDelta.Citationcitation()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("citations_delta")final JsonField<CitationsDelta.Citation>_citation()Returns the raw JSON value of citation. final Map<String, JsonValue>_additionalProperties()final CitationsDelta.BuildertoBuilder()final CitationsDeltavalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CitationsDelta.Builderbuilder()Returns a mutable builder for constructing an instance of CitationsDelta. final static CitationsDeltaof(CitationsDelta.Citation citation)Returns an immutable instance of CitationsDelta with the required citation set to the given value. final static CitationsDeltaof(CitationCharLocation charLocation)Alias for calling of with Citation.ofCharLocation(charLocation).final static CitationsDeltaof(CitationPageLocation pageLocation)Alias for calling of with Citation.ofPageLocation(pageLocation).final static CitationsDeltaof(CitationContentBlockLocation contentBlockLocation)Alias for calling of with Citation.ofContentBlockLocation(contentBlockLocation).final static CitationsDeltaof(CitationsWebSearchResultLocation webSearchResultLocation)Alias for calling of with Citation.ofWebSearchResultLocation(webSearchResultLocation).final static CitationsDeltaof(CitationsSearchResultLocation searchResultLocation)Alias for calling of with Citation.ofSearchResultLocation(searchResultLocation).-
-
Method Detail
-
citation
final CitationsDelta.Citation citation()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("citations_delta")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_citation
final JsonField<CitationsDelta.Citation> _citation()
Returns the raw JSON value of citation.
Unlike citation, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CitationsDelta.Builder toBuilder()
-
validate
final CitationsDelta validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static CitationsDelta.Builder builder()
Returns a mutable builder for constructing an instance of CitationsDelta.
The following fields are required:
.citation()
-
of
final static CitationsDelta of(CitationsDelta.Citation citation)
Returns an immutable instance of CitationsDelta with the required citation set to the given value.
-
of
final static CitationsDelta of(CitationCharLocation charLocation)
Alias for calling of with
Citation.ofCharLocation(charLocation).
-
of
final static CitationsDelta of(CitationPageLocation pageLocation)
Alias for calling of with
Citation.ofPageLocation(pageLocation).
-
of
final static CitationsDelta of(CitationContentBlockLocation contentBlockLocation)
Alias for calling of with
Citation.ofContentBlockLocation(contentBlockLocation).
-
of
final static CitationsDelta of(CitationsWebSearchResultLocation webSearchResultLocation)
Alias for calling of with
Citation.ofWebSearchResultLocation(webSearchResultLocation).
-
of
final static CitationsDelta of(CitationsSearchResultLocation searchResultLocation)
Alias for calling of with
Citation.ofSearchResultLocation(searchResultLocation).
-
-
-
-