Class BetaManagedAgentsPrecondition
-
- All Implemented Interfaces:
public final class BetaManagedAgentsPreconditionOptimistic-concurrency precondition: the update applies only if the memory's stored
content_sha256equals the supplied value. On mismatch, the request returnsmemory_precondition_failed_error(HTTP 409); re-read the memory and retry against the fresh state. If the precondition fails but the stored state already exactly matches the requestedcontentandpath, the server returns 200 instead of 409.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsPrecondition.BuilderA builder for BetaManagedAgentsPrecondition.
public final classBetaManagedAgentsPrecondition.Type
-
Method Summary
Modifier and Type Method Description final BetaManagedAgentsPrecondition.Typetype()final Optional<String>contentSha256()Expected content_sha256of the stored memory (64 lowercase hexadecimal characters).final JsonField<BetaManagedAgentsPrecondition.Type>_type()Returns the raw JSON value of type. final JsonField<String>_contentSha256()Returns the raw JSON value of contentSha256. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsPrecondition.BuildertoBuilder()final BetaManagedAgentsPreconditionvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsPrecondition.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsPrecondition. -
-
Method Detail
-
type
final BetaManagedAgentsPrecondition.Type type()
-
contentSha256
final Optional<String> contentSha256()
Expected
content_sha256of the stored memory (64 lowercase hexadecimal characters). Typically thecontent_sha256returned by a prior read or list call. Because the server applies no content normalization, clients can also compute this locally as the SHA-256 of the UTF-8 content bytes.
-
_type
final JsonField<BetaManagedAgentsPrecondition.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_contentSha256
final JsonField<String> _contentSha256()
Returns the raw JSON value of contentSha256.
Unlike contentSha256, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsPrecondition.Builder toBuilder()
-
validate
final BetaManagedAgentsPrecondition 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 BetaManagedAgentsPrecondition.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsPrecondition.
The following fields are required:
.type()
-
-
-
-