    public sealed class SerializedPolicy : IMessage<SerializedPolicy>, IEquatable<SerializedPolicy>, IDeepCloneable<SerializedPolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the Design Center v1 API class SerializedPolicy.

Serialized policy.

## Inheritance

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

## Implements

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

## 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.DesignCenter.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1)

## Assembly

Google.Cloud.DesignCenter.V1.dll

## Constructors

### SerializedPolicy()

    public SerializedPolicy()

### SerializedPolicy(SerializedPolicy)

    public SerializedPolicy(SerializedPolicy other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.SerializedPolicy` |

## Properties

### ApplyConditions

    public RepeatedField<ApplyCondition> ApplyConditions { get; }

Optional. The serialized policy apply conditions.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.ApplyCondition` |   |

### CloudControlConfigs

    public RepeatedField<CloudControlConfig> CloudControlConfigs { get; }

Optional. Stored parameter values grouped by cloud control.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.CloudControlConfig` |   |

### Description

    public string Description { get; set; }

Optional. The serialized policy description.
At most 2048 characters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DisplayName

    public string DisplayName { get; set; }

Optional. The serialized policy display name.
The number of characters should be less than 128 characters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### HasPolicyRevisionUri

    public bool HasPolicyRevisionUri { get; }

Gets whether the "policy_revision_uri" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasPolicyUri

    public bool HasPolicyUri { get; }

Gets whether the "policy_uri" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### PolicyRevisionUri

    public string PolicyRevisionUri { get; set; }

Optional. URI of the policy revision.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PolicyType

    public SerializedPolicy.Types.PolicyType PolicyType { get; set; }

Required. Policy type will be used to determine the domain of the policy.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.SerializedPolicyhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.SerializedPolicy.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.SerializedPolicy.Types.PolicyType` |   |

### PolicyUri

    public string PolicyUri { get; set; }

Optional. URI of the policy.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### SourceUriCase

    public SerializedPolicy.SourceUriOneofCase SourceUriCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.SerializedPolicyhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DesignCenter.V1/latest/Google.Cloud.DesignCenter.V1.SerializedPolicy.SourceUriOneofCase` |   |

### Uri

    public string Uri { get; set; }

Required. The uri of the policy in application template.
Format:
`projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/policies/{policy}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |