# Class SearchMemoryResponse.Builder

java.lang.Object
com.google.adk.memory.SearchMemoryResponse.Builder

Enclosing class:
  `SearchMemoryResponse`

public abstract static class SearchMemoryResponse.Builder extends Object
Builder for `SearchMemoryResponse`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Builder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract SearchMemoryResponse`
  `build()`
  Builds the immutable `SearchMemoryResponse` object.
  `abstract SearchMemoryResponse.Builder`
  `memories(com.google.common.collect.ImmutableList<MemoryEntry> memories)`
  `SearchMemoryResponse.Builder`
  `memories(List<MemoryEntry> memories)`
  `final SearchMemoryResponse.Builder`
  `setMemories(com.google.common.collect.ImmutableList<MemoryEntry> memories)`
  Deprecated.
  `final SearchMemoryResponse.Builder`
  `setMemories(List<MemoryEntry> memories)`
  Deprecated.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Builder

    public Builder()

- ## Method Details

  - ### setMemories

    @Deprecated @CanIgnoreReturnValue public final SearchMemoryResponse.Builder setMemories(com.google.common.collect.ImmutableList<MemoryEntry> memories)
    Deprecated.

  - ### setMemories

    @Deprecated @CanIgnoreReturnValue public final SearchMemoryResponse.Builder setMemories(List<MemoryEntry> memories)
    Deprecated.
    Sets the list of memory entries using a list.

  - ### memories

    @CanIgnoreReturnValue public abstract SearchMemoryResponse.Builder memories(com.google.common.collect.ImmutableList<MemoryEntry> memories)

  - ### memories

    @CanIgnoreReturnValue public SearchMemoryResponse.Builder memories(List<MemoryEntry> memories)

  - ### build

    public abstract SearchMemoryResponse build()
    Builds the immutable `SearchMemoryResponse` object.