Class GenerateMemoriesRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest
- All Implemented Interfaces:
GenerateMemoriesRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class GenerateMemoriesRequest
extends com.google.protobuf.GeneratedMessage
implements GenerateMemoriesRequestOrBuilder
Request message for [MemoryBankService.GenerateMemories][google.cloud.aiplatform.v1beta1.MemoryBankService.GenerateMemories].Protobuf type
google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest message for [MemoryBankService.GenerateMemories][google.cloud.aiplatform.v1beta1.MemoryBankService.GenerateMemories].static final classDefines a direct source of content from which to generate the memories.static interfacestatic final classDefines a direct source of memories that should be uploaded to Memory Bank with consolidation.static interfacestatic enumstatic final classDefines an Agent Engine Session from which to generate the memories.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsScope(String key) Optional.booleanstatic GenerateMemoriesRequeststatic final com.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 memories that should be uploaded to Memory Bank.Defines a direct source of memories that should be uploaded to Memory Bank.booleanOptional.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<GenerateMemoriesRequest>getScope()Deprecated.intOptional.Optional.getScopeOrDefault(String key, String defaultValue) Optional.getScopeOrThrow(String key) Optional.intDefines 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.inthashCode()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) final booleannewBuilder(GenerateMemoriesRequest prototype) protected GenerateMemoriesRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static GenerateMemoriesRequestparseDelimitedFrom(InputStream input) static GenerateMemoriesRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerateMemoriesRequestparseFrom(byte[] data) static GenerateMemoriesRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerateMemoriesRequestparseFrom(com.google.protobuf.ByteString data) static GenerateMemoriesRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerateMemoriesRequestparseFrom(com.google.protobuf.CodedInputStream input) static GenerateMemoriesRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerateMemoriesRequestparseFrom(InputStream input) static GenerateMemoriesRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerateMemoriesRequestparseFrom(ByteBuffer data) static GenerateMemoriesRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GenerateMemoriesRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
VERTEX_SESSION_SOURCE_FIELD_NUMBER
public static final int VERTEX_SESSION_SOURCE_FIELD_NUMBER- See Also:
-
DIRECT_CONTENTS_SOURCE_FIELD_NUMBER
public static final int DIRECT_CONTENTS_SOURCE_FIELD_NUMBER- See Also:
-
DIRECT_MEMORIES_SOURCE_FIELD_NUMBER
public static final int DIRECT_MEMORIES_SOURCE_FIELD_NUMBER- See Also:
-
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER- See Also:
-
DISABLE_CONSOLIDATION_FIELD_NUMBER
public static final int DISABLE_CONSOLIDATION_FIELD_NUMBER- See Also:
-
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER- See Also:
-
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getSourceCase
- Specified by:
getSourceCasein interfaceGenerateMemoriesRequestOrBuilder
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GenerateMemoriesRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateMemoriesRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateMemoriesRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateMemoriesRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateMemoriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateMemoriesRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GenerateMemoriesRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GenerateMemoriesRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GenerateMemoriesRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GenerateMemoriesRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GenerateMemoriesRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-