[[["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 Functions V2 Client - Class Source (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-functions/latest/V2.Source)\n- [2.0.5](/php/docs/reference/cloud-functions/2.0.5/V2.Source)\n- [1.7.0](/php/docs/reference/cloud-functions/1.7.0/V2.Source)\n- [1.6.5](/php/docs/reference/cloud-functions/1.6.5/V2.Source)\n- [1.5.0](/php/docs/reference/cloud-functions/1.5.0/V2.Source)\n- [1.4.2](/php/docs/reference/cloud-functions/1.4.2/V2.Source)\n- [1.3.1](/php/docs/reference/cloud-functions/1.3.1/V2.Source)\n- [1.2.0](/php/docs/reference/cloud-functions/1.2.0/V2.Source)\n- [1.1.2](/php/docs/reference/cloud-functions/1.1.2/V2.Source)\n- [1.0.3](/php/docs/reference/cloud-functions/1.0.3/V2.Source) \nReference documentation and code samples for the Google Cloud Functions V2 Client class Source.\n\nThe location of the function source code.\n\nGenerated from protobuf message `google.cloud.functions.v2.Source`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Functions \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getStorageSource\n\nIf provided, get the source from this location in Google Cloud Storage.\n\n### hasStorageSource\n\n### setStorageSource\n\nIf provided, get the source from this location in Google Cloud Storage.\n\n### getRepoSource\n\nIf provided, get the source from this location in a Cloud Source\nRepository.\n\n### hasRepoSource\n\n### setRepoSource\n\nIf provided, get the source from this location in a Cloud Source\nRepository.\n\n### getGitUri\n\nIf provided, get the source from GitHub repository. This option is valid\nonly for GCF 1st Gen function.\n\nExample: \u003chttps://github.com/\u003e\n\n\n### hasGitUri\n\n### setGitUri\n\nIf provided, get the source from GitHub repository. This option is valid\nonly for GCF 1st Gen function.\n\nExample: \u003chttps://github.com/\u003e\n\n\n### getSource"]]