Class MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder (3.100.0)

public static final class MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder extends GeneratedMessage.Builder<MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder> implements MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemoryOrBuilder

A memory generated by the operation.

Protobuf type google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

Static Methods

getDescriptor()

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

Methods

addAllTopics(Iterable<? extends MemoryTopicId> values)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder addAllTopics(Iterable<? extends MemoryTopicId> values)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.MemoryTopicId>
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

addTopics(MemoryTopicId value)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder addTopics(MemoryTopicId value)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MemoryTopicId
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

addTopics(MemoryTopicId.Builder builderForValue)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder addTopics(MemoryTopicId.Builder builderForValue)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue MemoryTopicId.Builder
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

addTopics(int index, MemoryTopicId value)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder addTopics(int index, MemoryTopicId value)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value MemoryTopicId
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

addTopics(int index, MemoryTopicId.Builder builderForValue)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder addTopics(int index, MemoryTopicId.Builder builderForValue)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue MemoryTopicId.Builder
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

addTopicsBuilder()

public MemoryTopicId.Builder addTopicsBuilder()

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MemoryTopicId.Builder

addTopicsBuilder(int index)

public MemoryTopicId.Builder addTopicsBuilder(int index)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
MemoryTopicId.Builder

build()

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory build()
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory

buildPartial()

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory buildPartial()
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory

clear()

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder clear()
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder
Overrides

clearFact()

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder clearFact()

Required. Represents the fact to generate a memory from.

string fact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

This builder for chaining.

clearTopics()

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder clearTopics()

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

getDefaultInstanceForType()

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory getDefaultInstanceForType()
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory

getDescriptorForType()

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

getFact()

public String getFact()

Required. Represents the fact to generate a memory from.

string fact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The fact.

getFactBytes()

public ByteString getFactBytes()

Required. Represents the fact to generate a memory from.

string fact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for fact.

getTopics(int index)

public MemoryTopicId getTopics(int index)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
MemoryTopicId

getTopicsBuilder(int index)

public MemoryTopicId.Builder getTopicsBuilder(int index)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
MemoryTopicId.Builder

getTopicsBuilderList()

public List<MemoryTopicId.Builder> getTopicsBuilderList()

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getTopicsCount()

public int getTopicsCount()

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getTopicsList()

public List<MemoryTopicId> getTopicsList()

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<MemoryTopicId>

getTopicsOrBuilder(int index)

public MemoryTopicIdOrBuilder getTopicsOrBuilder(int index)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
MemoryTopicIdOrBuilder

getTopicsOrBuilderList()

public List<? extends MemoryTopicIdOrBuilder> getTopicsOrBuilderList()

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory other)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder mergeFrom(MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory other)
Parameter
Name Description
other MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder
Overrides

removeTopics(int index)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder removeTopics(int index)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

setFact(String value)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder setFact(String value)

Required. Represents the fact to generate a memory from.

string fact = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The fact to set.

Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

This builder for chaining.

setFactBytes(ByteString value)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder setFactBytes(ByteString value)

Required. Represents the fact to generate a memory from.

string fact = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for fact to set.

Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

This builder for chaining.

setTopics(int index, MemoryTopicId value)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder setTopics(int index, MemoryTopicId value)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value MemoryTopicId
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder

setTopics(int index, MemoryTopicId.Builder builderForValue)

public MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder setTopics(int index, MemoryTopicId.Builder builderForValue)

Optional. Represents the list of topics that the memory should be associated with. For example, use custom_memory_topic_label = "jargon" if the extracted memory is an example of memory extraction for the custom topic jargon.

repeated .google.cloud.aiplatform.v1beta1.MemoryTopicId topics = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue MemoryTopicId.Builder
Returns
Type Description
MemoryBankCustomizationConfig.GenerateMemoriesExample.GeneratedMemory.Builder