Class MemoryRevision.Builder (3.100.0)

public static final class MemoryRevision.Builder extends GeneratedMessage.Builder<MemoryRevision.Builder> implements MemoryRevisionOrBuilder

A revision of a Memory.

Protobuf type google.cloud.aiplatform.v1beta1.MemoryRevision

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllExtractedMemories(Iterable<? extends IntermediateExtractedMemory> values)

public MemoryRevision.Builder addAllExtractedMemories(Iterable<? extends IntermediateExtractedMemory> values)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory>
Returns
Type Description
MemoryRevision.Builder

addExtractedMemories(IntermediateExtractedMemory value)

public MemoryRevision.Builder addExtractedMemories(IntermediateExtractedMemory value)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value IntermediateExtractedMemory
Returns
Type Description
MemoryRevision.Builder

addExtractedMemories(IntermediateExtractedMemory.Builder builderForValue)

public MemoryRevision.Builder addExtractedMemories(IntermediateExtractedMemory.Builder builderForValue)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue IntermediateExtractedMemory.Builder
Returns
Type Description
MemoryRevision.Builder

addExtractedMemories(int index, IntermediateExtractedMemory value)

public MemoryRevision.Builder addExtractedMemories(int index, IntermediateExtractedMemory value)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value IntermediateExtractedMemory
Returns
Type Description
MemoryRevision.Builder

addExtractedMemories(int index, IntermediateExtractedMemory.Builder builderForValue)

public MemoryRevision.Builder addExtractedMemories(int index, IntermediateExtractedMemory.Builder builderForValue)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue IntermediateExtractedMemory.Builder
Returns
Type Description
MemoryRevision.Builder

addExtractedMemoriesBuilder()

public IntermediateExtractedMemory.Builder addExtractedMemoriesBuilder()

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IntermediateExtractedMemory.Builder

addExtractedMemoriesBuilder(int index)

public IntermediateExtractedMemory.Builder addExtractedMemoriesBuilder(int index)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
IntermediateExtractedMemory.Builder

build()

public MemoryRevision build()
Returns
Type Description
MemoryRevision

buildPartial()

public MemoryRevision buildPartial()
Returns
Type Description
MemoryRevision

clear()

public MemoryRevision.Builder clear()
Returns
Type Description
MemoryRevision.Builder
Overrides

clearContext()

public MemoryRevision.Builder clearContext()

Output only. Represents the context of the Memory Revision. The context may include context from both the historical revisions and the extracted content.

string context = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MemoryRevision.Builder

This builder for chaining.

clearCreateTime()

public MemoryRevision.Builder clearCreateTime()

Output only. Represents the timestamp when this Memory Revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MemoryRevision.Builder

clearExpireTime()

public MemoryRevision.Builder clearExpireTime()

Output only. Represents the timestamp of when this resource is considered expired.

.google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MemoryRevision.Builder

clearExtractedMemories()

public MemoryRevision.Builder clearExtractedMemories()

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MemoryRevision.Builder

clearFact()

public MemoryRevision.Builder clearFact()

Output only. Represents the fact of the Memory Revision. This corresponds to the fact field of the parent Memory at the time of revision creation.

string fact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MemoryRevision.Builder

This builder for chaining.

clearLabels()

public MemoryRevision.Builder clearLabels()
Returns
Type Description
MemoryRevision.Builder

clearName()

public MemoryRevision.Builder clearName()

Identifier. Represents the resource name of the Memory Revision. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
MemoryRevision.Builder

This builder for chaining.

clearStructuredData()

public MemoryRevision.Builder clearStructuredData()

Output only. Represents the structured value of the memory at the time of revision creation.

.google.protobuf.Struct structured_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MemoryRevision.Builder

containsLabels(String key)

public boolean containsLabels(String key)

Output only. Represents the labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on GenerateMemoriesRequest.revision_labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getContext()

public String getContext()

Output only. Represents the context of the Memory Revision. The context may include context from both the historical revisions and the extracted content.

string context = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The context.

getContextBytes()

public ByteString getContextBytes()

Output only. Represents the context of the Memory Revision. The context may include context from both the historical revisions and the extracted content.

string context = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for context.

getCreateTime()

