[[["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,["# Interface MaintenanceSummary.StatsOrBuilder (0.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.0 (latest)](/java/docs/reference/google-cloud-maintenance/latest/com.google.cloud.maintenance.api.v1beta.MaintenanceSummary.StatsOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-maintenance/0.4.0/com.google.cloud.maintenance.api.v1beta.MaintenanceSummary.StatsOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-maintenance/0.2.0/com.google.cloud.maintenance.api.v1beta.MaintenanceSummary.StatsOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-maintenance/0.1.0/com.google.cloud.maintenance.api.v1beta.MaintenanceSummary.StatsOrBuilder) \n\n public static interface MaintenanceSummary.StatsOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getAggregates(int index)\n\n public abstract MaintenanceSummary.Aggregate getAggregates(int index)\n\nAggregates is a list \\\u003cgroup, count\\\u003e pairs. For example, if the\ngroup_by is `\"state\"` a possible tuple in the aggregates list could be\n\"SCHEDULED\" : `11`,\n\n`\nrepeated .google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate aggregates = 2;\n`\n\n### getAggregatesCount()\n\n public abstract int getAggregatesCount()\n\nAggregates is a list \\\u003cgroup, count\\\u003e pairs. For example, if the\ngroup_by is `\"state\"` a possible tuple in the aggregates list could be\n\"SCHEDULED\" : `11`,\n\n`\nrepeated .google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate aggregates = 2;\n`\n\n### getAggregatesList()\n\n public abstract List\u003cMaintenanceSummary.Aggregate\u003e getAggregatesList()\n\nAggregates is a list \\\u003cgroup, count\\\u003e pairs. For example, if the\ngroup_by is `\"state\"` a possible tuple in the aggregates list could be\n\"SCHEDULED\" : `11`,\n\n`\nrepeated .google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate aggregates = 2;\n`\n\n### getAggregatesOrBuilder(int index)\n\n public abstract MaintenanceSummary.AggregateOrBuilder getAggregatesOrBuilder(int index)\n\nAggregates is a list \\\u003cgroup, count\\\u003e pairs. For example, if the\ngroup_by is `\"state\"` a possible tuple in the aggregates list could be\n\"SCHEDULED\" : `11`,\n\n`\nrepeated .google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate aggregates = 2;\n`\n\n### getAggregatesOrBuilderList()\n\n public abstract List\u003c? extends MaintenanceSummary.AggregateOrBuilder\u003e getAggregatesOrBuilderList()\n\nAggregates is a list \\\u003cgroup, count\\\u003e pairs. For example, if the\ngroup_by is `\"state\"` a possible tuple in the aggregates list could be\n\"SCHEDULED\" : `11`,\n\n`\nrepeated .google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate aggregates = 2;\n`\n\n### getGroupBy()\n\n public abstract String getGroupBy()\n\ngroupBy specifies the type of aggregate.\nFor example a group_by might be `\"state\"`\n\n`string group_by = 1;`\n\n### getGroupByBytes()\n\n public abstract ByteString getGroupByBytes()\n\ngroupBy specifies the type of aggregate.\nFor example a group_by might be `\"state\"`\n\n`string group_by = 1;`"]]