[[["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 Sql Admin V1 Client - Class OnPremisesConfiguration (1.2.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.6 (latest)](/php/docs/reference/cloud-sql-admin/latest/V1.OnPremisesConfiguration)\n- [1.2.5](/php/docs/reference/cloud-sql-admin/1.2.5/V1.OnPremisesConfiguration)\n- [1.1.0](/php/docs/reference/cloud-sql-admin/1.1.0/V1.OnPremisesConfiguration)\n- [1.0.0](/php/docs/reference/cloud-sql-admin/1.0.0/V1.OnPremisesConfiguration)\n- [0.19.0](/php/docs/reference/cloud-sql-admin/0.19.0/V1.OnPremisesConfiguration)\n- [0.18.0](/php/docs/reference/cloud-sql-admin/0.18.0/V1.OnPremisesConfiguration)\n- [0.17.1](/php/docs/reference/cloud-sql-admin/0.17.1/V1.OnPremisesConfiguration)\n- [0.16.1](/php/docs/reference/cloud-sql-admin/0.16.1/V1.OnPremisesConfiguration)\n- [0.12.0](/php/docs/reference/cloud-sql-admin/0.12.0/V1.OnPremisesConfiguration)\n- [0.11.0](/php/docs/reference/cloud-sql-admin/0.11.0/V1.OnPremisesConfiguration)\n- [0.10.0](/php/docs/reference/cloud-sql-admin/0.10.0/V1.OnPremisesConfiguration)\n- [0.9.0](/php/docs/reference/cloud-sql-admin/0.9.0/V1.OnPremisesConfiguration)\n- [0.8.0](/php/docs/reference/cloud-sql-admin/0.8.0/V1.OnPremisesConfiguration)\n- [0.7.0](/php/docs/reference/cloud-sql-admin/0.7.0/V1.OnPremisesConfiguration)\n- [0.6.0](/php/docs/reference/cloud-sql-admin/0.6.0/V1.OnPremisesConfiguration)\n- [0.5.0](/php/docs/reference/cloud-sql-admin/0.5.0/V1.OnPremisesConfiguration)\n- [0.4.1](/php/docs/reference/cloud-sql-admin/0.4.1/V1.OnPremisesConfiguration)\n- [0.3.1](/php/docs/reference/cloud-sql-admin/0.3.1/V1.OnPremisesConfiguration)\n- [0.2.12](/php/docs/reference/cloud-sql-admin/0.2.12/V1.OnPremisesConfiguration) \nReference documentation and code samples for the Google Cloud Sql Admin V1 Client class OnPremisesConfiguration.\n\nOn-premises instance configuration.\n\nGenerated from protobuf message `google.cloud.sql.v1.OnPremisesConfiguration`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Sql \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHostPort\n\nThe host and port of the on-premises instance in host:port format\n\n### setHostPort\n\nThe host and port of the on-premises instance in host:port format\n\n### getKind\n\nThis is always `sql#onPremisesConfiguration`.\n\n### setKind\n\nThis is always `sql#onPremisesConfiguration`.\n\n### getUsername\n\nThe username for connecting to on-premises instance.\n\n### setUsername\n\nThe username for connecting to on-premises instance.\n\n### getPassword\n\nThe password for connecting to on-premises instance.\n\n### setPassword\n\nThe password for connecting to on-premises instance.\n\n### getCaCertificate\n\nPEM representation of the trusted CA's x509 certificate.\n\n### setCaCertificate\n\nPEM representation of the trusted CA's x509 certificate.\n\n### getClientCertificate\n\nPEM representation of the replica's x509 certificate.\n\n### setClientCertificate\n\nPEM representation of the replica's x509 certificate.\n\n### getClientKey\n\nPEM representation of the replica's private key. The corresponsing public\nkey is encoded in the client's certificate.\n\n### setClientKey\n\nPEM representation of the replica's private key. The corresponsing public\nkey is encoded in the client's certificate.\n\n### getDumpFilePath\n\nThe dump file to create the Cloud SQL replica.\n\n### setDumpFilePath\n\nThe dump file to create the Cloud SQL replica.\n\n### getSourceInstance\n\nThe reference to Cloud SQL instance if the source is Cloud SQL.\n\n### hasSourceInstance\n\n### clearSourceInstance\n\n### setSourceInstance\n\nThe reference to Cloud SQL instance if the source is Cloud SQL."]]