Class BetaManagedAgentsContentSha256Precondition
-
- All Implemented Interfaces:
public final class BetaManagedAgentsContentSha256PreconditionA precondition that applies an update only if the memory's current content has the hash in
content_sha256.If the hashes differ, the request fails with HTTP status 409. Retrieve the memory and retry. If the memory already has exactly the requested
contentandpath, the request succeeds even though the hashes differ.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsContentSha256Precondition.BuilderA builder for BetaManagedAgentsContentSha256Precondition.
-
Method Summary
Modifier and Type Method Description final Optional<String>contentSha256()Expected content_sha256of the stored memory (64 lowercase hexadecimal characters).final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("content_sha256")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
-
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 JsonValue _type()
Expected to always return the following:
JsonValue.from("content_sha256")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
-
-
-