Generated from protobuf messagegoogle.cloud.servicedirectory.v1.CreateServiceRequest
Namespace
Google \ Cloud \ ServiceDirectory \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The resource name of the namespace this service will belong to.
↳ service_id
string
Required. The Resource ID must be 1-63 characters long, and comply withRFC1035. 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.
Required. The resource name of the namespace this service will belong to.
Returns
Type
Description
string
setParent
Required. The resource name of the namespace this service will belong to.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getServiceId
Required. The Resource ID must be 1-63 characters long, and comply withRFC1035.
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.
Returns
Type
Description
string
setServiceId
Required. The Resource ID must be 1-63 characters long, and comply withRFC1035.
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.
Required. The resource name of the namespace this service will belong to. Please seeRegistrationServiceClient::namespaceName()for help formatting this field.
Required. The Resource ID must be 1-63 characters long, and comply withRFC1035.
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"]],[["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-04 UTC."],[],[],null,["# Google Cloud Service Directory V1 Client - Class CreateServiceRequest (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-service-directory/latest/V1.CreateServiceRequest)\n- [2.0.5](/php/docs/reference/cloud-service-directory/2.0.5/V1.CreateServiceRequest)\n- [1.3.6](/php/docs/reference/cloud-service-directory/1.3.6/V1.CreateServiceRequest)\n- [1.2.1](/php/docs/reference/cloud-service-directory/1.2.1/V1.CreateServiceRequest)\n- [1.1.2](/php/docs/reference/cloud-service-directory/1.1.2/V1.CreateServiceRequest)\n- [1.0.5](/php/docs/reference/cloud-service-directory/1.0.5/V1.CreateServiceRequest) \nReference documentation and code samples for the Google Cloud Service Directory V1 Client class CreateServiceRequest.\n\nThe request message for\n[RegistrationService.CreateService](/php/docs/reference/cloud-service-directory/latest/V1.Client.RegistrationServiceClient#_Google_Cloud_ServiceDirectory_V1_Client_RegistrationServiceClient__createService__).\n\nGenerated from protobuf message `google.cloud.servicedirectory.v1.CreateServiceRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceDirectory \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The resource name of the namespace this service will belong to.\n\n### setParent\n\nRequired. The resource name of the namespace this service will belong to.\n\n### getServiceId\n\nRequired. The Resource ID must be 1-63 characters long, and comply with\n[RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n\nSpecifically, the name must be 1-63 characters long and match the regular\nexpression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first\ncharacter must be a lowercase letter, and all following characters must\nbe a dash, lowercase letter, or digit, except the last character, which\ncannot be a dash.\n\n### setServiceId\n\nRequired. The Resource ID must be 1-63 characters long, and comply with\n[RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n\nSpecifically, the name must be 1-63 characters long and match the regular\nexpression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first\ncharacter must be a lowercase letter, and all following characters must\nbe a dash, lowercase letter, or digit, except the last character, which\ncannot be a dash.\n\n### getService\n\nRequired. A service with initial fields set.\n\n### hasService\n\n### clearService\n\n### setService\n\nRequired. A service with initial fields set.\n\n### static::build"]]