public sealed class CreateServiceRequest : IMessage<CreateServiceRequest>, IEquatable<CreateServiceRequest>, IDeepCloneable<CreateServiceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Service Directory v1 API class CreateServiceRequest.
The request message for
[RegistrationService.CreateService][google.cloud.servicedirectory.v1.RegistrationService.CreateService].
Required. The Resource ID must be 1-63 characters long, and comply with
<a href="https://www.ietf.org/rfc/rfc1035.txt" target="_blank">RFC1035</a>.
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.
[[["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\u003eThis page provides documentation for the \u003ccode\u003eCreateServiceRequest\u003c/code\u003e class within the Google Cloud Service Directory v1 API, specifically for version 2.3.0, with links to other versions as well.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateServiceRequest\u003c/code\u003e is a request message used for the \u003ccode\u003eRegistrationService.CreateService\u003c/code\u003e method, which is responsible for creating a new service.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateServiceRequest\u003c/code\u003e class 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, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties for \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsNamespaceName\u003c/code\u003e, \u003ccode\u003eService\u003c/code\u003e, and \u003ccode\u003eServiceId\u003c/code\u003e, with \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eService\u003c/code\u003e and \u003ccode\u003eServiceId\u003c/code\u003e being required fields when creating a service, and the \u003ccode\u003eServiceId\u003c/code\u003e must comply with RFC1035 naming guidelines.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available: one default and another that takes an existing \u003ccode\u003eCreateServiceRequest\u003c/code\u003e instance as an argument, enabling object cloning.\u003c/p\u003e\n"]]],[],null,[]]