Class BetaManagedAgentsPrecondition
-
- All Implemented Interfaces:
public final class BetaManagedAgentsPreconditionOptional condition that must hold for an update to apply. When omitted, the update is unconditional. Asserts the current state of the memory being updated. When an update changes
path, the precondition still refers to the memory's current content, not the destination path. Currently the only supported variant iscontent_sha256.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsPrecondition.BuilderA builder for BetaManagedAgentsPrecondition.
-
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 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
-
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 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.
-
-
-
-