# SetBlobVisibilityRequest

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[T Extensions 17](https://developer.android.com/sdkExtensions)  
Summary:[Nested Classes](https://developer.android.com/reference/android/app/appsearch/SetBlobVisibilityRequest#nestedclasses)\|[Methods](https://developer.android.com/reference/android/app/appsearch/SetBlobVisibilityRequest#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/app/appsearch/SetBlobVisibilityRequest#inhmethods)  

# SetBlobVisibilityRequest

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/app/appsearch/SetBlobVisibilityRequest "View this page in Kotlin")\|Java

`
public


class
SetBlobVisibilityRequest
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.app.appsearch.SetBlobVisibilityRequest |

<br />

*** ** * ** ***

Request to configure the visibility settings of blobs in AppSearch.

Used with[AppSearchSession.setBlobVisibility](https://developer.android.com/reference/android/app/appsearch/AppSearchSession#setBlobVisibility(android.app.appsearch.SetBlobVisibilityRequest,%20java.util.concurrent.Executor,%20java.util.function.Consumer<android.app.appsearch.AppSearchResult<java.lang.Void>>))to specify visibility and display properties for blob namespaces. You can control which blob namespaces are displayed on system UI surfaces and which are accessible based on specific visibility configurations.  
**See also:**

- [AppSearchSession.openBlobForWrite(Set, Executor, Consumer)](https://developer.android.com/reference/android/app/appsearch/AppSearchSession#openBlobForWrite(java.util.Set<android.app.appsearch.AppSearchBlobHandle>,%20java.util.concurrent.Executor,%20java.util.function.Consumer<android.app.appsearch.AppSearchResult<android.app.appsearch.OpenBlobForWriteResponse>>))

## Summary

|                                                                                                                                 ### Nested classes                                                                                                                                 ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [SetBlobVisibilityRequest.Builder](https://developer.android.com/reference/android/app/appsearch/SetBlobVisibilityRequest.Builder) Builder for[SetBlobVisibilityRequest](https://developer.android.com/reference/android/app/appsearch/SetBlobVisibilityRequest)objects. |

|                                                                                                                                                                                                                                                                                                                                        ### Public methods                                                                                                                                                                                                                                                                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[Set](https://developer.android.com/reference/java/util/Set)`<`[String](https://developer.android.com/reference/java/lang/String)`>`                                                                                                                                                                                   | ` `[getNamespacesNotDisplayedBySystem](https://developer.android.com/reference/android/app/appsearch/SetBlobVisibilityRequest#getNamespacesNotDisplayedBySystem())`() ` Returns all the blob namespaces that are opted out of being displayed and visible on any system UI surface.                                                                                   |
| ` `[Map](https://developer.android.com/reference/java/util/Map)`<`[String](https://developer.android.com/reference/java/lang/String)`, `[Set](https://developer.android.com/reference/java/util/Set)`<`[SchemaVisibilityConfig](https://developer.android.com/reference/android/app/appsearch/SchemaVisibilityConfig)`>>` | ` `[getNamespacesVisibleToConfigs](https://developer.android.com/reference/android/app/appsearch/SetBlobVisibilityRequest#getNamespacesVisibleToConfigs())`() ` Returns a mapping of blob namespaces to the set of[SchemaVisibilityConfig](https://developer.android.com/reference/android/app/appsearch/SchemaVisibilityConfig)s that have access to that namespace. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public methods

### getNamespacesNotDisplayedBySystem

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[T Extensions 17](https://developer.android.com/sdkExtensions)  

```
public Set<String> getNamespacesNotDisplayedBySystem ()
```

Returns all the blob namespaces that are opted out of being displayed and visible on any system UI surface.

<br />

|                                                                                 Returns                                                                                  ||
|--------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [Set](https://developer.android.com/reference/java/util/Set)`<`[String](https://developer.android.com/reference/java/lang/String)`>` | This value cannot be`null`. <br /> |

### getNamespacesVisibleToConfigs

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[T Extensions 17](https://developer.android.com/sdkExtensions)  

```
public Map<String, Set<SchemaVisibilityConfig>> getNamespacesVisibleToConfigs ()
```

Returns a mapping of blob namespaces to the set of[SchemaVisibilityConfig](https://developer.android.com/reference/android/app/appsearch/SchemaVisibilityConfig)s that have access to that namespace.

All conditions in a single[SchemaVisibilityConfig](https://developer.android.com/reference/android/app/appsearch/SchemaVisibilityConfig)are "AND" relationship. A caller must match all conditions to have the access. All[SchemaVisibilityConfig](https://developer.android.com/reference/android/app/appsearch/SchemaVisibilityConfig)s in the set of a blob namespace are "OR" relationship. A caller could have access if they matches any[SchemaVisibilityConfig](https://developer.android.com/reference/android/app/appsearch/SchemaVisibilityConfig)in the set.

This method provides the set of[SchemaVisibilityConfig](https://developer.android.com/reference/android/app/appsearch/SchemaVisibilityConfig)for all blob namespaces.

<br />

|                                                                                                                                                                          Returns                                                                                                                                                                           ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [Map](https://developer.android.com/reference/java/util/Map)`<`[String](https://developer.android.com/reference/java/lang/String)`, `[Set](https://developer.android.com/reference/java/util/Set)`<`[SchemaVisibilityConfig](https://developer.android.com/reference/android/app/appsearch/SchemaVisibilityConfig)`>>` | This value cannot be`null`. <br /> |

**See also:**

- [SetBlobVisibilityRequest.Builder.addNamespaceVisibleToConfig(String, SchemaVisibilityConfig)](https://developer.android.com/reference/android/app/appsearch/SetBlobVisibilityRequest.Builder#addNamespaceVisibleToConfig(java.lang.String,%20android.app.appsearch.SchemaVisibilityConfig))