public sealed class CreateAnalysisRuleRequest : IMessage<CreateAnalysisRuleRequest>, IEquatable<CreateAnalysisRuleRequest>, IDeepCloneable<CreateAnalysisRuleRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Contact Center AI Insights v1 API class CreateAnalysisRuleRequest.
The request to create a analysis rule.
analysis_rule_id will be generated by the server.
Required. The parent resource of the analysis rule. Required. The location
to create a analysis rule for. Format: projects/<Project
ID>/locations/<Location ID> or projects/<Project
Number>/locations/<Location ID>
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreateAnalysisRuleRequest\u003c/code\u003e class is part of the Google Cloud Contact Center AI Insights v1 API and is used to create a request for a new analysis rule.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eCreateAnalysisRuleRequest\u003c/code\u003e documentation is 2.19.0, with a range of previous versions available from 1.0.0 to 2.18.0, all found under the namespace \u003ccode\u003eGoogle.Cloud.ContactCenterInsights.V1\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties for \u003ccode\u003eAnalysisRule\u003c/code\u003e (the analysis rule resource to create), \u003ccode\u003eParent\u003c/code\u003e (the parent resource of the analysis rule), and \u003ccode\u003eParentAsLocationName\u003c/code\u003e (a \u003ccode\u003eLocationName\u003c/code\u003e-typed view of the \u003ccode\u003eParent\u003c/code\u003e resource name).\u003c/p\u003e\n"],["\u003cp\u003eThe server generates the analysis_rule_id, and it is implemented in the Assembly Google.Cloud.ContactCenterInsights.V1.dll.\u003c/p\u003e\n"]]],[],null,["# Contact Center AI Insights v1 API - Class CreateAnalysisRuleRequest (2.19.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.19.0 (latest)](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.18.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.18.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.17.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.16.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.15.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.14.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.13.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.12.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.11.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.10.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.9.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.8.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.7.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.6.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.5.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.4.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.3.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.2.1](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.2.1/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.1.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.0.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.3.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.2.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.1.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.0.0/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest) \n\n public sealed class CreateAnalysisRuleRequest : IMessage\u003cCreateAnalysisRuleRequest\u003e, IEquatable\u003cCreateAnalysisRuleRequest\u003e, IDeepCloneable\u003cCreateAnalysisRuleRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Contact Center AI Insights v1 API class CreateAnalysisRuleRequest.\n\nThe request to create a analysis rule.\nanalysis_rule_id will be generated by the server. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateAnalysisRuleRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateAnalysisRuleRequest](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateAnalysisRuleRequest](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateAnalysisRuleRequest](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ContactCenterInsights.V1](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ContactCenterInsights.V1.dll\n\nConstructors\n------------\n\n### CreateAnalysisRuleRequest()\n\n public CreateAnalysisRuleRequest()\n\n### CreateAnalysisRuleRequest(CreateAnalysisRuleRequest)\n\n public CreateAnalysisRuleRequest(CreateAnalysisRuleRequest other)\n\nProperties\n----------\n\n### AnalysisRule\n\n public AnalysisRule AnalysisRule { get; set; }\n\nRequired. The analysis rule resource to create.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent resource of the analysis rule. Required. The location\nto create a analysis rule for. Format: `projects/\u003cProject\nID\u003e/locations/\u003cLocation ID\u003e` or `projects/\u003cProject\nNumber\u003e/locations/\u003cLocation ID\u003e`\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.CreateAnalysisRuleRequest#Google_Cloud_ContactCenterInsights_V1_CreateAnalysisRuleRequest_Parent) resource name property."]]