Class CacheMissSystemChanged
-
- All Implemented Interfaces:
public final class CacheMissSystemChangedA
cache_miss_reasonfor a request whosesystemdiffers from the previous request's.See the cache diagnostics guide to learn what to change for each reason.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCacheMissSystemChanged.BuilderA builder for CacheMissSystemChanged.
-
Method Summary
Modifier and Type Method Description final LongcacheMissedInputTokens()Approximate number of input tokens that would have been read from cache had the prefix matched the previous request. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("system_changed")final JsonField<Long>_cacheMissedInputTokens()Returns the raw JSON value of cacheMissedInputTokens. final Map<String, JsonValue>_additionalProperties()final CacheMissSystemChanged.BuildertoBuilder()final CacheMissSystemChangedvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CacheMissSystemChanged.Builderbuilder()Returns a mutable builder for constructing an instance of CacheMissSystemChanged. final static CacheMissSystemChangedof(Long cacheMissedInputTokens)Returns an immutable instance of CacheMissSystemChanged with the required cacheMissedInputTokens set to the given value. -
-
Method Detail
-
cacheMissedInputTokens
final Long cacheMissedInputTokens()
Approximate number of input tokens that would have been read from cache had the prefix matched the previous request.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("system_changed")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_cacheMissedInputTokens
final JsonField<Long> _cacheMissedInputTokens()
Returns the raw JSON value of cacheMissedInputTokens.
Unlike cacheMissedInputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CacheMissSystemChanged.Builder toBuilder()
-
validate
final CacheMissSystemChanged 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 CacheMissSystemChanged.Builder builder()
Returns a mutable builder for constructing an instance of CacheMissSystemChanged.
The following fields are required:
.cacheMissedInputTokens()
-
of
final static CacheMissSystemChanged of(Long cacheMissedInputTokens)
Returns an immutable instance of CacheMissSystemChanged with the required cacheMissedInputTokens set to the given value.
-
-
-
-