Google Cloud Service Directory V1 Client - Class CreateEndpointRequest (1.2.1)

Reference documentation and code samples for the Google Cloud Service Directory V1 Client class CreateEndpointRequest.

The request message for RegistrationService.CreateEndpoint.

Generated from protobuf message google.cloud.servicedirectory.v1.CreateEndpointRequest

Namespace

Google \ Cloud \ ServiceDirectory \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource name of the service that this endpoint provides.

↳ endpoint_id string

Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. 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.

↳ endpoint Google\Cloud\ServiceDirectory\V1\Endpoint

Required. A endpoint with initial fields set.

getParent

Required. The resource name of the service that this endpoint provides.

Returns
TypeDescription
string

setParent

Required. The resource name of the service that this endpoint provides.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEndpointId

Required. The Resource ID must be 1-63 characters long, and comply with RFC1035.

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
TypeDescription
string

setEndpointId

Required. The Resource ID must be 1-63 characters long, and comply with RFC1035.

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEndpoint

Required. A endpoint with initial fields set.

Returns
TypeDescription
Google\Cloud\ServiceDirectory\V1\Endpoint|null

hasEndpoint

clearEndpoint

setEndpoint

Required. A endpoint with initial fields set.

Parameter
NameDescription
var Google\Cloud\ServiceDirectory\V1\Endpoint
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The resource name of the service that this endpoint provides. Please see Google\Cloud\ServiceDirectory\V1\RegistrationServiceClient::serviceName() for help formatting this field.

endpoint Google\Cloud\ServiceDirectory\V1\Endpoint

Required. A endpoint with initial fields set.

endpointId string

Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. 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
TypeDescription
Google\Cloud\ServiceDirectory\V1\CreateEndpointRequest