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 document provides reference documentation for the \u003ccode\u003eCreateServiceRequest\u003c/code\u003e class within the Google Cloud Service Directory v1 API, specifically version 2.5.0, and details how to create services.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API documented is 2.6.0, but several earlier versions are also available for reference, including 2.5.0, 2.4.0, 2.3.0, 2.2.0, 2.1.0, 2.0.0, 1.4.0, 1.3.0, 1.2.0, 1.1.0 and 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateServiceRequest\u003c/code\u003e is a sealed class that implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<CreateServiceRequest>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<CreateServiceRequest>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, offering functionalities such as deep cloning and buffer message handling.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eCreateServiceRequest\u003c/code\u003e class include \u003ccode\u003eParent\u003c/code\u003e (the namespace to which the service belongs), \u003ccode\u003eParentAsNamespaceName\u003c/code\u003e (a typed view of \u003ccode\u003eParent\u003c/code\u003e), \u003ccode\u003eService\u003c/code\u003e (initial fields for the service), and \u003ccode\u003eServiceId\u003c/code\u003e (the unique identifier of the service following RFC1035 guidelines).\u003c/p\u003e\n"],["\u003cp\u003eThe CreateServiceRequest class includes the constructors \u003ccode\u003eCreateServiceRequest()\u003c/code\u003e and \u003ccode\u003eCreateServiceRequest(CreateServiceRequest other)\u003c/code\u003e for different ways of constructing the class.\u003c/p\u003e\n"]]],[],null,[]]