public final class MemoryRevision extends GeneratedMessage implements MemoryRevisionOrBuilder
A revision of a Memory.
Protobuf type google.cloud.aiplatform.v1beta1.MemoryRevision
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int CREATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int EXPIRE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int EXTRACTED_MEMORIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int FACT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int LABELS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int STRUCTURED_DATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static MemoryRevision getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static MemoryRevision.Builder newBuilder()
public static MemoryRevision.Builder newBuilder(MemoryRevision prototype)
public static MemoryRevision parseDelimitedFrom(InputStream input)
public static MemoryRevision parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MemoryRevision parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static MemoryRevision parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MemoryRevision parseFrom(ByteString data)
public static MemoryRevision parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MemoryRevision parseFrom(CodedInputStream input)
public static MemoryRevision parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MemoryRevision parseFrom(InputStream input)
public static MemoryRevision parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MemoryRevision parseFrom(ByteBuffer data)
public static MemoryRevision parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<MemoryRevision> parser()
Methods
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
|
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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.
|
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.
|
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];
public MemoryRevision getDefaultInstanceForType()
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.
|
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];
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
|
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 |
|
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];
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
|
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> |
|
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.
|
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.
|
public Map<String,String> getLabels()
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 |
|
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];
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];
| Returns |
| Type |
Description |
String |
|
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 |
|
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.
|
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.
|
public Parser<MemoryRevision> getParserForType()
Overrides
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
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];
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.
|
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.
|
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.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
public final boolean isInitialized()
Overrides
public MemoryRevision.Builder newBuilderForType()
protected MemoryRevision.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public MemoryRevision.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides