Class BetaHeartbeatPreconditionFailedErrorDetails
-
- All Implemented Interfaces:
public final class BetaHeartbeatPreconditionFailedErrorDetailsexpected_last_heartbeatdoes not match the stored heartbeat, so another worker may hold the lease.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaHeartbeatPreconditionFailedErrorDetails.BuilderA builder for BetaHeartbeatPreconditionFailedErrorDetails.
-
Method Summary
Modifier and Type Method Description final BetaWorkLeaseStatecurrentState()The lease as the server holds it. final JsonValue_errorCode()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("heartbeat_precondition_failed")final JsonField<BetaWorkLeaseState>_currentState()Returns the raw JSON value of currentState. final Map<String, JsonValue>_additionalProperties()final BetaHeartbeatPreconditionFailedErrorDetails.BuildertoBuilder()final BetaHeartbeatPreconditionFailedErrorDetailsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaHeartbeatPreconditionFailedErrorDetails.Builderbuilder()Returns a mutable builder for constructing an instance of BetaHeartbeatPreconditionFailedErrorDetails. final static BetaHeartbeatPreconditionFailedErrorDetailsof(BetaWorkLeaseState currentState)Returns an immutable instance of BetaHeartbeatPreconditionFailedErrorDetails with the required currentState set to the given value. -
-
Method Detail
-
currentState
final BetaWorkLeaseState currentState()
The lease as the server holds it.
-
_errorCode
final JsonValue _errorCode()
Expected to always return the following:
JsonValue.from("heartbeat_precondition_failed")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_currentState
final JsonField<BetaWorkLeaseState> _currentState()
Returns the raw JSON value of currentState.
Unlike currentState, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaHeartbeatPreconditionFailedErrorDetails.Builder toBuilder()
-
validate
final BetaHeartbeatPreconditionFailedErrorDetails 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 BetaHeartbeatPreconditionFailedErrorDetails.Builder builder()
Returns a mutable builder for constructing an instance of BetaHeartbeatPreconditionFailedErrorDetails.
The following fields are required:
.currentState()
-
of
final static BetaHeartbeatPreconditionFailedErrorDetails of(BetaWorkLeaseState currentState)
Returns an immutable instance of BetaHeartbeatPreconditionFailedErrorDetails with the required currentState set to the given value.
-
-
-
-