Class BetaDiagnostics
-
- All Implemented Interfaces:
public final class BetaDiagnosticsResponse envelope for request-level diagnostics. Present (possibly null) whenever the caller supplied
diagnosticson the request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaDiagnostics.BuilderA builder for BetaDiagnostics.
public final classBetaDiagnostics.CacheMissReasonExplains why the prompt cache could not fully reuse the prefix from the request identified by
diagnostics.previous_message_id.nullmeans diagnosis is still pending — the response was serialized before the background comparison completed.
-
Method Summary
Modifier and Type Method Description final Optional<BetaDiagnostics.CacheMissReason>cacheMissReason()Explains why the prompt cache could not fully reuse the prefix from the request identified by diagnostics.previous_message_id.final JsonField<BetaDiagnostics.CacheMissReason>_cacheMissReason()Returns the raw JSON value of cacheMissReason. final Map<String, JsonValue>_additionalProperties()final BetaDiagnostics.BuildertoBuilder()final BetaDiagnosticsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaDiagnostics.Builderbuilder()Returns a mutable builder for constructing an instance of BetaDiagnostics. -
-
Method Detail
-
cacheMissReason
final Optional<BetaDiagnostics.CacheMissReason> cacheMissReason()
Explains why the prompt cache could not fully reuse the prefix from the request identified by
diagnostics.previous_message_id.nullmeans diagnosis is still pending — the response was serialized before the background comparison completed.
-
_cacheMissReason
final JsonField<BetaDiagnostics.CacheMissReason> _cacheMissReason()
Returns the raw JSON value of cacheMissReason.
Unlike cacheMissReason, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaDiagnostics.Builder toBuilder()
-
validate
final BetaDiagnostics 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 BetaDiagnostics.Builder builder()
Returns a mutable builder for constructing an instance of BetaDiagnostics.
The following fields are required:
.cacheMissReason()
-
-
-
-