> ## 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.

# Class ansys::dpf::RuntimeClientConfig

![][C++]
![][public]

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

**Inherits from**:

* ansys::dpf::RuntimeConfig

## Members

* [enableCache](#classansys-dpf-runtimeclientconfig-1ab83354eaf4d8646fd7d06e0f5dbdafaf)
* [getAvailableOptions](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1add61c48a143d2603ab22e1028dc8a25f)
* [getBoolValue](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1aa611e355441057cef04ef164008da8c8)
* [getDoubleValue](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1abcbfdbc481d8fe2c2d5454830104b216)
* [getIntValue](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1a155763466ea3c190bf5b5090080edeae)
* [getMetadata](#classansys-dpf-runtimeclientconfig-1afd80c6f61d3503fff0667191937dfae8)
* [getStreamingBufferSize](#classansys-dpf-runtimeclientconfig-1a31e99b0bf8468a58ca3b5bcaa1412fe6)
* [getStringValue](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1ae73075c73be83d06188b1708b8ebff47)
* [isCacheEnabled](#classansys-dpf-runtimeclientconfig-1aac0f20eaf4cb412d3ef03d787ac38f06)
* [isConnectionSecure](#classansys-dpf-runtimeclientconfig-1adb4e00bb129ca912c50e719176d29e59)
* [RuntimeClientConfig](#classansys-dpf-runtimeclientconfig-1a0ae5e33053e62969b2968019c869b693)
* [RuntimeClientConfig](#classansys-dpf-runtimeclientconfig-1adec9994df2fb0d2b4717c300a69ed0c2)
* [RuntimeConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1ab8144e943554f8eaab1002be7b92c8cd)
* [RuntimeConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1af6f35d3d6b1aec5480004ae4ed1fe625)
* [set](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1ab1b88cf95976b49097ccc460bf8035ed)
* [set](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1a02d687d1252675cab169991475aa343d)
* [set](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1af559e97f012ddd2a31dbbf4185b4cfe5)
* [set](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1aef94b87f0abba8d508181b8fa62af304)
* [setMetadata](#classansys-dpf-runtimeclientconfig-1accdb5f4e700803b8bd6b6cf8cb8623d1)
* [setSecureConnection](#classansys-dpf-runtimeclientconfig-1aff6f9df92453eff0bea05c9ce2c96a3b)
* [setStreamFloatsInsteadOfDoubles](#classansys-dpf-runtimeclientconfig-1a380e861289e9683a04ca84c250b0ecf7)
* [setStreamingBufferSize](#classansys-dpf-runtimeclientconfig-1a286701384f2b37237c61f20d1c24eae6)
* [setSubOption](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-runtimeconfig.md#classansys-dpf-runtimeconfig-1aa7dcdc58bbf5639bad4036ded9785905)
* [streamingFloatsInsteadOfDouble](#classansys-dpf-runtimeclientconfig-1a38db32f9104c3c2884a734a7cf606ed7)

## Friends

## Public functions

### Function RuntimeClientConfig

![][public]

```cpp theme={null}
ansys::dpf::RuntimeClientConfig::RuntimeClientConfig(RuntimeClientConfig const &rhs)
```

**Parameters**:

* RuntimeClientConfig const & **rhs**

**Return type**:

### Function RuntimeClientConfig

![][public]

```cpp theme={null}
ansys::dpf::RuntimeClientConfig::RuntimeClientConfig(RuntimeClientConfig &&rhs) noexcept
```

**Parameters**:

* RuntimeClientConfig && **rhs**

**Return type**:

### Function enableCache

![][public]

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

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

**Parameters**:

* bool **use\_cache**

**Return type**: void

### Function isCacheEnabled

![][public]
![][const]

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

**Returns**:

Whether gRPC calls are intercepted to cache responses or not.

**Return type**: bool

### Function setStreamingBufferSize

![][public]

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

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

**Parameters**:

* int **size**

**Return type**: void

### Function getStreamingBufferSize

![][public]
![][const]

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

**Returns**:

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

**Return type**: int

### Function setStreamFloatsInsteadOfDoubles

![][public]

```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.

**Parameters**:

* bool **use\_float**

**Return type**: void

### Function streamingFloatsInsteadOfDouble

![][public]
![][const]

```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.

**Return type**: bool

### Function setMetadata

![][public]

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

Sets the custom metadata appended to gRPC packets.

**Parameters**:

* std::map\< std::string, std::string > const & **metadata**

**Return type**: void

### Function getMetadata

![][public]
![][const]

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

Gets the custom metadata appended to gRPC packets.

**Return type**: std::map\< std::string, std::string >

### Function setSecureConnection

![][public]

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

Sets the use of TLS for secure gRPC connections.

**Parameters**:

* bool **secure**

**Return type**: void

### Function isConnectionSecure

![][public]
![][const]

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

Returns if the gRPC communication is secured by using TLS.

**Return type**: bool

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[static]: https://img.shields.io/badge/-static-lightgrey "static"
