1// Copyright 2023 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14syntax = "proto3"; 15 16package cobalt; 17 18option java_multiple_files = true; 19option java_package = "com.google.cobalt"; 20 21// Aggregated data for specific local aggregation procedures. 22message AggregateValue { 23 oneof aggregate_value { 24 // Used by COUNT. 25 int64 integer_value = 1; 26 27 // Used by STRING_COUNTS. 28 LocalIndexHistogram index_histogram = 2; 29 } 30} 31 32// Histogram with buckets that indexes into a list of string hashes or integer 33// buckets from the registry. 34message LocalIndexHistogram { 35 message Bucket { 36 // Index into the list the histogram refers to. 37 int32 index = 1; 38 39 // The occurrence count of the list item. 40 int64 count = 2; 41 } 42 repeated Bucket buckets = 1; 43} 44