[[["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 API Common Protos Client - Class ContextRule (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Api.ContextRule)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Api.ContextRule)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Api.ContextRule)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Api.ContextRule)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Api.ContextRule)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Api.ContextRule) \nReference documentation and code samples for the Google API Common Protos Client class ContextRule.\n\nA context rule provides information about the context for an individual API\nelement.\n\nGenerated from protobuf message `google.api.ContextRule`\n\nNamespace\n---------\n\nGoogle \\\\ Api\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSelector\n\nSelects the methods to which this rule applies.\n\nRefer to [selector](/php/docs/reference/common-protos/latest/Api.DocumentationRule#_Google_Api_DocumentationRule__getSelector__) for syntax\ndetails.\n\n### setSelector\n\nSelects the methods to which this rule applies.\n\nRefer to [selector](/php/docs/reference/common-protos/latest/Api.DocumentationRule#_Google_Api_DocumentationRule__getSelector__) for syntax\ndetails.\n\n### getRequested\n\nA list of full type names of requested contexts, only the requested context\nwill be made available to the backend.\n\n### setRequested\n\nA list of full type names of requested contexts, only the requested context\nwill be made available to the backend.\n\n### getProvided\n\nA list of full type names of provided contexts. It is used to support\npropagating HTTP headers and ETags from the response extension.\n\n### setProvided\n\nA list of full type names of provided contexts. It is used to support\npropagating HTTP headers and ETags from the response extension.\n\n### getAllowedRequestExtensions\n\nA list of full type names or extension IDs of extensions allowed in grpc\nside channel from client to backend.\n\n### setAllowedRequestExtensions\n\nA list of full type names or extension IDs of extensions allowed in grpc\nside channel from client to backend.\n\n### getAllowedResponseExtensions\n\nA list of full type names or extension IDs of extensions allowed in grpc\nside channel from backend to client.\n\n### setAllowedResponseExtensions\n\nA list of full type names or extension IDs of extensions allowed in grpc\nside channel from backend to client."]]