Class GenerateMemoriesRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
com.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.Builder
- All Implemented Interfaces:
GenerateMemoriesRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateMemoriesRequest
public static final class GenerateMemoriesRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
implements GenerateMemoriesRequestOrBuilder
Request message for [MemoryBankService.GenerateMemories][google.cloud.aiplatform.v1beta1.MemoryBankService.GenerateMemories].Protobuf type
google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Defines a direct source of content as the source content from which to generate memories.Defines a direct source of memories that should be uploaded to Memory Bank.Optional.Required.Defines a Vertex Session as the source content from which to generate memories.booleancontainsScope(String key) Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDefines a direct source of content as the source content from which to generate memories.Defines a direct source of content as the source content from which to generate memories.Defines a direct source of content as the source content from which to generate memories.Defines a direct source of memories that should be uploaded to Memory Bank.Defines a direct source of memories that should be uploaded to Memory Bank.Defines a direct source of memories that should be uploaded to Memory Bank.booleanOptional.Deprecated.Required.com.google.protobuf.ByteStringRequired.getScope()Deprecated.intOptional.Optional.getScopeOrDefault(String key, String defaultValue) Optional.getScopeOrThrow(String key) Optional.Defines a Vertex Session as the source content from which to generate memories.Defines a Vertex Session as the source content from which to generate memories.Defines a Vertex Session as the source content from which to generate memories.booleanDefines a direct source of content as the source content from which to generate memories.booleanDefines a direct source of memories that should be uploaded to Memory Bank.booleanDefines a Vertex Session as the source content from which to generate memories.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanDefines a direct source of content as the source content from which to generate memories.Defines a direct source of memories that should be uploaded to Memory Bank.mergeFrom(GenerateMemoriesRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Defines a Vertex Session as the source content from which to generate memories.putAllScope(Map<String, String> values) Optional.Optional.removeScope(String key) Optional.Defines a direct source of content as the source content from which to generate memories.Defines a direct source of content as the source content from which to generate memories.Defines a direct source of memories that should be uploaded to Memory Bank.Defines a direct source of memories that should be uploaded to Memory Bank.setDisableConsolidation(boolean value) Optional.Required.setParentBytes(com.google.protobuf.ByteString value) Required.Defines a Vertex Session as the source content from which to generate memories.Defines a Vertex Session as the source content from which to generate memories.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateMemoriesRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
-
mergeFrom
public GenerateMemoriesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateMemoriesRequest.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceGenerateMemoriesRequestOrBuilder
-
clearSource
-
hasVertexSessionSource
public boolean hasVertexSessionSource()Defines a Vertex Session as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;- Specified by:
hasVertexSessionSourcein interfaceGenerateMemoriesRequestOrBuilder- Returns:
- Whether the vertexSessionSource field is set.
-
getVertexSessionSource
Defines a Vertex Session as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;- Specified by:
getVertexSessionSourcein interfaceGenerateMemoriesRequestOrBuilder- Returns:
- The vertexSessionSource.
-
setVertexSessionSource
public GenerateMemoriesRequest.Builder setVertexSessionSource(GenerateMemoriesRequest.VertexSessionSource value) Defines a Vertex Session as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2; -
setVertexSessionSource
public GenerateMemoriesRequest.Builder setVertexSessionSource(GenerateMemoriesRequest.VertexSessionSource.Builder builderForValue) Defines a Vertex Session as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2; -
mergeVertexSessionSource
public GenerateMemoriesRequest.Builder mergeVertexSessionSource(GenerateMemoriesRequest.VertexSessionSource value) Defines a Vertex Session as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2; -
clearVertexSessionSource
Defines a Vertex Session as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2; -
getVertexSessionSourceBuilder
Defines a Vertex Session as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2; -
getVertexSessionSourceOrBuilder
Defines a Vertex Session as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;- Specified by:
getVertexSessionSourceOrBuilderin interfaceGenerateMemoriesRequestOrBuilder
-
hasDirectContentsSource
public boolean hasDirectContentsSource()Defines a direct source of content as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3;- Specified by:
hasDirectContentsSourcein interfaceGenerateMemoriesRequestOrBuilder- Returns:
- Whether the directContentsSource field is set.
-
getDirectContentsSource
Defines a direct source of content as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3;- Specified by:
getDirectContentsSourcein interfaceGenerateMemoriesRequestOrBuilder- Returns:
- The directContentsSource.
-
setDirectContentsSource
public GenerateMemoriesRequest.Builder setDirectContentsSource(GenerateMemoriesRequest.DirectContentsSource value) Defines a direct source of content as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3; -
setDirectContentsSource
public GenerateMemoriesRequest.Builder setDirectContentsSource(GenerateMemoriesRequest.DirectContentsSource.Builder builderForValue) Defines a direct source of content as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3; -
mergeDirectContentsSource
public GenerateMemoriesRequest.Builder mergeDirectContentsSource(GenerateMemoriesRequest.DirectContentsSource value) Defines a direct source of content as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3; -
clearDirectContentsSource
Defines a direct source of content as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3; -
getDirectContentsSourceBuilder
Defines a direct source of content as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3; -
getDirectContentsSourceOrBuilder
Defines a direct source of content as the source content from which to generate memories.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3;- Specified by:
getDirectContentsSourceOrBuilderin interfaceGenerateMemoriesRequestOrBuilder
-
hasDirectMemoriesSource
public boolean hasDirectMemoriesSource()Defines a direct source of memories that should be uploaded to Memory Bank. This is similar to `CreateMemory`, but it allows for consolidation between these new memories and existing memories for the same scope.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectMemoriesSource direct_memories_source = 9;- Specified by:
hasDirectMemoriesSourcein interfaceGenerateMemoriesRequestOrBuilder- Returns:
- Whether the directMemoriesSource field is set.
-
getDirectMemoriesSource
Defines a direct source of memories that should be uploaded to Memory Bank. This is similar to `CreateMemory`, but it allows for consolidation between these new memories and existing memories for the same scope.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectMemoriesSource direct_memories_source = 9;- Specified by:
getDirectMemoriesSourcein interfaceGenerateMemoriesRequestOrBuilder- Returns:
- The directMemoriesSource.
-
setDirectMemoriesSource
public GenerateMemoriesRequest.Builder setDirectMemoriesSource(GenerateMemoriesRequest.DirectMemoriesSource value) Defines a direct source of memories that should be uploaded to Memory Bank. This is similar to `CreateMemory`, but it allows for consolidation between these new memories and existing memories for the same scope.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectMemoriesSource direct_memories_source = 9; -
setDirectMemoriesSource
public GenerateMemoriesRequest.Builder setDirectMemoriesSource(GenerateMemoriesRequest.DirectMemoriesSource.Builder builderForValue) Defines a direct source of memories that should be uploaded to Memory Bank. This is similar to `CreateMemory`, but it allows for consolidation between these new memories and existing memories for the same scope.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectMemoriesSource direct_memories_source = 9; -
mergeDirectMemoriesSource
public GenerateMemoriesRequest.Builder mergeDirectMemoriesSource(GenerateMemoriesRequest.DirectMemoriesSource value) Defines a direct source of memories that should be uploaded to Memory Bank. This is similar to `CreateMemory`, but it allows for consolidation between these new memories and existing memories for the same scope.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectMemoriesSource direct_memories_source = 9; -
clearDirectMemoriesSource
Defines a direct source of memories that should be uploaded to Memory Bank. This is similar to `CreateMemory`, but it allows for consolidation between these new memories and existing memories for the same scope.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectMemoriesSource direct_memories_source = 9; -
getDirectMemoriesSourceBuilder
Defines a direct source of memories that should be uploaded to Memory Bank. This is similar to `CreateMemory`, but it allows for consolidation between these new memories and existing memories for the same scope.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectMemoriesSource direct_memories_source = 9; -
getDirectMemoriesSourceOrBuilder
Defines a direct source of memories that should be uploaded to Memory Bank. This is similar to `CreateMemory`, but it allows for consolidation between these new memories and existing memories for the same scope.
.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectMemoriesSource direct_memories_source = 9;- Specified by:
getDirectMemoriesSourceOrBuilderin interfaceGenerateMemoriesRequestOrBuilder
-
getParent
Required. The resource name of the ReasoningEngine to generate memories for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceGenerateMemoriesRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The resource name of the ReasoningEngine to generate memories for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceGenerateMemoriesRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The resource name of the ReasoningEngine to generate memories for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Required. The resource name of the ReasoningEngine to generate memories for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
Required. The resource name of the ReasoningEngine to generate memories for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getDisableConsolidation
public boolean getDisableConsolidation()Optional. If true, generated memories will not be consolidated with existing memories; all generated memories will be added as new memories regardless of whether they are duplicates of or contradictory to existing memories. By default, memory consolidation is enabled.
bool disable_consolidation = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisableConsolidationin interfaceGenerateMemoriesRequestOrBuilder- Returns:
- The disableConsolidation.
-
setDisableConsolidation
Optional. If true, generated memories will not be consolidated with existing memories; all generated memories will be added as new memories regardless of whether they are duplicates of or contradictory to existing memories. By default, memory consolidation is enabled.
bool disable_consolidation = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The disableConsolidation to set.- Returns:
- This builder for chaining.
-
clearDisableConsolidation
Optional. If true, generated memories will not be consolidated with existing memories; all generated memories will be added as new memories regardless of whether they are duplicates of or contradictory to existing memories. By default, memory consolidation is enabled.
bool disable_consolidation = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getScopeCount
public int getScopeCount()Description copied from interface:GenerateMemoriesRequestOrBuilderOptional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If `scope` is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.
map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getScopeCountin interfaceGenerateMemoriesRequestOrBuilder
-
containsScope
Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If `scope` is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.
map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsScopein interfaceGenerateMemoriesRequestOrBuilder
-
getScope
Deprecated.UsegetScopeMap()instead.- Specified by:
getScopein interfaceGenerateMemoriesRequestOrBuilder
-
getScopeMap
Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If `scope` is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.
map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getScopeMapin interfaceGenerateMemoriesRequestOrBuilder
-
getScopeOrDefault
Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If `scope` is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.
map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getScopeOrDefaultin interfaceGenerateMemoriesRequestOrBuilder
-
getScopeOrThrow
Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If `scope` is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.
map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getScopeOrThrowin interfaceGenerateMemoriesRequestOrBuilder
-
clearScope
-
removeScope
Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If `scope` is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.
map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableScope
Deprecated.Use alternate mutation accessors instead. -
putScope
Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If `scope` is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.
map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL]; -
putAllScope
Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If `scope` is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.
map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];
-