Note: The following fields are mutually exclusive: count, sum, histogram, frequency. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: count, sum, histogram, frequency. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: count, sum, histogram, frequency. If a field in that set is populated, all other fields in the set will automatically be cleared.
#field
deffield()->::String
Returns
(::String) — The name of the field on which to aggregate.
#field=
deffield=(value)->::String
Parameter
value (::String) — The name of the field on which to aggregate.
Returns
(::String) — The name of the field on which to aggregate.
Note: The following fields are mutually exclusive: frequency, count, sum, histogram. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: frequency, count, sum, histogram. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: frequency, count, sum, histogram. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: histogram, count, sum, frequency. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: histogram, count, sum, frequency. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: histogram, count, sum, frequency. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: sum, count, histogram, frequency. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: sum, count, histogram, frequency. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: sum, count, histogram, frequency. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["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-09 UTC."],[],[],null,["# Migration Center V1 API - Class Google::Cloud::MigrationCenter::V1::Aggregation (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-Aggregation)\n- [2.0.1](/ruby/docs/reference/google-cloud-migration_center-v1/2.0.1/Google-Cloud-MigrationCenter-V1-Aggregation)\n- [1.2.0](/ruby/docs/reference/google-cloud-migration_center-v1/1.2.0/Google-Cloud-MigrationCenter-V1-Aggregation)\n- [1.1.0](/ruby/docs/reference/google-cloud-migration_center-v1/1.1.0/Google-Cloud-MigrationCenter-V1-Aggregation)\n- [1.0.1](/ruby/docs/reference/google-cloud-migration_center-v1/1.0.1/Google-Cloud-MigrationCenter-V1-Aggregation)\n- [0.3.0](/ruby/docs/reference/google-cloud-migration_center-v1/0.3.0/Google-Cloud-MigrationCenter-V1-Aggregation)\n- [0.2.2](/ruby/docs/reference/google-cloud-migration_center-v1/0.2.2/Google-Cloud-MigrationCenter-V1-Aggregation)\n- [0.1.0](/ruby/docs/reference/google-cloud-migration_center-v1/0.1.0/Google-Cloud-MigrationCenter-V1-Aggregation) \nReference documentation and code samples for the Migration Center V1 API class Google::Cloud::MigrationCenter::V1::Aggregation.\n\nMessage describing an aggregation. The message includes the aggregation type,\nparameters, and the field on which to perform the aggregation. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #count\n\n def count() -\u003e ::Google::Cloud::MigrationCenter::V1::Aggregation::Count\n\n**Returns**\n\n- ([::Google::Cloud::MigrationCenter::V1::Aggregation::Count](./Google-Cloud-MigrationCenter-V1-Aggregation-Count)) --- Count the number of matching objects.\n\n\n Note: The following fields are mutually exclusive: `count`, `sum`, `histogram`, `frequency`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #count=\n\n def count=(value) -\u003e ::Google::Cloud::MigrationCenter::V1::Aggregation::Count\n\n**Parameter**\n\n- **value** ([::Google::Cloud::MigrationCenter::V1::Aggregation::Count](./Google-Cloud-MigrationCenter-V1-Aggregation-Count)) --- Count the number of matching objects.\n\n\nNote: The following fields are mutually exclusive: `count`, `sum`, `histogram`, `frequency`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::MigrationCenter::V1::Aggregation::Count](./Google-Cloud-MigrationCenter-V1-Aggregation-Count)) --- Count the number of matching objects.\n\n\n Note: The following fields are mutually exclusive: `count`, `sum`, `histogram`, `frequency`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #field\n\n def field() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The name of the field on which to aggregate.\n\n### #field=\n\n def field=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The name of the field on which to aggregate. \n**Returns**\n\n- (::String) --- The name of the field on which to aggregate.\n\n### #frequency\n\n def frequency() -\u003e ::Google::Cloud::MigrationCenter::V1::Aggregation::Frequency\n\n**Returns**\n\n- ([::Google::Cloud::MigrationCenter::V1::Aggregation::Frequency](./Google-Cloud-MigrationCenter-V1-Aggregation-Frequency)) --- Creates a frequency distribution of all field values.\n\n\n Note: The following fields are mutually exclusive: `frequency`, `count`, `sum`, `histogram`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #frequency=\n\n def frequency=(value) -\u003e ::Google::Cloud::MigrationCenter::V1::Aggregation::Frequency\n\n**Parameter**\n\n- **value** ([::Google::Cloud::MigrationCenter::V1::Aggregation::Frequency](./Google-Cloud-MigrationCenter-V1-Aggregation-Frequency)) --- Creates a frequency distribution of all field values.\n\n\nNote: The following fields are mutually exclusive: `frequency`, `count`, `sum`, `histogram`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::MigrationCenter::V1::Aggregation::Frequency](./Google-Cloud-MigrationCenter-V1-Aggregation-Frequency)) --- Creates a frequency distribution of all field values.\n\n\n Note: The following fields are mutually exclusive: `frequency`, `count`, `sum`, `histogram`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #histogram\n\n def histogram() -\u003e ::Google::Cloud::MigrationCenter::V1::Aggregation::Histogram\n\n**Returns**\n\n- ([::Google::Cloud::MigrationCenter::V1::Aggregation::Histogram](./Google-Cloud-MigrationCenter-V1-Aggregation-Histogram)) --- Creates a bucketed histogram of field values.\n\n\n Note: The following fields are mutually exclusive: `histogram`, `count`, `sum`, `frequency`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #histogram=\n\n def histogram=(value) -\u003e ::Google::Cloud::MigrationCenter::V1::Aggregation::Histogram\n\n**Parameter**\n\n- **value** ([::Google::Cloud::MigrationCenter::V1::Aggregation::Histogram](./Google-Cloud-MigrationCenter-V1-Aggregation-Histogram)) --- Creates a bucketed histogram of field values.\n\n\nNote: The following fields are mutually exclusive: `histogram`, `count`, `sum`, `frequency`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::MigrationCenter::V1::Aggregation::Histogram](./Google-Cloud-MigrationCenter-V1-Aggregation-Histogram)) --- Creates a bucketed histogram of field values.\n\n\n Note: The following fields are mutually exclusive: `histogram`, `count`, `sum`, `frequency`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #sum\n\n def sum() -\u003e ::Google::Cloud::MigrationCenter::V1::Aggregation::Sum\n\n**Returns**\n\n- ([::Google::Cloud::MigrationCenter::V1::Aggregation::Sum](./Google-Cloud-MigrationCenter-V1-Aggregation-Sum)) --- Sum over a numeric field.\n\n\n Note: The following fields are mutually exclusive: `sum`, `count`, `histogram`, `frequency`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #sum=\n\n def sum=(value) -\u003e ::Google::Cloud::MigrationCenter::V1::Aggregation::Sum\n\n**Parameter**\n\n- **value** ([::Google::Cloud::MigrationCenter::V1::Aggregation::Sum](./Google-Cloud-MigrationCenter-V1-Aggregation-Sum)) --- Sum over a numeric field.\n\n\nNote: The following fields are mutually exclusive: `sum`, `count`, `histogram`, `frequency`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::MigrationCenter::V1::Aggregation::Sum](./Google-Cloud-MigrationCenter-V1-Aggregation-Sum)) --- Sum over a numeric field.\n\n\n Note: The following fields are mutually exclusive: `sum`, `count`, `histogram`, `frequency`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]