1.1.0 (latest) 1.0.0

```python
public sealed class PythonCodeCondition : IMessage<PythonCodeCondition>, IEquatable<PythonCodeCondition>, IDeepCloneable<PythonCodeCondition>, IBufferMessage, IMessage
```
Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class PythonCodeCondition.

Python code block to evaluate the condition.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PythonCodeCondition

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[PythonCodeCondition](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.PythonCodeCondition.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PythonCodeCondition](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.PythonCodeCondition.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[PythonCodeCondition](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.PythonCodeCondition.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Ces.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.md.txt)

## Assembly

Google.Cloud.Ces.V1.dll

## Constructors

### PythonCodeCondition()

```python
public PythonCodeCondition()
```

### PythonCodeCondition(PythonCodeCondition)

```python
public PythonCodeCondition(PythonCodeCondition other)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `PythonCodeCondition` |

## Properties

### PythonCode

```python
public string PythonCode { get; set; }
```
Required. The python code to execute.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |