Class MemoryTopicId.Builder (3.100.0)

public static final class MemoryTopicId.Builder extends GeneratedMessage.Builder<MemoryTopicId.Builder> 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 Methods

getDescriptor()

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

Methods

build()

public MemoryTopicId build()
Returns
Type Description
MemoryTopicId

buildPartial()

public MemoryTopicId buildPartial()
Returns
Type Description
MemoryTopicId

clear()

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

clearCustomMemoryTopicLabel()

public MemoryTopicId.Builder clearCustomMemoryTopicLabel()

Optional. Represents the custom memory topic label.

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

Returns
Type Description
MemoryTopicId.Builder

This builder for chaining.

clearManagedMemoryTopic()

public MemoryTopicId.Builder clearManagedMemoryTopic()

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
MemoryTopicId.Builder

This builder for chaining.

clearTopicId()

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

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

getDescriptorForType()

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

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MemoryTopicId other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCustomMemoryTopicLabel(String value)

public MemoryTopicId.Builder setCustomMemoryTopicLabel(String value)

Optional. Represents the custom memory topic label.

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

Parameter
Name Description
value String

The customMemoryTopicLabel to set.

Returns
Type Description
MemoryTopicId.Builder

This builder for chaining.

setCustomMemoryTopicLabelBytes(ByteString value)

public MemoryTopicId.Builder setCustomMemoryTopicLabelBytes(ByteString value)

Optional. Represents the custom memory topic label.

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

Parameter
Name Description
value ByteString

The bytes for customMemoryTopicLabel to set.

Returns
Type Description
MemoryTopicId.Builder

This builder for chaining.

setManagedMemoryTopic(MemoryBankCustomizationConfig.MemoryTopic.ManagedMemoryTopic.ManagedTopicEnum value)

public MemoryTopicId.Builder setManagedMemoryTopic(MemoryBankCustomizationConfig.MemoryTopic.ManagedMemoryTopic.ManagedTopicEnum value)

Optional. Represents the managed memory topic.

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

Parameter
Name Description
value MemoryBankCustomizationConfig.MemoryTopic.ManagedMemoryTopic.ManagedTopicEnum

The managedMemoryTopic to set.

Returns
Type Description
MemoryTopicId.Builder

This builder for chaining.

setManagedMemoryTopicValue(int value)

public MemoryTopicId.Builder setManagedMemoryTopicValue(int value)

Optional. Represents the managed memory topic.

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

Parameter
Name Description
value int

The enum numeric value on the wire for managedMemoryTopic to set.

Returns
Type Description
MemoryTopicId.Builder

This builder for chaining.