public final class MemoryBankCustomizationConfig extends GeneratedMessage implements MemoryBankCustomizationConfigOrBuilder
Represents configuration for organizing natural language memories for a
particular scope.
Protobuf type google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig
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
public static final int CONSOLIDATION_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int DISABLE_NATURAL_LANGUAGE_MEMORIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int ENABLE_THIRD_PERSON_MEMORIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int GENERATE_MEMORIES_EXAMPLES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int MEMORY_TOPICS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int SCOPE_KEYS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static MemoryBankCustomizationConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static MemoryBankCustomizationConfig.Builder newBuilder()
public static MemoryBankCustomizationConfig.Builder newBuilder(MemoryBankCustomizationConfig prototype)
public static MemoryBankCustomizationConfig parseDelimitedFrom(InputStream input)
public static MemoryBankCustomizationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MemoryBankCustomizationConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static MemoryBankCustomizationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MemoryBankCustomizationConfig parseFrom(ByteString data)
public static MemoryBankCustomizationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MemoryBankCustomizationConfig parseFrom(CodedInputStream input)
public static MemoryBankCustomizationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MemoryBankCustomizationConfig parseFrom(InputStream input)
public static MemoryBankCustomizationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MemoryBankCustomizationConfig parseFrom(ByteBuffer data)
public static MemoryBankCustomizationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<MemoryBankCustomizationConfig> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public MemoryBankCustomizationConfig.ConsolidationConfig getConsolidationConfig()
Optional. Represents configuration for customizing how memories are
consolidated together.
.google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.ConsolidationConfig consolidation_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public MemoryBankCustomizationConfig.ConsolidationConfigOrBuilder getConsolidationConfigOrBuilder()
Optional. Represents configuration for customizing how memories are
consolidated together.
.google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.ConsolidationConfig consolidation_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public MemoryBankCustomizationConfig getDefaultInstanceForType()
public boolean getDisableNaturalLanguageMemories()
Optional. Indicates whether natural language memory generation should be
disabled for all requests. By default, natural language memory generation
is enabled. Set this to true when you only want to generate structured
memories.
bool disable_natural_language_memories = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The disableNaturalLanguageMemories.
|
public boolean getEnableThirdPersonMemories()
Optional. Indicates whether the memories will be generated in the third
person (i.e. "The user generates memories with Memory Bank."). By default,
the memories will be generated in the first person (i.e. "I generate
memories with Memory Bank.")
bool enable_third_person_memories = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The enableThirdPersonMemories.
|
public MemoryBankCustomizationConfig.GenerateMemoriesExample getGenerateMemoriesExamples(int index)
Optional. Provides examples of how to generate memories for a particular
scope.
repeated .google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.GenerateMemoriesExample generate_memories_examples = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
public int getGenerateMemoriesExamplesCount()
Optional. Provides examples of how to generate memories for a particular
scope.
repeated .google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.GenerateMemoriesExample generate_memories_examples = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
public List<MemoryBankCustomizationConfig.GenerateMemoriesExample> getGenerateMemoriesExamplesList()
Optional. Provides examples of how to generate memories for a particular
scope.
repeated .google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.GenerateMemoriesExample generate_memories_examples = 3 [(.google.api.field_behavior) = OPTIONAL];
public MemoryBankCustomizationConfig.GenerateMemoriesExampleOrBuilder getGenerateMemoriesExamplesOrBuilder(int index)
Optional. Provides examples of how to generate memories for a particular
scope.
repeated .google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.GenerateMemoriesExample generate_memories_examples = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
public List<? extends MemoryBankCustomizationConfig.GenerateMemoriesExampleOrBuilder> getGenerateMemoriesExamplesOrBuilderList()
Optional. Provides examples of how to generate memories for a particular
scope.
repeated .google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.GenerateMemoriesExample generate_memories_examples = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.GenerateMemoriesExampleOrBuilder> |
|
public MemoryBankCustomizationConfig.MemoryTopic getMemoryTopics(int index)
Optional. Represents topics of information that should be extracted from
conversations and stored as memories. If not set, then Memory Bank's
default topics will be used.
repeated .google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.MemoryTopic memory_topics = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
public int getMemoryTopicsCount()
Optional. Represents topics of information that should be extracted from
conversations and stored as memories. If not set, then Memory Bank's
default topics will be used.
repeated .google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.MemoryTopic memory_topics = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
public List<MemoryBankCustomizationConfig.MemoryTopic> getMemoryTopicsList()
Optional. Represents topics of information that should be extracted from
conversations and stored as memories. If not set, then Memory Bank's
default topics will be used.
repeated .google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.MemoryTopic memory_topics = 2 [(.google.api.field_behavior) = OPTIONAL];
public MemoryBankCustomizationConfig.MemoryTopicOrBuilder getMemoryTopicsOrBuilder(int index)
Optional. Represents topics of information that should be extracted from
conversations and stored as memories. If not set, then Memory Bank's
default topics will be used.
repeated .google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.MemoryTopic memory_topics = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
public List<? extends MemoryBankCustomizationConfig.MemoryTopicOrBuilder> getMemoryTopicsOrBuilderList()
Optional. Represents topics of information that should be extracted from
conversations and stored as memories. If not set, then Memory Bank's
default topics will be used.
repeated .google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.MemoryTopic memory_topics = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.MemoryTopicOrBuilder> |
|
public Parser<MemoryBankCustomizationConfig> getParserForType()
Overrides
public String getScopeKeys(int index)
Optional. Represents the scope keys (i.e. 'user_id') for which to use this
config. A request's scope must include all of the provided keys for the
config to be used (order does not matter). If empty, then the config will
be used for all requests that do not have a more specific config. Only one
default config is allowed per Memory Bank.
repeated string scope_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The scopeKeys at the given index.
|
public ByteString getScopeKeysBytes(int index)
Optional. Represents the scope keys (i.e. 'user_id') for which to use this
config. A request's scope must include all of the provided keys for the
config to be used (order does not matter). If empty, then the config will
be used for all requests that do not have a more specific config. Only one
default config is allowed per Memory Bank.
repeated string scope_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the scopeKeys at the given index.
|
public int getScopeKeysCount()
Optional. Represents the scope keys (i.e. 'user_id') for which to use this
config. A request's scope must include all of the provided keys for the
config to be used (order does not matter). If empty, then the config will
be used for all requests that do not have a more specific config. Only one
default config is allowed per Memory Bank.
repeated string scope_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The count of scopeKeys.
|
public ProtocolStringList getScopeKeysList()
Optional. Represents the scope keys (i.e. 'user_id') for which to use this
config. A request's scope must include all of the provided keys for the
config to be used (order does not matter). If empty, then the config will
be used for all requests that do not have a more specific config. Only one
default config is allowed per Memory Bank.
repeated string scope_keys = 1 [(.google.api.field_behavior) = OPTIONAL];
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public boolean hasConsolidationConfig()
Optional. Represents configuration for customizing how memories are
consolidated together.
.google.cloud.aiplatform.v1beta1.MemoryBankCustomizationConfig.ConsolidationConfig consolidation_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the consolidationConfig field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public MemoryBankCustomizationConfig.Builder newBuilderForType()
protected MemoryBankCustomizationConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public MemoryBankCustomizationConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides