> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ansys::dpf::RuntimeClientConfig Class Reference

`#include <dpf_api.h>`

Inherits ansys::dpf::RuntimeConfig.

## Public Member Functions

| Type | Name |
| - | - |
| | **RuntimeClientConfig** ([RuntimeClientConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1RuntimeClientConfig.md) const \&rhs) |
| | **RuntimeClientConfig** ([RuntimeClientConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1RuntimeClientConfig.md) &\&rhs) noexcept |
| void | [enableCache](#ab83354eaf4d8646fd7d06e0f5dbdafaf) (bool use\_cache) |
| bool | [isCacheEnabled](#aac0f20eaf4cb412d3ef03d787ac38f06) () const |
| void | [setStreamingBufferSize](#a286701384f2b37237c61f20d1c24eae6) (int size) |
| int | [getStreamingBufferSize](#a31e99b0bf8468a58ca3b5bcaa1412fe6) () const |
| void | [setStreamFloatsInsteadOfDoubles](#a380e861289e9683a04ca84c250b0ecf7) (bool use\_float) |
| bool | [streamingFloatsInsteadOfDouble](#a38db32f9104c3c2884a734a7cf606ed7) () const |
| void | [setMetadata](#accdb5f4e700803b8bd6b6cf8cb8623d1) (std::map\< std::string, std::string > const \&metadata) |
| std::map\< std::string, std::string > | [getMetadata](#afd80c6f61d3503fff0667191937dfae8) () const |
| void | [setSecureConnection](#aff6f9df92453eff0bea05c9ce2c96a3b) (bool secure) |
| bool | [isConnectionSecure](#adb4e00bb129ca912c50e719176d29e59) () const |

## Detailed Description

enables to set runtime configuration options to DPF [Client](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r1/classansys_1_1dpf_1_1Client.md).

## Member Function Documentation

### enableCache()

```cpp theme={null}
void ansys::dpf::RuntimeClientConfig::enableCache(bool use_cache)
```

Sets whether gRPC calls should be intercepted to cache responses or not.

### getMetadata()

```cpp theme={null}
std::map< std::string, std::string > ansys::dpf::RuntimeClientConfig::getMetadata() const
```

Gets the custom metadata appended to gRPC packets.

### getStreamingBufferSize()

```cpp theme={null}
int ansys::dpf::RuntimeClientConfig::getStreamingBufferSize() const
```

**Returns**

the chunk size (in bytes) used in gRPC streaming calls.

### isCacheEnabled()

```cpp theme={null}
bool ansys::dpf::RuntimeClientConfig::isCacheEnabled() const
```

**Returns**

Whether gRPC calls are intercepted to cache responses or not.

### isConnectionSecure()

```cpp theme={null}
bool ansys::dpf::RuntimeClientConfig::isConnectionSecure() const
```

Returns if the gRPC communication is secured by using TLS.

### setMetadata()

```cpp theme={null}
void ansys::dpf::RuntimeClientConfig::setMetadata(
    std::map< std::string, std::string > const & metadata
)
```

Sets the custom metadata appended to gRPC packets.

### setSecureConnection()

```cpp theme={null}
void ansys::dpf::RuntimeClientConfig::setSecureConnection(bool secure)
```

Sets the use of TLS for secure gRPC connections.

### setStreamFloatsInsteadOfDoubles()

```cpp theme={null}
void ansys::dpf::RuntimeClientConfig::setStreamFloatsInsteadOfDoubles(bool use_float)
```

Sets whether double values (8 bytes) should be converted and streamed as floats values (4 bytes) in gRPC streaming calls.

### setStreamingBufferSize()

```cpp theme={null}
void ansys::dpf::RuntimeClientConfig::setStreamingBufferSize(int size)
```

Sets the chunk size (in bytes) used in gRPC streaming calls.

### streamingFloatsInsteadOfDouble()

```cpp theme={null}
bool ansys::dpf::RuntimeClientConfig::streamingFloatsInsteadOfDouble() const
```

**Returns**

Whether double values (8 bytes) are converted and streamed as floats values (4 bytes) in gRPC streaming calls.
