[[["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 Eventarc V1 Client - Class CreateEnrollmentRequest (2.1.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.5 (latest)](/php/docs/reference/cloud-eventarc/latest/V1.CreateEnrollmentRequest)\n- [2.1.4](/php/docs/reference/cloud-eventarc/2.1.4/V1.CreateEnrollmentRequest)\n- [2.0.1](/php/docs/reference/cloud-eventarc/2.0.1/V1.CreateEnrollmentRequest)\n- [1.3.5](/php/docs/reference/cloud-eventarc/1.3.5/V1.CreateEnrollmentRequest)\n- [1.2.2](/php/docs/reference/cloud-eventarc/1.2.2/V1.CreateEnrollmentRequest)\n- [1.1.1](/php/docs/reference/cloud-eventarc/1.1.1/V1.CreateEnrollmentRequest)\n- [1.0.5](/php/docs/reference/cloud-eventarc/1.0.5/V1.CreateEnrollmentRequest) \nReference documentation and code samples for the Google Cloud Eventarc V1 Client class CreateEnrollmentRequest.\n\nThe request message for the CreateEnrollment method.\n\nGenerated from protobuf message `google.cloud.eventarc.v1.CreateEnrollmentRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Eventarc \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The parent collection in which to add this enrollment.\n\n### setParent\n\nRequired. The parent collection in which to add this enrollment.\n\n### getEnrollment\n\nRequired. The enrollment to create.\n\n### hasEnrollment\n\n### clearEnrollment\n\n### setEnrollment\n\nRequired. The enrollment to create.\n\n### getEnrollmentId\n\nRequired. The user-provided ID to be assigned to the Enrollment. It should\nmatch the format (\\^[a-z](/php/docs/reference/cloud-eventarc/latest/[a-z0-9-]{0,61}[a-z0-9])?$).\n\n### setEnrollmentId\n\nRequired. The user-provided ID to be assigned to the Enrollment. It should\nmatch the format (\\^[a-z](/php/docs/reference/cloud-eventarc/latest/[a-z0-9-]{0,61}[a-z0-9])?$).\n\n### getValidateOnly\n\nOptional. If set, validate the request and preview the review, but do not\npost it.\n\n### setValidateOnly\n\nOptional. If set, validate the request and preview the review, but do not\npost it.\n\n### static::build"]]