[[["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 Channel V1 Client - Class PriceByResource (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-channel/latest/V1.PriceByResource)\n- [2.2.0](/php/docs/reference/cloud-channel/2.2.0/V1.PriceByResource)\n- [2.1.4](/php/docs/reference/cloud-channel/2.1.4/V1.PriceByResource)\n- [2.0.0](/php/docs/reference/cloud-channel/2.0.0/V1.PriceByResource)\n- [1.9.5](/php/docs/reference/cloud-channel/1.9.5/V1.PriceByResource)\n- [1.8.2](/php/docs/reference/cloud-channel/1.8.2/V1.PriceByResource)\n- [1.7.0](/php/docs/reference/cloud-channel/1.7.0/V1.PriceByResource)\n- [1.6.0](/php/docs/reference/cloud-channel/1.6.0/V1.PriceByResource)\n- [1.5.0](/php/docs/reference/cloud-channel/1.5.0/V1.PriceByResource)\n- [1.4.0](/php/docs/reference/cloud-channel/1.4.0/V1.PriceByResource)\n- [1.3.0](/php/docs/reference/cloud-channel/1.3.0/V1.PriceByResource)\n- [1.2.1](/php/docs/reference/cloud-channel/1.2.1/V1.PriceByResource)\n- [1.1.1](/php/docs/reference/cloud-channel/1.1.1/V1.PriceByResource)\n- [1.0.1](/php/docs/reference/cloud-channel/1.0.1/V1.PriceByResource) \nReference documentation and code samples for the Google Cloud Channel V1 Client class PriceByResource.\n\nRepresents price by resource type.\n\nGenerated from protobuf message `google.cloud.channel.v1.PriceByResource`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Channel \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getResourceType\n\nResource Type. Example: SEAT\n\n### setResourceType\n\nResource Type. Example: SEAT\n\n### getPrice\n\nPrice of the Offer. Present if there are no price phases.\n\n### hasPrice\n\n### clearPrice\n\n### setPrice\n\nPrice of the Offer. Present if there are no price phases.\n\n### getPricePhases\n\nSpecifies the price by time range.\n\n### setPricePhases\n\nSpecifies the price by time range."]]