Class MemoryRevision (3.100.0)

public final class MemoryRevision extends GeneratedMessage implements MemoryRevisionOrBuilder

A revision of a Memory.

Protobuf type google.cloud.aiplatform.v1beta1.MemoryRevision

Static Fields

CONTEXT_FIELD_NUMBER

public static final int CONTEXT_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

EXPIRE_TIME_FIELD_NUMBER

public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
Type Description
int

EXTRACTED_MEMORIES_FIELD_NUMBER

public static final int EXTRACTED_MEMORIES_FIELD_NUMBER
Field Value
Type Description
int

FACT_FIELD_NUMBER

public static final int FACT_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

STRUCTURED_DATA_FIELD_NUMBER

public static final int STRUCTURED_DATA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MemoryRevision getDefaultInstance()
Returns
Type Description
MemoryRevision

getDescriptor()

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

newBuilder()

public static MemoryRevision.Builder newBuilder()
Returns
Type Description
MemoryRevision.Builder

newBuilder(MemoryRevision prototype)

public static MemoryRevision.Builder newBuilder(MemoryRevision prototype)
Parameter
Name Description
prototype MemoryRevision
Returns
Type Description
MemoryRevision.Builder

parseDelimitedFrom(InputStream input)

public static MemoryRevision parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MemoryRevision
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MemoryRevision parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MemoryRevision
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MemoryRevision parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MemoryRevision
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MemoryRevision parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MemoryRevision
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MemoryRevision parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MemoryRevision
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MemoryRevision parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MemoryRevision
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MemoryRevision parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MemoryRevision
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MemoryRevision parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MemoryRevision
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MemoryRevision parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MemoryRevision
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MemoryRevision parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MemoryRevision
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MemoryRevision parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MemoryRevision
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MemoryRevision parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MemoryRevision
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MemoryRevision> parser()
Returns
Type Description
Parser<MemoryRevision>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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.

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

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

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.

getParserForType()

public Parser<MemoryRevision> getParserForType()
Returns
Type Description
Parser<MemoryRevision>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected MemoryRevision.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MemoryRevision.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException