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:
  • 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:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getSourceCase

      public GenerateMemoriesRequest.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface GenerateMemoriesRequestOrBuilder
    • 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:
      hasVertexSessionSource in interface GenerateMemoriesRequestOrBuilder
      Returns:
      Whether the vertexSessionSource field is set.
    • getVertexSessionSource

      public GenerateMemoriesRequest.VertexSessionSource 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:
      getVertexSessionSource in interface GenerateMemoriesRequestOrBuilder
      Returns:
      The vertexSessionSource.
    • getVertexSessionSourceOrBuilder

      public GenerateMemoriesRequest.VertexSessionSourceOrBuilder 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:
      getVertexSessionSourceOrBuilder in interface GenerateMemoriesRequestOrBuilder
    • 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:
      hasDirectContentsSource in interface GenerateMemoriesRequestOrBuilder
      Returns:
      Whether the directContentsSource field is set.
    • getDirectContentsSource

      public GenerateMemoriesRequest.DirectContentsSource 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:
      getDirectContentsSource in interface GenerateMemoriesRequestOrBuilder
      Returns:
      The directContentsSource.
    • getDirectContentsSourceOrBuilder

      public GenerateMemoriesRequest.DirectContentsSourceOrBuilder 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:
      getDirectContentsSourceOrBuilder in interface GenerateMemoriesRequestOrBuilder
    • 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:
      hasDirectMemoriesSource in interface GenerateMemoriesRequestOrBuilder
      Returns:
      Whether the directMemoriesSource field is set.
    • getDirectMemoriesSource

      public GenerateMemoriesRequest.DirectMemoriesSource 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:
      getDirectMemoriesSource in interface GenerateMemoriesRequestOrBuilder
      Returns:
      The directMemoriesSource.
    • getDirectMemoriesSourceOrBuilder

      public GenerateMemoriesRequest.DirectMemoriesSourceOrBuilder 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:
      getDirectMemoriesSourceOrBuilder in interface GenerateMemoriesRequestOrBuilder
    • getParent

      public String 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:
      getParent in interface GenerateMemoriesRequestOrBuilder
      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:
      getParentBytes in interface GenerateMemoriesRequestOrBuilder
      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:
      getDisableConsolidation in interface GenerateMemoriesRequestOrBuilder
      Returns:
      The disableConsolidation.
    • getScopeCount

      public int getScopeCount()
      Description copied from interface: GenerateMemoriesRequestOrBuilder
       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:
      getScopeCount in interface GenerateMemoriesRequestOrBuilder
    • containsScope

      public boolean containsScope(String key)
       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:
      containsScope in interface GenerateMemoriesRequestOrBuilder
    • getScope

      @Deprecated public Map<String,String> getScope()
      Deprecated.
      Use getScopeMap() instead.
      Specified by:
      getScope in interface GenerateMemoriesRequestOrBuilder
    • getScopeMap

      public Map<String,String> 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:
      getScopeMap in interface GenerateMemoriesRequestOrBuilder
    • getScopeOrDefault

      public String getScopeOrDefault(String key, String defaultValue)
       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:
      getScopeOrDefault in interface GenerateMemoriesRequestOrBuilder
    • getScopeOrThrow

      public String getScopeOrThrow(String key)
       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:
      getScopeOrThrow in interface GenerateMemoriesRequestOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static GenerateMemoriesRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GenerateMemoriesRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GenerateMemoriesRequest parseDelimitedFrom(InputStream input) throws IOException
      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

      public GenerateMemoriesRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GenerateMemoriesRequest.Builder newBuilder()
    • newBuilder

      public static GenerateMemoriesRequest.Builder newBuilder(GenerateMemoriesRequest prototype)
    • toBuilder

      public GenerateMemoriesRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GenerateMemoriesRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GenerateMemoriesRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GenerateMemoriesRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<GenerateMemoriesRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public GenerateMemoriesRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder