public sealed class CreateServiceRequest : IMessage<CreateServiceRequest>, IEquatable<CreateServiceRequest>, IDeepCloneable<CreateServiceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Monitoring v3 API class CreateServiceRequest.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eCreateServiceRequest\u003c/code\u003e class in the Google Cloud Monitoring v3 API is 3.15.0, but previous versions from 2.3.0 to 3.14.0 are also accessible.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateServiceRequest\u003c/code\u003e is used to create a service within the Google Cloud Monitoring API, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateServiceRequest\u003c/code\u003e class requires a parent resource name in the format of \u003ccode\u003eprojects/[PROJECT_ID_OR_NUMBER]\u003c/code\u003e and the \u003ccode\u003eService\u003c/code\u003e to be created.\u003c/p\u003e\n"],["\u003cp\u003eIt contains properties like \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsFolderName\u003c/code\u003e, \u003ccode\u003eParentAsOrganizationName\u003c/code\u003e, \u003ccode\u003eParentAsProjectName\u003c/code\u003e, \u003ccode\u003eParentAsResourceName\u003c/code\u003e, \u003ccode\u003eService\u003c/code\u003e, and \u003ccode\u003eServiceId\u003c/code\u003e that are instrumental in creating the service.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers both a default constructor \u003ccode\u003eCreateServiceRequest()\u003c/code\u003e and an overload \u003ccode\u003eCreateServiceRequest(CreateServiceRequest other)\u003c/code\u003e for creating service requests.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Monitoring v3 API - Class CreateServiceRequest (3.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.14.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.13.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.12.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.11.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.10.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.9.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.8.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.7.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.6.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.5.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.4.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.3.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.2.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.1.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.0.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.6.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.5.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.4.0/Google.Cloud.Monitoring.V3.CreateServiceRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.3.0/Google.Cloud.Monitoring.V3.CreateServiceRequest) \n\n public sealed class CreateServiceRequest : IMessage\u003cCreateServiceRequest\u003e, IEquatable\u003cCreateServiceRequest\u003e, IDeepCloneable\u003cCreateServiceRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Monitoring v3 API class CreateServiceRequest.\n\nThe `CreateService` request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateServiceRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateServiceRequest](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateServiceRequest](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateServiceRequest](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceRequest), [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.Monitoring.V3](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3)\n\nAssembly\n--------\n\nGoogle.Cloud.Monitoring.V3.dll\n\nConstructors\n------------\n\n### CreateServiceRequest()\n\n public CreateServiceRequest()\n\n### CreateServiceRequest(CreateServiceRequest)\n\n public CreateServiceRequest(CreateServiceRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Resource\n[name](https://cloud.google.com/monitoring/api/v3#project_name) of the\nparent Metrics Scope. The format is: \n\n projects/[PROJECT_ID_OR_NUMBER]\n\n### ParentAsFolderName\n\n public FolderName ParentAsFolderName { get; set; }\n\n[FolderName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.FolderName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceRequest#Google_Cloud_Monitoring_V3_CreateServiceRequest_Parent) resource name property.\n\n### ParentAsOrganizationName\n\n public OrganizationName ParentAsOrganizationName { get; set; }\n\n[OrganizationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceRequest#Google_Cloud_Monitoring_V3_CreateServiceRequest_Parent) resource name property.\n\n### ParentAsProjectName\n\n public ProjectName ParentAsProjectName { get; set; }\n\n[ProjectName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceRequest#Google_Cloud_Monitoring_V3_CreateServiceRequest_Parent) resource name property.\n\n### ParentAsResourceName\n\n public IResourceName ParentAsResourceName { get; set; }\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceRequest#Google_Cloud_Monitoring_V3_CreateServiceRequest_Parent) resource name property.\n\n### Service\n\n public Service Service { get; set; }\n\nRequired. The `Service` to create.\n\n### ServiceId\n\n public string ServiceId { get; set; }\n\nOptional. The Service id to use for this Service. If omitted, an id will be\ngenerated instead. Must match the pattern `[a-z0-9\\-]+`"]]