Class MemoryTopicId (3.100.0)

public final class MemoryTopicId extends GeneratedMessage implements MemoryTopicIdOrBuilder

A memory topic identifier. This will be used to label a Memory and to restrict which topics are eligible for generation or retrieval.

Protobuf type google.cloud.aiplatform.v1beta1.MemoryTopicId

Static Fields

CUSTOM_MEMORY_TOPIC_LABEL_FIELD_NUMBER

public static final int CUSTOM_MEMORY_TOPIC_LABEL_FIELD_NUMBER
Field Value
Type Description
int

MANAGED_MEMORY_TOPIC_FIELD_NUMBER

public static final int MANAGED_MEMORY_TOPIC_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MemoryTopicId getDefaultInstance()
Returns
Type Description
MemoryTopicId

getDescriptor()

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

newBuilder()

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

newBuilder(MemoryTopicId prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCustomMemoryTopicLabel()

public String getCustomMemoryTopicLabel()

Optional. Represents the custom memory topic label.

string custom_memory_topic_label = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The customMemoryTopicLabel.

getCustomMemoryTopicLabelBytes()

public ByteString getCustomMemoryTopicLabelBytes()

Optional. Represents the custom memory topic label.

string custom_memory_topic_label = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for customMemoryTopicLabel.

getDefaultInstanceForType()

public MemoryTopicId getDefaultInstanceForType()
Returns
Type Description
MemoryTopicId

getManagedMemoryTopic()

public MemoryBankCustomizationConfig.MemoryTopic.ManagedMemoryTopic.ManagedTopicEnum getManagedMemoryTopic()

Optional. Represents the managed memory topic.

.google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.MemoryTopic.ManagedMemoryTopic.ManagedTopicEnum managed_memory_topic = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MemoryBankCustomizationConfig.MemoryTopic.ManagedMemoryTopic.ManagedTopicEnum

The managedMemoryTopic.

getManagedMemoryTopicValue()

public int getManagedMemoryTopicValue()

Optional. Represents the managed memory topic.

.google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.MemoryTopic.ManagedMemoryTopic.ManagedTopicEnum managed_memory_topic = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for managedMemoryTopic.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTopicIdCase()

public MemoryTopicId.TopicIdCase getTopicIdCase()
Returns
Type Description
MemoryTopicId.TopicIdCase

hasCustomMemoryTopicLabel()

public boolean hasCustomMemoryTopicLabel()

Optional. Represents the custom memory topic label.

string custom_memory_topic_label = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customMemoryTopicLabel field is set.

hasManagedMemoryTopic()

public boolean hasManagedMemoryTopic()

Optional. Represents the managed memory topic.

.google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.MemoryTopic.ManagedMemoryTopic.ManagedTopicEnum managed_memory_topic = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the managedMemoryTopic field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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