Class BetaManagedAgentsContentSha256Precondition
-
- All Implemented Interfaces:
public final class BetaManagedAgentsContentSha256PreconditionOptimistic-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 classBetaManagedAgentsContentSha256Precondition.BuilderA builder for BetaManagedAgentsContentSha256Precondition.
public final classBetaManagedAgentsContentSha256Precondition.Type
-
Method Summary
Modifier and Type Method Description final BetaManagedAgentsContentSha256Precondition.Typetype()final Optional<String>contentSha256()Expected content_sha256of the stored memory (64 lowercase hexadecimal characters).final JsonField<BetaManagedAgentsContentSha256Precondition.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 BetaManagedAgentsContentSha256Precondition.BuildertoBuilder()final BetaManagedAgentsContentSha256Preconditionvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsContentSha256Precondition.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsContentSha256Precondition. -
-
Method Detail
-
type
final BetaManagedAgentsContentSha256Precondition.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<BetaManagedAgentsContentSha256Precondition.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 BetaManagedAgentsContentSha256Precondition.Builder toBuilder()
-
validate
final BetaManagedAgentsContentSha256Precondition 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 BetaManagedAgentsContentSha256Precondition.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsContentSha256Precondition.
The following fields are required:
.type()
-
-
-
-