[[["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 Migration Center V1 Client - Class Aggregation (1.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.2 (latest)](/php/docs/reference/cloud-migrationcenter/latest/V1.Aggregation)\n- [1.1.1](/php/docs/reference/cloud-migrationcenter/1.1.1/V1.Aggregation)\n- [1.0.3](/php/docs/reference/cloud-migrationcenter/1.0.3/V1.Aggregation)\n- [0.4.5](/php/docs/reference/cloud-migrationcenter/0.4.5/V1.Aggregation)\n- [0.3.1](/php/docs/reference/cloud-migrationcenter/0.3.1/V1.Aggregation)\n- [0.2.0](/php/docs/reference/cloud-migrationcenter/0.2.0/V1.Aggregation)\n- [0.1.0](/php/docs/reference/cloud-migrationcenter/0.1.0/V1.Aggregation) \nReference documentation and code samples for the Google Cloud Migration Center V1 Client class Aggregation.\n\nMessage describing an aggregation. The message includes the aggregation type,\nparameters, and the field on which to perform the aggregation.\n\nGenerated from protobuf message `google.cloud.migrationcenter.v1.Aggregation`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ MigrationCenter \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getField\n\nThe name of the field on which to aggregate.\n\n### setField\n\nThe name of the field on which to aggregate.\n\n### getCount\n\nCount the number of matching objects.\n\n### hasCount\n\n### setCount\n\nCount the number of matching objects.\n\n### getSum\n\nSum over a numeric field.\n\n### hasSum\n\n### setSum\n\nSum over a numeric field.\n\n### getHistogram\n\nCreates a bucketed histogram of field values.\n\n### hasHistogram\n\n### setHistogram\n\nCreates a bucketed histogram of field values.\n\n### getFrequency\n\nCreates a frequency distribution of all field values.\n\n### hasFrequency\n\n### setFrequency\n\nCreates a frequency distribution of all field values.\n\n### getAggregationFunction"]]