public Endpoint CreateEndpoint( string projectId = "my-project", string locationId = "us-east1", string namespaceId = "test-namespace", string serviceId = "test-service", string endpointId = "test-endpoint") { RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create(); var serviceName = ServiceName.FromProjectLocationNamespaceService(projectId, locationId, namespaceId, serviceId); return(registrationServiceClient.CreateEndpoint(serviceName, new Endpoint(), endpointId)); }