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 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.Builder<GenerateMemoriesRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GenerateMemoriesRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public GenerateMemoriesRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateMemoriesRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateMemoriesRequest.Builder>
      Throws:
      IOException
    • getSourceCase

      public GenerateMemoriesRequest.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface GenerateMemoriesRequestOrBuilder
    • clearSource

      public GenerateMemoriesRequest.Builder 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:
      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.
    • setVertexSessionSource

       Defines a Vertex Session as the source content from which to generate
       memories.
       
      .google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;
    • setVertexSessionSource

       Defines a Vertex Session as the source content from which to generate
       memories.
       
      .google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;
    • mergeVertexSessionSource

       Defines a Vertex Session as the source content from which to generate
       memories.
       
      .google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;
    • clearVertexSessionSource

      public GenerateMemoriesRequest.Builder 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

      public GenerateMemoriesRequest.VertexSessionSource.Builder 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

      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.
    • setDirectContentsSource

       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

       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

       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

      public GenerateMemoriesRequest.Builder 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

      public GenerateMemoriesRequest.DirectContentsSource.Builder 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

      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.
    • setDirectMemoriesSource

       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

       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

       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

      public GenerateMemoriesRequest.Builder 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

      public GenerateMemoriesRequest.DirectMemoriesSource.Builder 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

      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.
    • setParent

      public GenerateMemoriesRequest.Builder setParent(String value)
       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

      public GenerateMemoriesRequest.Builder 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

      public GenerateMemoriesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       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:
      getDisableConsolidation in interface GenerateMemoriesRequestOrBuilder
      Returns:
      The disableConsolidation.
    • setDisableConsolidation

      public GenerateMemoriesRequest.Builder setDisableConsolidation(boolean value)
       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

      public GenerateMemoriesRequest.Builder 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: 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
    • clearScope

      public GenerateMemoriesRequest.Builder clearScope()
    • removeScope

      public GenerateMemoriesRequest.Builder removeScope(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];
    • getMutableScope

      @Deprecated public Map<String,String> getMutableScope()
      Deprecated.
      Use alternate mutation accessors instead.
    • putScope

      public GenerateMemoriesRequest.Builder putScope(String key, String value)
       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

      public GenerateMemoriesRequest.Builder putAllScope(Map<String,String> values)
       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];