public Timestamp getCreateTime()

Output only. Represents the timestamp when this Memory Revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Represents the timestamp when this Memory Revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Represents the timestamp when this Memory Revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MemoryRevision getDefaultInstanceForType()
Returns
Type Description
MemoryRevision

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

Output only. Represents the timestamp of when this resource is considered expired.

.google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Output only. Represents the timestamp of when this resource is considered expired.

.google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. Represents the timestamp of when this resource is considered expired.

.google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getExtractedMemories(int index)

public IntermediateExtractedMemory getExtractedMemories(int index)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
IntermediateExtractedMemory

getExtractedMemoriesBuilder(int index)

public IntermediateExtractedMemory.Builder getExtractedMemoriesBuilder(int index)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
IntermediateExtractedMemory.Builder

getExtractedMemoriesBuilderList()

public List<IntermediateExtractedMemory.Builder> getExtractedMemoriesBuilderList()

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getExtractedMemoriesCount()

public int getExtractedMemoriesCount()

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getExtractedMemoriesList()

public List<IntermediateExtractedMemory> getExtractedMemoriesList()

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<IntermediateExtractedMemory>

getExtractedMemoriesOrBuilder(int index)

public IntermediateExtractedMemoryOrBuilder getExtractedMemoriesOrBuilder(int index)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
IntermediateExtractedMemoryOrBuilder

getExtractedMemoriesOrBuilderList()

public List<? extends IntermediateExtractedMemoryOrBuilder> getExtractedMemoriesOrBuilderList()

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.IntermediateExtractedMemoryOrBuilder>

getFact()

public String getFact()

Output only. Represents the fact of the Memory Revision. This corresponds to the fact field of the parent Memory at the time of revision creation.

string fact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The fact.

getFactBytes()

public ByteString getFactBytes()

Output only. Represents the fact of the Memory Revision. This corresponds to the fact field of the parent Memory at the time of revision creation.

string fact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for fact.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Output only. Represents the labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on GenerateMemoriesRequest.revision_labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Output only. Represents the labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on GenerateMemoriesRequest.revision_labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Output only. Represents the labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on GenerateMemoriesRequest.revision_labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Output only. Represents the labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on GenerateMemoriesRequest.revision_labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. Represents the resource name of the Memory Revision. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Represents the resource name of the Memory Revision. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getStructuredData()

public Struct getStructuredData()

Output only. Represents the structured value of the memory at the time of revision creation.

.google.protobuf.Struct structured_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Struct

The structuredData.

getStructuredDataBuilder()

public Struct.Builder getStructuredDataBuilder()

Output only. Represents the structured value of the memory at the time of revision creation.

.google.protobuf.Struct structured_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStructuredDataOrBuilder()

public StructOrBuilder getStructuredDataOrBuilder()

Output only. Represents the structured value of the memory at the time of revision creation.

.google.protobuf.Struct structured_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StructOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Represents the timestamp when this Memory Revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasExpireTime()

public boolean hasExpireTime()

Output only. Represents the timestamp of when this resource is considered expired.

.google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the expireTime field is set.

hasStructuredData()

public boolean hasStructuredData()

Output only. Represents the structured value of the memory at the time of revision creation.

.google.protobuf.Struct structured_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the structuredData field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public MemoryRevision.Builder mergeCreateTime(Timestamp value)

Output only. Represents the timestamp when this Memory Revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MemoryRevision.Builder

mergeExpireTime(Timestamp value)

public MemoryRevision.Builder mergeExpireTime(Timestamp value)

Output only. Represents the timestamp of when this resource is considered expired.

.google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MemoryRevision.Builder

mergeFrom(MemoryRevision other)

public MemoryRevision.Builder mergeFrom(MemoryRevision other)
Parameter
Name Description
other MemoryRevision
Returns
Type Description
MemoryRevision.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MemoryRevision.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MemoryRevision.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MemoryRevision.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MemoryRevision.Builder
Overrides

mergeStructuredData(Struct value)

public MemoryRevision.Builder mergeStructuredData(Struct value)

Output only. Represents the structured value of the memory at the time of revision creation.

.google.protobuf.Struct structured_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
MemoryRevision.Builder

putAllLabels(Map<String,String> values)

public MemoryRevision.Builder putAllLabels(Map<String,String> values)

Output only. Represents the labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on GenerateMemoriesRequest.revision_labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
MemoryRevision.Builder

putLabels(String key, String value)

public MemoryRevision.Builder putLabels(String key, String value)

Output only. Represents the labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on GenerateMemoriesRequest.revision_labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value String
Returns
Type Description
MemoryRevision.Builder

removeExtractedMemories(int index)

public MemoryRevision.Builder removeExtractedMemories(int index)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
MemoryRevision.Builder

removeLabels(String key)

public MemoryRevision.Builder removeLabels(String key)

Output only. Represents the labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on GenerateMemoriesRequest.revision_labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
MemoryRevision.Builder

setContext(String value)

public MemoryRevision.Builder setContext(String value)

Output only. Represents the context of the Memory Revision. The context may include context from both the historical revisions and the extracted content.

string context = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The context to set.

Returns
Type Description
MemoryRevision.Builder

This builder for chaining.

setContextBytes(ByteString value)

public MemoryRevision.Builder setContextBytes(ByteString value)

Output only. Represents the context of the Memory Revision. The context may include context from both the historical revisions and the extracted content.

string context = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for context to set.

Returns
Type Description
MemoryRevision.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public MemoryRevision.Builder setCreateTime(Timestamp value)

Output only. Represents the timestamp when this Memory Revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MemoryRevision.Builder

setCreateTime(Timestamp.Builder builderForValue)

public MemoryRevision.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Represents the timestamp when this Memory Revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MemoryRevision.Builder

setExpireTime(Timestamp value)

public MemoryRevision.Builder setExpireTime(Timestamp value)

Output only. Represents the timestamp of when this resource is considered expired.

.google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
MemoryRevision.Builder

setExpireTime(Timestamp.Builder builderForValue)

public MemoryRevision.Builder setExpireTime(Timestamp.Builder builderForValue)

Output only. Represents the timestamp of when this resource is considered expired.

.google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MemoryRevision.Builder

setExtractedMemories(int index, IntermediateExtractedMemory value)

public MemoryRevision.Builder setExtractedMemories(int index, IntermediateExtractedMemory value)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value IntermediateExtractedMemory
Returns
Type Description
MemoryRevision.Builder

setExtractedMemories(int index, IntermediateExtractedMemory.Builder builderForValue)

public MemoryRevision.Builder setExtractedMemories(int index, IntermediateExtractedMemory.Builder builderForValue)

Output only. Represents the extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.

repeated .google.cloud.aiplatform.v1beta1.IntermediateExtractedMemory extracted_memories = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue IntermediateExtractedMemory.Builder
Returns
Type Description
MemoryRevision.Builder

setFact(String value)

public MemoryRevision.Builder setFact(String value)

Output only. Represents the fact of the Memory Revision. This corresponds to the fact field of the parent Memory at the time of revision creation.

string fact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The fact to set.

Returns
Type Description
MemoryRevision.Builder

This builder for chaining.

setFactBytes(ByteString value)

public MemoryRevision.Builder setFactBytes(ByteString value)

Output only. Represents the fact of the Memory Revision. This corresponds to the fact field of the parent Memory at the time of revision creation.

string fact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for fact to set.

Returns
Type Description
MemoryRevision.Builder

This builder for chaining.

setName(String value)

public MemoryRevision.Builder setName(String value)

Identifier. Represents the resource name of the Memory Revision. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
MemoryRevision.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MemoryRevision.Builder setNameBytes(ByteString value)

Identifier. Represents the resource name of the Memory Revision. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
MemoryRevision.Builder

This builder for chaining.

setStructuredData(Struct value)

public MemoryRevision.Builder setStructuredData(Struct value)

Output only. Represents the structured value of the memory at the time of revision creation.

.google.protobuf.Struct structured_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
MemoryRevision.Builder

setStructuredData(Struct.Builder builderForValue)

public MemoryRevision.Builder setStructuredData(Struct.Builder builderForValue)

Output only. Represents the structured value of the memory at the time of revision creation.

.google.protobuf.Struct structured_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MemoryRevision.Builder