2.21.0 (latest) 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.1 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Contact Center AI Insights v1 API class AnalysisRule.

The CCAI Insights project wide analysis rule. This rule will be applied to
all conversations that match the filter defined in the rule. For a
conversation matches the filter, the annotators specified in the rule will be
run. If a conversation matches multiple rules, a union of all the annotators
will be run. One project can have multiple analysis rules.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[AnalysisRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.AnalysisRule.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AnalysisRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.AnalysisRule.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[AnalysisRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.AnalysisRule.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.ContactCenterInsights.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.md.txt)

## Assembly

Google.Cloud.ContactCenterInsights.V1.dll

## Constructors

### AnalysisRule()

    public AnalysisRule()

### AnalysisRule(AnalysisRule)

    public AnalysisRule(AnalysisRule other)

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

## Properties

### Active

    public bool Active { get; set; }

If true, apply this rule to conversations. Otherwise, this rule is
inactive and saved as a draft.

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

### AnalysisPercentage

    public double AnalysisPercentage { get; set; }

Percentage of conversations that we should apply this analysis setting
automatically, between \[0, 1\]. For example, 0.1 means 10%. Conversations
are sampled in a determenestic way. The original runtime_percentage \&
upload percentage will be replaced by defining filters on the conversation.

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

### AnalysisRuleName

    public AnalysisRuleName AnalysisRuleName { get; set; }

[AnalysisRuleName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.AnalysisRuleName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.AnalysisRule.md.txt#Google_Cloud_ContactCenterInsights_V1_AnalysisRule_Name) resource name property.

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

### AnnotatorSelector

    public AnnotatorSelector AnnotatorSelector { get; set; }

Selector of annotators to run and the phrase matchers to use for
conversations that matches the conversation_filter. If not specified, NO
annotators will be run.

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

### ConversationFilter

    public string ConversationFilter { get; set; }

Filter for the conversations that should apply this analysis
rule. An empty filter means this analysis rule applies to all
conversations.

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

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time at which this analysis rule was created.

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

### DisplayName

    public string DisplayName { get; set; }

Display Name of the analysis rule.

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

### HasDisplayName

    public bool HasDisplayName { get; }

Gets whether the "display_name" field is set

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

### Name

    public string Name { get; set; }

Identifier. The resource name of the analysis rule.
Format:
projects/{project}/locations/{location}/analysisRules/{analysis_rule}

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

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The most recent time at which this analysis rule was updated.

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